Skip to content

Instantly share code, notes, and snippets.

View cmelbye's full-sized avatar

Charlie Melbye cmelbye

  • Snap, Inc.
  • Santa Monica
View GitHub Profile
## Notification
##
## Based on Fabien Penso's original Ruby on Rails source
## Updated by Anton Kiland (april 2009)
##
## Requires json (sudo gem install json)
## Usage:
## notification = Notification.new(device_token)
## notification.alert = 'Hello World!'
## notification.badge = 10
# Bash snippet to open new shells in most recently visited dir.
# Useful if you want to open a new terminal tab at the present
# tab's location.
#
# Put this in your .bashrc or whatever.
pathed_cd () {
if [ "$1" == "" ]; then
cd
else
!
! Urxvt
!
urxvt*termName: rxvt-unicode
! url launcher thing
Urxvt*perl-lib: /usr/lib/urxvt/perl/
URxvt*perl-ext-common: option-popup,matcher
URxvt*urlLauncher: /usr/bin/firefox
@cmelbye
cmelbye / gist:67737
Created February 20, 2009 22:11 — forked from jseifer/gist:67727
On Feb 20, 2009, at 4:24 PM, "Olusegun A.A" <xxxxxx@gmail.com> wrote:
** CRAIGSLIST ADVISORY --- AVOID SCAMS BY DEALING LOCALLY
** Avoid: wiring money, cross-border deals, work-at-home
** Beware: cashier checks, money orders, escrow, shipping
** More Info: http://www.craigslist.org/about/scams.html
Hello,
Do you still have this item available for sale at the moment? Get back asap.
@cmelbye
cmelbye / gist:41779
Created December 30, 2008 22:19 — forked from anonymous/gist:41778
export LANG=en_US.UTF-8
export LC_CTYPE="en_US.UTF-8"
export LC_NUMERIC="en_US.UTF-8"
export LC_TIME="en_US.UTF-8"
export LC_COLLATE="en_US.UTF-8"
export LC_MONETARY="en_US.UTF-8"
export LC_MESSAGES="en_US.UTF-8"
export LC_PAPER="en_US.UTF-8"
export LC_NAME="en_US.UTF-8"
export LC_ADDRESS="en_US.UTF-8"
require 'rubygems'
require 'wirble'
require 'utility_belt'
Wirble::Colorize.colors.merge!(
:comma => :light_white,
:refers => :light_white,
:open_hash => :light_white,
:close_hash => :light_white,