Skip to content

Instantly share code, notes, and snippets.

Create the 'master' repo

mkdir big-repo
cd big-repo
git init

Add the first 'child' repo

@sandfox
sandfox / sac.ascii
Created August 29, 2012 11:23
tee-hee-hee
________________
| |_____ __
| SUCK A COCK | |__| |_________
|________________| |::| | /
/\**/\ | \.____|::|__| <
( o_o )_ | \::/ \._______\
(u--u \_) |
(||___ )==\
,dP"/b/=( /P"/b\
|8 || 8\=== || 8
@sandfox
sandfox / cli-php.ini
Created September 8, 2012 13:20
Very Plain PHP inis
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@sandfox
sandfox / README.md
Created September 8, 2012 13:44
Launch scripts for various servers

Run this using the following:

curl -L https://raw.github.com/gist/3675060/{FILENAME}.sh | sudo bash -s
@sandfox
sandfox / README.md
Created September 8, 2012 18:11
Jenkins Slave set-up script
@sandfox
sandfox / README.md
Created September 15, 2012 23:01
Quick and dirty instructions for building nginx with rtmp support

#Compiling Nginx with RTMP module

  1. Install the following packages sudo apt-get install python-software-properties dpkg-dev git
  2. Add Nginx repo sudo add-apt-repository ppa:nginx/stable
  3. Update package list sudo apt-get update
  4. Get nginx source (put this in it's own dir like /build sudo apt-get source nginx-full
@sandfox
sandfox / intro.md
Created October 7, 2012 11:14
albert quiz stuff

We call Free Time Activities to your hobbies / projects / studies / interests (outside your job). Example: Reading, Working, Networking, Researching, Creating, Discovering, Practising

Should probably be

We call Free Time Activities your hobbies / projects / studies / interests (outside your job). Example: Reading, Working, Networking, Researching, Creating, Discovering, Practising

Then you can get away with using FTA as an abbreviation in the rest of your questions

@sandfox
sandfox / log_rps.sh
Created October 9, 2012 10:07
log file lines inserted per $period counter
#!/bin/sh
##############################################################################
# This script will monitor the number of lines in a log file to determine the
# number of requests per second.
#
# Example usage:
# ./logs_rps.sh -f 15 -i /var/www/http/access.log
##############################################################################
@sandfox
sandfox / Things.md
Last active October 13, 2015 03:58
shiny new mac - getting started

#Things to install on new MacBooks to make moar awesome

##Install these

  1. iTerm - terminal replacement
  2. Alfred - spotlight replacement and uber useful tool
  3. Git - Because you do version control the right way
  4. Oh My Zsh - Lets make your bash usable
  5. Sublime Text 2 - Best text editor ever (unless you're a vim gimp)
  6. Package Control - Package manager for ST2
  7. Virtual Box - VMs that work pretty well
@sandfox
sandfox / nodejs.bash
Created February 12, 2013 18:42
Can't believe this works, javascript amazes me
✘ ⮀ ~/code/mobile5/ads/node-samsung-lovenote ⮀ ⭠ send-queues± ⮀ node
> a = {}
{}
> a.b = function(){console.log('aaaa')}
[Function]
>
undefined
> s = 'b';
'b'
> a[s]