Skip to content

Instantly share code, notes, and snippets.

Franz Josef Kaiser franz-josef-kaiser

Block or report user

Report or block franz-josef-kaiser

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@franz-josef-kaiser
franz-josef-kaiser / uci-guest-wifi.sh
Created Sep 25, 2018 — forked from tongpu/uci-guest-wifi.sh
uci script for OpenWRT guest WiFi configuration
View uci-guest-wifi.sh
#!/bin/sh
uci batch << EOF
add network switch_vlan
set network.@switch_vlan[-1].device='switch0'
set network.@switch_vlan[-1].ports='1t 5t'
set network.@switch_vlan[-1].vlan='2'
set network.guest='interface'
set network.guest.type='bridge'
@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 Feb 10, 2017
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
View docker-volume-rm.sh
docker volume rm $( docker volume ls | awk '{print $2}' )
You can’t perform that action at this time.