Skip to content

Instantly share code, notes, and snippets.

View WORMSS's full-sized avatar

WORMSS WORMSS

View GitHub Profile
@WORMSS
WORMSS / pi startup
Last active March 29, 2016 20:08
First things to do when setting up the RaspberryPi
## Installing Chrome on Rasbian ##
# https://www.raspberrypi.org/forums/viewtopic.php?t=121195 #
wget https://dl.dropboxusercontent.com/u/87113035/chromium-browser-l10n_48.0.2564.82-0ubuntu0.15.04.1.1193_all.deb -P ~/Downloads/
wget https://dl.dropboxusercontent.com/u/87113035/chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb -P ~/Downloads/
wget https://dl.dropboxusercontent.com/u/87113035/chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb -P ~/Downloads/
sudo dpkg -i ~/Downloads/chromium-codecs-ffmpeg-extra_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb
sudo dpkg -i ~/Downloads/chromium-browser-l10n_48.0.2564.82-0ubuntu0.15.04.1.1193_all.deb ~/Downloads/chromium-browser_48.0.2564.82-0ubuntu0.15.04.1.1193_armhf.deb
## So Chrome shows up in the Application Launch Bar ##
@WORMSS
WORMSS / octopus_merge.sh
Last active April 27, 2018 10:09
Octopus Merge
# Make octopus from current commit/index
commit_id=$(git commit-tree $(git write-tree) -p commit1 -p commit2 -p commit3 -m "Octopus Message")
git branch -f "tmp/octopus" "$commit_id"
@WORMSS
WORMSS / i18n.js
Last active December 31, 2019 15:55
Localisation of html pages for Chrome Extensions.
/**
* @author Colin Richardson
*
* @description this script in combination with a chrome extension enviroment adds i18n capabilities to html pages without jQuery.
* html elements will need a data-i18n tag with the message name and will be placed within the elements innerHTML attribute.
*
* This can be expanded/modified with the use of data-i18n-attr and place the name of the attribute you wish to assign the message to.
* EG: title, value, etc etc
* EG: data-i18n-attr="title", data-i18n-attr="value", etc etc
*
@WORMSS
WORMSS / Blink.c
Created February 17, 2014 09:33
Blink for Multiple LEDs with durations.
@WORMSS
WORMSS / Blink.c
Last active August 29, 2015 13:56
No Delay Blink for Multiple L.E.Ds