Skip to content

Instantly share code, notes, and snippets.

Pete Nicholls Aupajo

Block or report user

Report or block Aupajo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Aupajo
Aupajo / gist:5a9eebed339a22a5418aaae742ffd67c
Created Apr 26, 2016
NewRelic Memory Profiler shortcut
View gist:5a9eebed339a22a5418aaae742ffd67c
NewRelic::Agent::Samplers::MemorySampler.new.sampler.get_sample
View gist:add590ac7eab6046a8d4

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 Apr 11, 2016
intro to continental philosophy reading list (french post-structuralism, etc)
View reading.md
@tonycoco
tonycoco / image_filters.rb
Created Jun 11, 2012
Useful image filters (Instagram/Hipster/Cool) for CarrierWave using MiniMagick (ImageMagick)
View image_filters.rb
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
View opentab.sh
#!/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 Aug 28, 2009
My PS1, 'cause I'm afraid of change.
View gist:176788
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
You can’t perform that action at this time.