Skip to content

Instantly share code, notes, and snippets.

(setq enable-theme nil)
(if enable-theme
((require 'color-theme)
(color-theme-initialize)
(color-theme-hober)))
/def -PdCrgb555 -F -t'Kyle'
/def -PdCrgb055 -F -t'Mordred'
/def -PdCrgb050 -F -t'rgm'
/def -PdCrgb110 -F -t'swb'
/def -PdCrgb100 -F -t'keith'
/def -PdCrgb005 -F -t'Lly'
/def -PdCrgb505 -F -t'Chris'
/def -PdCrgb105 -F -t'Charkes'
/def -PdCrgb551 -F -t'pj'
/def -PdCrgb550 -F -t'Becky'
* 0: [Gmail]/All Mail
* 0: [Gmail]/Starred
0;ksexton@thinkpad:~/tmp/ipaddr[ksexton@thinkpad ipaddr]$ echo $PS1
[\u@\h \W]\$
0;ksexton@thinkpad:~/tmp/ipaddr[ksexton@thinkpad ipaddr]$
0;ksexton@thinkpad:~/tmp/ipaddr[ksexton@thinkpad ipaddr]$ PS1=$
0;ksexton@thinkpad:~/tmp/ipaddr$
@ksexton
ksexton / freesip.sh
Created February 2, 2012 23:07
Free SIP extensions
# Free SIP extensions
# Usage: freesip /etc/asterisk/sip.conf 200 299
freesip() {
comm -2 <(seq $2 $3) <(cat $1 | grep ^\\[ | sort | uniq | tr -d \[ | tr -d \]) | grep ^[[:digit:]]
}
# play_spec.rb
require 'tempfile'
require './play'
describe 'uuencode' do
before do
file = Tempfile.new('play_spec')
file.print "Lorum Ipsum"
file.rewind
@ksexton
ksexton / play_spec.rb
Created March 8, 2012 17:24
Playing with rspec
# play_spec.rb
require 'tempfile'
require './play'
describe 'uuencode' do
before do
file = Tempfile.new('play_spec')
file.print "Lorum Ipsum"
file.rewind
@ksexton
ksexton / Japanese style
Created March 16, 2012 19:38 — forked from endolith/Has weird right-to-left characters.txt
Unicode smileys emoticons
⨀_⨀
⨂_⨂
(/◔ ◡ ◔)/
°ﺑ°
(¬_¬)
(´・ω・`)
(ʘ_ʘ)
(ʘ‿ʘ)
(๏̯͡๏ )
(◕_◕)
@ksexton
ksexton / jappo.pl
Created March 16, 2012 19:40 — forked from mrdaemon/jappo.pl
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '0.01';
%IRSSI = (
authors => 'Alexandre Gauthier',
contact => 'alex@underwares.org',