Since I use Line, using Line Notify is an easy solution to send myself messages. Here’s how it works: Go to https://notify-bot.line.me/my/ and generate a token. Use cURL to send a message: See the API for Line Notify for more details incl. the list of stickers. Here an example using Node.js:
Doing a backup of volumes is simple if you know the command: influxdb is the stopped container. /var/lib/influxdb is where the (only) volume is mounted. ~/backup/ is where I’d like the compressed tar backup file.
So far I did not have to bother about alerts. InfluxDB collects stats (via API or telegraf) and I can watch it via Grafana. Today I wanted alerts. First you have to create notification channels in Grafana: Alerting/Notification Channels. Email Since I use Gmail, this section in grafana.ini works: The only tricky part is theContinue reading “Grafana Alerts”
Trying to use Vault at work to keep secrets in there. However knowing not much about it makes me want to test it at home first. Installing on k8s seemed most sensible since I already have 3 node k3s cluster. Since k3s does support Helm v3 and Vault can be installed via Helm v3 charts,Continue reading “Installing HashiCorp’s Vault”
Back from a short holiday trip in Hokkaido. Here a short summary related to COVID-19.
Followed https://rancher.com/docs/k3s/latest/en/ and it’s great. Took me a while to be able to access the dashboard though. How to connect to the dashboard What made this part work: local (on the machine running k3s server, in my case a machine called giga.lan), run a web browser and connect to https://localhost:8443. Alternatively on another machines runContinue reading “k3s – Half Size k8s”
My Linux machine keeps on waking up someone moves the mouse. Or kicks the table. While it’ll go back to sleep eventually, I’d rather not have it awake unless I want to use it. Disabling mouse events to wake up your computer is surprisingly simple. The thing to know is /proc/acpi/wakeup: XHCx is the USBContinue reading “Disabling Waking up Computer via Mouse”
The rear gear changing shift level I had broke partially. Downshifting was fine. Upshifting worked except I had to manually push the lever into its original position in order to change another gear up. Root cause was the steel spring to reset that lever rusted away. Replacing it with a new one like this wasContinue reading “More Bicycle Fixing”
Summer in Japan has one drawback. Actually there are 3: it’s hot and humid. And cockroaches like that. According to this article, there’s a new thing out which seems to work very well. Having studied chemistry, I was naturally curious what it’s active ingredient is. Here is the product page from the manufacturer. The backContinue reading “Summer in Japan”
While riding my bike a while ago, the bottom bracket gear cable guide broke. I got a generic replacement which looked similar enough. Made by Shimano. For about 350 Yen. Awesome! What could go wrong? Turns out a lot: the diameter it’s made for is smaller than the one needed for my bicycle. And theContinue reading “Fixing my Bicycle”