Skip to content

Instantly share code, notes, and snippets.

View csi-lk's full-sized avatar
🏦
banking

Callum Silcock csi-lk

🏦
banking
View GitHub Profile
@csi-lk
csi-lk / gg.sh
Last active November 21, 2018 09:25
Git aliases - gg
# Colors and formatting
# --------------------------------------------------------------------
grey() {
printf "\e[0;90m$1\e[0m"
}
green() {
printf "\e[0;32m$1\e[0m"
}

Keybase proof

I hereby claim:

  • I am csi-lk on github.
  • I am csilk (https://keybase.io/csilk) on keybase.
  • I have a public key ASBHeFbFOr4FpZzDF2ZhxyA-waqdaQAhA8CcxTE65yQaSgo

To claim this, I am signing this object:

@csi-lk
csi-lk / Marta-config.json
Last active February 6, 2019 15:47
Marta Config
// Callum Silcock's config for Marta
{
"environment": {
"terminal": "iTerm",
"textEditor": "Visual Studio Code"
},
"behavior": {
"theme": "Kon",
"controlStyle": "fromTheme",
@csi-lk
csi-lk / iso3166-1_object.js
Created November 3, 2017 04:45
ISO 3166-1 Country Label / Value Object Pairs - Javascript ES6
const countries = [
{ value: 'AF', label: 'Afghanistan' },
{ value: 'AX', label: 'Åland Islands' },
{ value: 'AL', label: 'Albania' },
{ value: 'DZ', label: 'Algeria' },
{ value: 'AS', label: 'American Samoa' },
{ value: 'AD', label: 'Andorra' },
{ value: 'AO', label: 'Angola' },
{ value: 'AI', label: 'Anguilla' },
{ value: 'AQ', label: 'Antarctica' },
@csi-lk
csi-lk / launch_sublime_3_from_terminal.markdown
Created June 3, 2016 01:44
Launch Sublime Text 3 from the Mac OS X Terminal

Launch Sublime Text 3 from the Mac OS X Terminal

Couldn't find an easy link for this so:

Lovingly stolen from - http://stackoverflow.com/a/25629357

Run

ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
#https://www.vultr.com/docs/setup-nginx-rtmp-on-ubuntu-14-04
apt-get install -y build-essential libpcre3 libpcre3-dev libssl-dev unzip software-properties-common
mkdir /usr/build
#Download the Nginx and Nginx-RTMP source.
wget http://nginx.org/download/nginx-1.7.8.tar.gz
wget https://github.com/arut/nginx-rtmp-module/archive/master.zip
#Extract the Nginx and Nginx-RTMP source.
tar -zxvf nginx-1.7.8.tar.gz
unzip master.zip
#Switch to the Nginx directory.