Skip to content

Instantly share code, notes, and snippets.

View wedi's full-sized avatar
🚀
Getting Things Done

Dirk Weise wedi

🚀
Getting Things Done
  • bitloft GmbH
  • Essen, Germany
View GitHub Profile
@wedi
wedi / autoinstaller_minimal.sh
Last active January 27, 2021 14:33
Test Ubuntu nocloud autoinstaller with Virtualbox
#!/bin/sh
VM_NAME=UbuntuAutoinstall
UBUNTU_ISO="$PWD/ubuntu-groovy-live-server-amd64.iso"
UBUNTU_DOWNLOAD_URL=http://cdimage.ubuntu.com/ubuntu-server/daily-live/current/groovy-live-server-amd64.iso
set -eux
[[ ! -e "$UBUNTU_ISO" ]] && wget -O "$UBUNTU_ISO" $UBUNTU_DOWNLOAD_URL
@wedi
wedi / 50-system-info
Last active January 12, 2018 16:29
MOTD system information
#!/bin/sh
# Uptime ----------------------------------------------------------------------
upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)"
secs=$((${upSeconds}%60))
mins=$((${upSeconds}/60%60))
hours=$((${upSeconds}/3600%24))
days=$((${upSeconds}/86400))
uptime=`printf "%d days, %02dh %02dm %02ds" "$days" "$hours" "$mins" "$secs"`

Install spotifyd as daemon on Rasbian

  • Create a new user:
    sudo adduser --no-create-home --disabled-login --system --group spotifyd

  • Allow audio access:
    sudo usermod -a -G audio spotifyd

  • Get the spotifyd.
    Either the

@wedi
wedi / # matplotlib - 2016-10-11_15-16-14.txt
Created October 11, 2016 13:37
matplotlib (homebrew/python/matplotlib) on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for homebrew/python/matplotlib on macOS 10.11.6
Build date: 2016-10-11 15:16:14