Skip to content

Instantly share code, notes, and snippets.

View rkumar's full-sized avatar
💭
Coming back to this world after a long time

r__k_u_m_a_r rkumar

💭
Coming back to this world after a long time
View GitHub Profile
@rkumar
rkumar / brew error log on calcurse
Created November 10, 2012 05:29
HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew upgrade calcurse
Your system is raring to brew.
HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew upgrade calcurse
==> Upgrading calcurse
rm /usr/local/bin/calcurse
rm /usr/local/share/man/man1/calcurse.1
rm /usr/local/share/locale/nl/LC_MESSAGES/calcurse.mo
rm /usr/local/share/locale/fr/LC_MESSAGES/calcurse.mo
rm /usr/local/share/locale/es/LC_MESSAGES/calcurse.mo
rm /usr/local/share/locale/en/LC_MESSAGES/calcurse.mo
@rkumar
rkumar / proctools.txt
Created November 7, 2012 19:22
HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install proctools
/u/l/Cellar git:master ❯❯❯ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install proctools
==> Downloading http://downloads.sourceforge.net/project/proctools/proctools/0.4pre1/proctools-0.4pre1.tar.gz
Already downloaded: /Users/rahul/Library/Caches/Homebrew/proctools-0.4pre1.tar.gz
/usr/bin/tar xf /Users/rahul/Library/Caches/Homebrew/proctools-0.4pre1.tar.gz
==> Downloading patches
/usr/bin/curl -f#LA Homebrew 0.9.3 (Ruby 1.8.7-358; Mac OS X 10.7.5) https://trac.macports.org/export/89276/trunk/dports/sysutils/proctools/files/patch-pfind-Makefile.diff -o 000-homebrew.diff https://trac.macports.org/export/89276/trunk/dports/sysutils/proctools/files/patch-pfind-pfind.c.diff -o 001-homebrew.diff https://trac.macports.org/export/89276/trunk/dports/sysutils/proctools/files/patch-pgrep-Makefile.diff -o 002-homebrew.diff https://trac.macports.org/export/89276/trunk/dports/sysutils/proctools/files/patch-pkill-Makefile.diff -o 003-homebrew.diff https://trac.macports.org/export/89276/trunk/dports/sysutils/proctools/files/patch-pr
@rkumar
rkumar / lsof.log
Created January 13, 2012 18:51
lsof -U
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
launchd 136 roger 4u unix 0xffffff800c1b7900 0t0 /tmp/launchd-136.FP72p5/sock
launchd 136 roger 7u unix 0xffffff800c1b6fa0 0t0 /tmp/launchd-136.FP72p5/sock
launchd 136 roger 8u unix 0xffffff800c1b6190 0t0 /tmp/launch-g5LYZj/Render
launchd 136 roger 9u unix 0xffffff800c239c80 0t0 ->0xffffff800c239e10
launchd 136 roger 10u unix 0xffffff800c1b7db0 0t0 /tmp/launch-5RaNCs/Listeners
launchd 136 roger 11u unix 0xffffff800c1b8008 0t0 /tmp/launch-EfzqYN/org.x:0
launchd 136 roger 24u unix 0xffffff800c23a6a8 0t0 ->0xffffff800c23a770
launchd 136 roger 25u unix 0xffffff800c239d48 0t0 ->0xffffff800c239bb8
launchd 136 roger 26u unix 0xffffff800c23a1f8 0t0 ->0xffffff800c23a450
@rkumar
rkumar / zz.sh
Created December 25, 2011 07:34
selection of directory to cd to (uses z.sh)
#!/bin/bash
# maintains a jump-list of the directories you actually use
#
# INSTALL:
# * put something like this in your .bashrc:
# . /path/to/z.sh
# * cd around for a while to build up the db
# * PROFIT!!
#
@rkumar
rkumar / br.sh
Created December 6, 2011 07:48
quickly print last 10 bugs from bugzy.sqlite
#
# quickly report data from sqldatabase avoiding ruby's load time
# also colorize file
# colorize can only do a line, whereas sed allows us to do parts. but using ansi
# its not easy to do both lines and part, so it sucks
# most allows us to page horizontally
# less does not
# colorize only does basic colors, in bash we can do 256.
# http://cbouvi.free.fr/download/colorize/colorize-0.5.tar.gz
# http://code.google.com/p/ansi-color/
@rkumar
rkumar / b.sh
Created December 6, 2011 07:28
quick reporter from bugzy.sqlite database
# alias bs='b.sh'
# quickly report data from sqldatabase avoiding ruby's load time
# also colorize file
# colorize can only do a line, whereas sed allows us to do parts. but using ansi
# its not easy to do both lines and part, so it sucks
# most allows us to page horizontally
# less does not
# colorize only does basic colors, in bash we can do 256.
@rkumar
rkumar / colormap.sh
Created December 6, 2011 07:25
colormap.sh - bash color mappings
export NONE=''
export BLACK='\\033[0;30m'
export RED='\\033[0;31m'
export GREEN='\\033[0;32m'
export BROWN='\\033[0;33m'
export BLUE='\\033[0;34m'
export PURPLE='\\033[0;35m'
export CYAN='\\033[0;36m'
export LIGHT_GREY='\\033[0;37m'
export DARK_GREY='\\033[1;30m'
@rkumar
rkumar / detach.txt
Created November 18, 2011 09:30
detach subdir from one repo to another
## vim:tw=72:ai:formatoptions=tcqln:nocindent
## This is taken from stack overflow. article titled "detach subdir"
# http://stackoverflow.com/questions/359424/detach-subdirectory-into-separate-git-repository
# However, it was all scattered, and no clue where to run what command.
# change REPO for each subdir. Do not run this as a script, preferably cut
# paste each line and run it.
@rkumar
rkumar / b.sh
Created November 14, 2011 07:48
print my bugs and issues from sqlite3 table using bash
#
# quickly report data from sqldatabase avoiding ruby's load time
# also colorize file
# colorize can only do a line, whereas sed allows us to do parts. but using ansi
# its not easy to do both lines and part, so it sucks
# most allows us to page horizontally
# less does not
# colorize only does basic colors, in bash we can do 256.
#
cd ~/work/projects/rbcurse/examples
@rkumar
rkumar / ansi-grey.sh
Created November 14, 2011 07:18
some additional ansi color codes for grey scale
export ON_GRAY232='\\033[48;5;232m'
export ON_GRAY233='\\033[48;5;233m'
export ON_GRAY234='\\033[48;5;234m'
export ON_GRAY235='\\033[48;5;235m'
export ON_GRAY236='\\033[48;5;236m'