Skip to content

Instantly share code, notes, and snippets.

View irfn's full-sized avatar
🤩
stargazing!

Irfan Shah irfn

🤩
stargazing!
View GitHub Profile
# Use Xft?
use_xft yes
xftfont Trebuchet MS:size=8
xftalpha 0.8
text_buffer_size 2048
# Update interval in seconds
update_interval 1
# This is the number of times Conky will update before quitting.
@irfn
irfn / macbook-pro-useflags
Created January 2, 2010 14:30
My macbook pro Gentoo USE flags
USE= "a52 aac amr amrnb amrr amrwb alsa apache2 asf audiofile audacious avahi avi \
berkdb bluetooth bzip2 cairo ccache cddb cdparanoia cdr cdrom css cli curl \
dbus dhcp dga dirac divx dm dri dts dvd dvdread dvdnav encode enblend exif expat exscalibar \
fastbuild ffmpeg fftw flac ftp gd gimpa gif gmedia gs gstreamer gtk2 gzip hal hdri hddtemp hfs hpn \
ibam idn ieee1394 imagemagick ipod irda isight jack java javascript jce jpeg jpeg2k ladspa \
lame lcms ldap libvisual libg++ libwww lm_sensors logrotate \
madwifi mmx mng mp3 mp4 mpeg2 mplayer msn multicall musicbrainz mysql \
ncurses network network-cron no-old-linux no-suexec nodrm nptl nsplugin nvidia nvram nsplugin \
ogg oggvorbis opengl pcap pdf pdflib perl pertty png portaudio postscript ppds posix python \
readline rdesktop rle sasl samba scanner sift slp smp sms sndfile speex spf sse sse2 sse3 ssse3 \
Section "Files"
RgbPath "/usr/share/X11/rgb"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/OTF"
# FontPath "/usr/share/fonts/100dpi/"
# FontPath "/usr/share/fonts/75dpi/"
require 'rubygems'
require 'ruote'
require 'ruote/storage/fs_storage'
# preparing the engine
engine = Ruote::Engine.new(
Ruote::Worker.new(
Ruote::HashStorage.new))
#All the REST POST calls may resturn a 422..
test_pdef = Ruote.process_definition :name => 'test' do
cursor do
sequence do
participant :alpha #a user intervention that is like a confirmation
participant :beta # no user intervation required. in my case just a REST call(POST)
rewind :if => '${422_etc_in_previous_step}'
participant :gamma # no user intervation required. based on return of :beta pass arguments to :gamma
end
end
if File.file?(other)
%x{ "$TM_SUPPORT_PATH/bin/mate" "#{other}" }
@irfn
irfn / shared_git_config
Created August 29, 2011 04:37
useful git configs
[core]
quotepath = false
editor = mate -w
[color]
branch = auto
diff = auto
interactive = auto
status = auto
[color "branch"]
current = yellow reverse
@irfn
irfn / html bits
Created May 10, 2012 15:50
paring
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Raphaël · Punch Chart</title>
<script src="http://raphaeljs.com/raphael.js" type="text/javascript" charset="utf-8"></script>
<script src="http://raphaeljs.com/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="http://raphaeljs.com/github/dots.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="http://raphaeljs.com/demo.css" type="text/css" media="screen">
<link rel="stylesheet" href="http://raphaeljs.com/demo-print.css" type="text/css" media="print">
<style type="text/css" media="screen">
@irfn
irfn / gist:5524539
Created May 6, 2013 11:07
gitconfig
[user]
name = Irfan Shah
email = mail.urfi@gmail.com
[github]
user = irfn
[core]
quotepath = false
editor = mate -w
excludesfile = /Users/irfn/.gitignore_global
pager = less -+$LESS -FRX
@irfn
irfn / gist:5625747
Created May 22, 2013 07:03
.tmux.conf
set-option -g prefix `
# set-option -g prefix C-a
unbind-key C-b
bind-key C-a last-window
bind-key ` last-window
bind-key a send-prefix
# 0 is too far from ` ;)
set -g base-index 1