Installing ClickHouse Datasource for Grafana on FreeBSD
FreeBSD is not officially supported by the plugin but it's not difficult to install it manually. First install node, npm, go and mage. Then clone the repo to /var/db/grafana/plugins. Then in the plugin directory: npm i npm i @swc/core-freebsd-x64 cd node_modules/@swc/core cp ../core-freebsd-x64/s...
Controlling LEDs on ThinkPad T440p
We'll use Linux and ectool and (optionally) pmh7tool from coreboot....
Memcached on Void Linux
Void does not provide runit service for Memcached, so we have to write our own. Install memcached: # xbps-install memcached Create separate user and group for memcached daemon: # useradd --system _memcached Create service directory: # mkdir /etc/sv/memcached...
Mount an Android device over MTP on FreeBSD
First, install jmptfs: # pkg install fusefs-jmtpfs Then mount (where /media/android is your mountpoint): # jmtpfs -o allow_other /media/android...
Mount FAT32 USB flash drive with cyrillic filenames on FreeBSD
To mount: # mount_msdosfs -D UTF-8 -L en_US.UTF-8 -u 1001 /dev/da0s1 /media/usb Replace 1001 with your user id and /media/usb with your actual mountpoint. To unmount, make sure no one uses the directory, then as usual: # umount /media/usb...
Run multiple shadowsocks client (ss-local) instances on Void Linux
In this post I'll demonstrate how to set up a configuration similar to what I described in my previous article about Gentoo, but this time on Void Linux (which uses runit as init system, as opposed to Gentoo's OpenRC)....
Run multiple shadowsocks client (ss-local) instances on Gentoo with OpenRC
First of all you should create separate system user and group for shadowsocks: # useradd -r shadowsocks Create an OpenRC script for ss-local instances (/etc/init.d/ss-local): #!/sbin/openrc-run # Copyright 1999-2020 Gentoo Authors # Copyright 2023 Rl...
On the current state of coreboot on MacBooks
Updated: March 5, 2023 Introduction...
Record audio with builtin microphone on Orange Pi 3 LTS (Allwinner H6)
Tested on Armbian 22.11.1 Bullseye, kernel 5.15.80-sunxi64. Mixer settings: #!/bin/bash amixer() { /usr/bin/amixer "$@" } SWITCHES=( "Left DAC Mixer ADCL" "Left DAC Mixer I2SDACL" "Left I2S Mixer ADCL" "Left I2S Mixer I2SDACL" "Left Input Mixer LINEINL" "Left Input Mixer MIC1" "Left Input Mixer M...
Get instantly notified via Telegram when your cron task fails
In your crontab, define a couple of variables (put them before cron rules): ERROR_TELEGRAM_CHAT_ID="put your chat id here" ERROR_TELEGRAM_TOKEN="put your token here"...