Skip to content

Instantly share code, notes, and snippets.

View LucaDev's full-sized avatar
🖖

Luca Kröger LucaDev

🖖
View GitHub Profile
# Set up the prompt
autoload -Uz promptinit
promptinit
# Share history between shells
setopt histignorealldups sharehistory
# Use emacs keybindings
bindkey -e
@LucaDev
LucaDev / monitor.py
Created October 9, 2020 15:16
Raspberry Pi OLED System Stats
#!/bin/python3
import time
import psutil
from luma.core.interface.serial import i2c
from luma.core.render import canvas
from luma.oled.device import ssd1306
from PIL import ImageFont
package main
import (
"fmt"
"os"
"golang.org/x/net/http2/hpack"
)
func main() {
fmt.Println(EncodeString(os.Args[1]))
[Unit]
Description=Prometheus monitoring system and time series database
After=local-fs.target network-online.target network.target
Wants=local-fs.target network-online.target network.target
[Service]
ExecStart=/opt/prometheus/prometheus
WorkingDirectory=/opt/prometheus
Type=simple
[Unit]
Description=Prometheus mysqld exporter
After=local-fs.target network-online.target network.target
Wants=local-fs.target network-online.target network.target
[Service]
ExecStart=/opt/mysqld_exporter/mysqld_exporter -collect.binlog_size=true -collect.info_schema.processlist=true
Type=simple
Environment=DATA_SOURCE_NAME=login:password@(localhost:3306)/
[Unit]
Description=Prometheus node exporter
After=local-fs.target network-online.target network.target
Wants=local-fs.target network-online.target network.target
[Service]
ExecStart=/opt/node_exporter/node_exporter
Type=simple
[Install]
@LucaDev
LucaDev / cloudflareddns.sh
Created March 16, 2017 22:01
Cloudflare V4 API DynDNS Updater for Synology Cloudstation
#!/bin/sh
# cloudflareddns.sh - dynamic dns updater module for Synology
#
# Author:
# Luca Kröger (LucaDev on Github)
# Originally: Michael Wildman (http://mwild.me)
#
# Version:
# 0.3

Keybase proof

I hereby claim:

  • I am lucadev on github.
  • I am lucadev (https://keybase.io/lucadev) on keybase.
  • I have a public key ASDEaVrGEVuBnOZhzIjwZn9-oYJJGS0GclHlfAj4rKWJeQo

To claim this, I am signing this object: