Skip to content

Instantly share code, notes, and snippets.

View pungoyal's full-sized avatar

Puneet Goyal pungoyal

View GitHub Profile

Havelock [Thu], Fri, Sat, [Sun]

Visit

  • Elephant Beach: Take a motor boat from the Havelock jetty. ~ 45 minutes. Snorkeling there.
  • Radhanagar Beach.
  • Neil Island.
  • Leave Sunday to Port Blair 4:30PM @ Makruzz cruz
  • Ask resort for jungle treks.
@pungoyal
pungoyal / turkey.textile
Created December 28, 2011 13:29
turkey - jan/feb

Day 1: Arrival in Istanbul
- Transfer to the hotel
- Afternoon cruise along the Bosphorus
- Egyptian/Spice Market
Overnight : Istanbul

Day 2: Istanbul
- Byzantine Hippodrome
- Blue Mosque
- Grand Bazaar

@pungoyal
pungoyal / java consumer console output
Created July 15, 2012 18:20
java consumer of a hornetq deployed in torquebox
⚡ mvn clean package exec:java -Dexec.mainClass="com.y2cf.messaging.App"
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building consumer 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ consumer ---
[INFO] Deleting /Users/puneet/work/hoppr/jms/consumer/target
[INFO]
@pungoyal
pungoyal / hack.sh
Created March 7, 2013 08:45 — forked from erikh/hack.sh
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
  1. the default index.html does not work well in prodution mode, so do not borther to config that, just delete it and go on.

  2. To put things in production mode, do

     rails g scaffold items name:string
     rake db:migrate RAILS_ENV=production
     rm public/index.html
     #change route.rb point root to items#index
     rake assets:precompile
     sudo service nginx restart
    

./config/unicorn_init.sh stop

@pungoyal
pungoyal / gist:6930590
Last active December 25, 2015 06:18
re-create the docker bridge
sudo service docker stop
sudo iptables -t nat -F
sudo ifconfig docker0 down
sudo brctl delbr docker0
sudo service docker start
@pungoyal
pungoyal / ubuntu.sh
Last active December 25, 2015 11:49
dev box setup
sudo apt-get curl install htop screen aptitude -y
# build essentials
sudo aptitude install vim zlib1g-dev libssl-dev openssl libreadline-dev sqlite3 libsqlite3-dev libxslt-dev libxml2-dev zsh git -y
# zsh
curl https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
sudo chsh -s `which zsh`
# rbenv
@pungoyal
pungoyal / setup
Created October 16, 2013 04:57
docker bootcamp
> Setup docker using vagrant - http://docs.docker.io/en/latest/installation/vagrant/
> Run docker hello world - http://docs.docker.io/en/latest/examples/hello_world/#hello-world
@pungoyal
pungoyal / 01 - ubuntu.sh
Last active November 28, 2016 09:48
Minimal dev box setup scripts
echo "export LANG=\"en_US\"" | tee -a ~/.bash_profile
echo "export LC_ALL=$LANG.UTF-8" | tee -a ~/.bash_profile
apt-get install vim curl git htop screen aptitude -y
aptitude update
aptitude upgrade -y # optional
# reboot, perhaps?
# add a non-root user
adduser puneet # fill the details
@pungoyal
pungoyal / Berksfile
Last active December 28, 2015 07:29
notes for devops days
site :opscode
cookbook 'vim'
cookbook 'ntp'