Skip to content

Instantly share code, notes, and snippets.

@amlinger
amlinger / wpa_supplicant.conf
Created February 3, 2019 00:36
Replace the $SSID and $PSK for your credentials. When setting up a RaspberryPi, this is useful to boot in the boot partition root, allowing instant access to the WiFi netowrk.
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="$SSID"
psk="$PSK"
}
@amlinger
amlinger / tellstick.conf
Created February 10, 2018 14:48
Sample tellstick.conf file. ( /etc/tellstick.conf )
device {
id = 1
name = "Example Light 2"
protocol = "arctech"
model = "selflearning-dimmer:nexa"
parameters {
house = "100010"
unit = "1"
}
}
@amlinger
amlinger / .travis.yml
Last active May 13, 2017 10:48
Travis file used for deploying built site to master branch
language: ruby
rvm:
- 2.2.2
script:
- bundle install
- JEKYLL_ENV=production bundle exec jekyll build
after_success:
- git clone https://$GITHUB_REPO
- cd $(basename ${GITHUB_REPO%.git})
- git config --global user.name "Travis CI"
@amlinger
amlinger / pre-commit
Created May 27, 2016 11:04
Setting ut git hooks
#!/bin/sh
# For running eslint
files=$(git diff --cached --name-only --diff-filter=ACM | grep ".*\.\(js\|jsx\)$")
if [ "$files" = "" ]; then
exit 0
fi
pass=true

Keybase proof

I hereby claim:

  • I am amlinger on github.
  • I am antonamlinger (https://keybase.io/antonamlinger) on keybase.
  • I have a public key whose fingerprint is 2205 3DDC 7C59 6699 208F C947 5544 AA4F 80C1 1D4A

To claim this, I am signing this object:

@amlinger
amlinger / gitrebase.sh
Created February 28, 2016 13:41
Rebase from base branch
#!/bin/bash
# Fetch the base branch to rebase to. Defaults to master.
BASE_BRANCH=${1-master}
# Fetch the number of commits
COMMITS=$(git log "$BASE_BRANCH".."$(git rev-parse --abbrev-ref HEAD)" --pretty=oneline | wc -l | awk '{print $1}')
# Rebase to original, base branch
git rebase $BASE_BRANCH
@amlinger
amlinger / projects.cson
Created August 5, 2015 12:21
Custom Project logos/icons in Atom.io:s Project Manager
"angular-narrative-api":
title: "Angular/Narrative API"
group: "Narrative"
icon: "icon-angular"
paths: [
"/Users/Amlinger/Development/angular-narrative-api"
]