Skip to content

Instantly share code, notes, and snippets.

View Aupajo's full-sized avatar

Pete Nicholls Aupajo

  • Christchurch, New Zealand
View GitHub Profile
@Aupajo
Aupajo / gist:5a9eebed339a22a5418aaae742ffd67c
Created April 26, 2016 02:15
NewRelic Memory Profiler shortcut
NewRelic::Agent::Samplers::MemorySampler.new.sampler.get_sample

Making an office dashboard with a Raspberry Pi

Steps taken with a basic Raspbian install.

Default username/password is pi/raspberry.

SSH access is enabled by default; run ifconfig on the Pi to find the IP address to connect to.

Bring everything up-to-date:

@steveklabnik
steveklabnik / reading.md
Last active April 11, 2016 11:26
intro to continental philosophy reading list (french post-structuralism, etc)
@tonycoco
tonycoco / image_filters.rb
Created June 11, 2012 15:04
Useful image filters (Instagram/Hipster/Cool) for CarrierWave using MiniMagick (ImageMagick)
module CarrierWave
module MiniMagick
def toaster_filter
manipulate! do |img|
img.modulate '150,80,100'
img.gamma 1.1
img.contrast
img.contrast
img.contrast
img.contrast
@Aupajo
Aupajo / opentab.sh
Created March 18, 2010 23:58
opentab
#!/bin/sh
osascript 2>/dev/null <<EOF
tell application "System Events"
tell process "Terminal" to keystroke "t" using command down
end
tell application "Terminal"
activate
do script with command "cd $PWD; $*" in window 1
end tell
@Aupajo
Aupajo / gist:176788
Created August 28, 2009 04:40
My PS1, 'cause I'm afraid of change.
PS1='\u@\h:\W$(__git_ps1 "\[\e[32m\][%s]\[\e[0m\]")$ '
brew install bash-completion # read the instructions
brew uninstall git
brew install git
# reload the shell