Skip to content

Instantly share code, notes, and snippets.

Franz Josef Kaiser franz-josef-kaiser

View GitHub Profile
@franz-josef-kaiser
franz-josef-kaiser / docker.sh
Created May 9, 2020
Run Volumio hifi audiophile in a docker container on MacOS
View docker.sh
#!/usr/bin/env bash
mkdir music data
set MUSIC_DIR=./music
set VOLUMIO_DATA_DIR=./data
docker run \
--rm \
-d \
--name volumio \
-e DISPLAY=unix$DISPLAY \
-e HOST=http://192.168.1.1:3000 \ # Your local network IP
@franz-josef-kaiser
franz-josef-kaiser / .bash_profile
Last active May 12, 2020
QNAP Entware opkg command not found
View .bash_profile
# .bash_profile
# /share/CACHEDEV1_DATA/.qpkg/container-station/bin location of `docker`/ `docker-compose` binaries
# /opt/bin location where `opkg` binary is installed to.
export PATH=\
/bin:\
/sbin:\
/usr/bin:\
/usr/sbin:\
/usr/bin/X11:\
@franz-josef-kaiser
franz-josef-kaiser / netgear_genie_no_registration.md
Last active Sep 12, 2018
One line tutorial on how to avoid registering a Netgear account.
View netgear_genie_no_registration.md

How to avoid registering a Netgear account just to log in to the admin management UI.

Open start_repeater.html: http://www.mywifiext.net/start_repeater.htm

Works for AP / repeater Netgear Genie EX3700 for e.g.

In case you are doing a factory reset (button on the hardware), make sure to clear all site data from storage: Chrome Developer Tools > Application Tab > Clear Storage > Press button on the bottom "Clear site data". Else you will have endless redirects as the JavaScript is slightly fucked up.

@franz-josef-kaiser
franz-josef-kaiser / FlowMeterDIY.ino
Created May 29, 2017
Copy of a FlowMeter logging code. A FlowMeter is used in for example Espresso Machines and is a liquid flow rate sensor.
View FlowMeterDIY.ino
/*
Liquid flow rate sensor -DIYhacking.com Arvind Sanjeev
Measure the liquid/water flow rate using this code.
Connect Vcc and Gnd of sensor to arduino, and the
signal line to arduino digital pin 2.
Source: @link https://diyhacking.com/projects/FlowMeterDIY.ino
*/
@franz-josef-kaiser
franz-josef-kaiser / composer.json
Created Feb 11, 2017
Composer bootstrapped Drupal scaffold.
View composer.json
{
"name" : "vendor/project",
"description" : "Much awesome. So wow.",
"type" : "project",
"license" : "MIT",
"authors" : [
{
"name" : "Firstname Lastname",
"email" : "user@example.com",
"role" : "Developer"
@franz-josef-kaiser
franz-josef-kaiser / sshfs.sh
Last active Dec 1, 2019
Example of SSHFS remote filesystem mounting. Useful in case one needs to access files created on a remote server on a regular basis
View sshfs.sh
#!/usr/bin/env bash
sshfs \
user@example.com:/home/user/project /local/folder/to/project \
-o ServerAliveInterval=15 \
-o ServerAliveCountMax=20 \
-o reconnect \
-o defer_permissions \
-o negative_vncache \
-o volname=vendorname \
View keybase.md

Keybase proof

I hereby claim:

  • I am franz-josef-kaiser on github.
  • I am wecodemore (https://keybase.io/wecodemore) on keybase.
  • I have a public key whose fingerprint is 28BE F577 7D40 8B11 E67A 0998 0254 B1D9 3645 9541

To claim this, I am signing this object:

@franz-josef-kaiser
franz-josef-kaiser / terminal.md
Last active Sep 17, 2016
Useful terminal commands
View terminal.md

OS X

Printer

Adding and Removing a Printer

This is done via the lpadmin command. To add a printer, use this format:

lpadmin -p Printer_Name -L "Printer Location" -E -v lpd://x.x.x.x 
 -P /Library/Printers/PPDs/Contents/Resources/en.lproj/Printer_Driver.gz
@franz-josef-kaiser
franz-josef-kaiser / .bash_prompt.sh
Created Sep 2, 2016 — forked from miki725/.bash_prompt.sh
Custom bash prompt which displays: (virtualenv) user:/path (git-branch)
View .bash_prompt.sh
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch of the current git/mercurial repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.
@franz-josef-kaiser
franz-josef-kaiser / create_labels.sh
Created Aug 24, 2016 — forked from omegahm/create_labels.sh
Create Gtihub labels from Bash
View create_labels.sh
#!/usr/bin/env bash
# Colours picked from https://robinpowered.com/blog/best-practice-system-for-organizing-and-tagging-github-issues/
###
# Label definitions
###
declare -A LABELS
# Platform
You can’t perform that action at this time.