Skip to content

Instantly share code, notes, and snippets.

View btbytes's full-sized avatar

Pradeep Gowda btbytes

View GitHub Profile

Action and Habit

Source: http://lesswrong.com/lw/60y/action_and_habit/

I remember a poster that hung on the wall of my seventh grade classroom. It went like this:

Watch your thoughts, for they become words.
Watch your words, for they become actions.
Watch your actions, for they become habits.

Watch your habits, for they become your character.

@btbytes
btbytes / Makefile
Created June 26, 2011 16:50 — forked from tskrynnyk/Makefile
Pandoc makefile
%.html: %.md style.css Makefile
pandoc -c style.css -s -f markdown -t html --standalone -o $@ $<
%.odt: %.md Makefile
pandoc --standalone -f markdown -t odt -o $@ $<
%.pdf: %.md %.odt
markdown2pdf -f markdown -o $@ $<
all: doc.html doc.odt doc.pdf
@btbytes
btbytes / gist:1051622
Created June 28, 2011 17:10
minicom_brew.mkd
brew install minicom
==> Downloading http://alioth.debian.org/frs/download.php/3195/minicom-2.4.tar.gz
######################################################################## 100.0%
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/minicom/2.4 --mandir=/usr/local/Cellar/minicom/2.4/share/man
==> make install
==> Caveats
Terminal Compatibility
======================
If minicom doesn't see the LANG variable, it will try to fallback to
make the layout more compatible, but uglier. Certain unsupported
@btbytes
btbytes / benchbulk.sh
Created July 4, 2011 20:31 — forked from jchris/benchbulk.sh
benchmarking CouchDB bulk inserts in bash
#!/bin/bash
# usage: time benchbulk.sh dbname
# it takes about 30 seconds to run on my old MacBook
BULKSIZE=1000
DOCSIZE=100
INSERTS=10
ROUNDS=10
DBURL="http://localhost:5984/$1"
@btbytes
btbytes / install_tir_mac_osx.md
Created July 19, 2011 02:42
install Mongrel2.Tir on Mac OS X + brew

Work in progress

Installing Tir on Mac OSX+brew

Download and install latest luarocks -- 2.0.4.1

Install luasec

$ brew install openssl

$ luarocks install luasec

@btbytes
btbytes / siri_name_animals.md
Created July 22, 2011 01:45
List of animals Siri can identify
  • Dog
  • Cat
  • Zebra
  • Elephant
  • Giraffe
  • Lion
  • Tiger
  • Panda
  • Koala
  • Penguin
@btbytes
btbytes / Siri_sings.md
Created July 24, 2011 02:14
Siri sings
  • Goosy goosy gander
  • Twinkle twinkle little star
  • Happy birthday
  • One-two buckle my shoe
  • ಒಂದು ಎರಡು ಬಾಳೆಲೆ ಹರಡು -- ಕನ್ನಡ
  • ದಸ್-ಬಾರಾ -- ಕೊಂಕಣಿ
@btbytes
btbytes / about.md
Created August 9, 2011 15:53 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@btbytes
btbytes / hello.lua
Created August 11, 2011 01:25 — forked from randrews/hello.lua
Embedding Lua in C
-- Pack this into an object file with ld: ld -r -b binary -o hello.o hello.lua
print "Hello, World!"
@btbytes
btbytes / backup_git_repos.sh
Created August 19, 2011 15:44
Datestamped backup of git repositories managed by gitosis
#!/bin/bash
#A script to backup all the git repositories managed by gitosis
#and create a date stamped tarball.
#Pradeep Gowda
#2011-08-19
GITOSISADMIN=$HOME/mycompany/gitosis-admin