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
*/
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"
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:

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
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.
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}' )
View formdatai-iterator.html
<form name="test" id="form-id">
<label for="name">Name</label>
<input name="name" id="name" type="text">
<label for="pass">Password</label>
<input name="pass" id="pass" type="text">
</form>
<script>
var it = new FormData( document.getElementById('form-id') ).entries();
var current = {};
View docker-compose.sh
# *CASE:*
# Debug start up problems by appending logs to `up` job
[1 (master *) ~/projects/DockerCompose] docker-compose up -d && docker-compose logs
# *Example* output:
[2 (master *) ~/projects/DockerCompose]: docker-compose up -d && docker-compose logs
web is up-to-date
logs is up-to-date
Creating nginx
Attaching to nginx, logs, web