Skip to content

Instantly share code, notes, and snippets.

View kxhitiz's full-sized avatar
:octocat:
{ hello: world }

Kshitiz Gurung kxhitiz

:octocat:
{ hello: world }
View GitHub Profile
@kxhitiz
kxhitiz / gist:3434122
Created August 23, 2012 08:10
rails Url helper
Rails.application.routes.url_helpers.notifications_path
@kxhitiz
kxhitiz / gist:3422679
Created August 22, 2012 05:52
Redis setup in rails
http://jimneath.org/2011/03/24/using-redis-with-ruby-on-rails.html
@kxhitiz
kxhitiz / gist:3412158
Created August 21, 2012 05:31
FB App Development Resources Collection
http://net.tutsplus.com/tutorials/javascript-ajax/design-and-code-an-integrated-facebook-app/
https://developers.facebook.com/docs/opengraph/tutorial/
@kxhitiz
kxhitiz / gist:3411672
Created August 21, 2012 04:46
Grab gravatar profile pic
http://www.gravatar.com/avatar.php?gravatar_id=c0f3968c855edfa81ec56b8aa3db3a67?d=mm
@kxhitiz
kxhitiz / gist:3142947
Created July 19, 2012 10:40
Mongoid Logger in Console
Mongoid.logger = Logger.new($stdout)
@kxhitiz
kxhitiz / gist:3033909
Created July 2, 2012 15:50
Mongodb starting problem in ubuntu
You started mongodb server, but No matter what. However, when you run sudo status mongodb again, you’ll get
mongodb stop/waiting instead of mongodb start/running
Note: This condition is largely due to an unclean shutdown, and results in the creation of a lockfile /var/lib/mongodb/mongod.lock.
The fix is a quick two-step process as follows:
Remove the lockfile.
Run the repair script.
This is accomplished as follows:
@kxhitiz
kxhitiz / gist:3023155
Created June 30, 2012 09:45
installing alien
sudo apt-get install alien dpkg-dev debhelper build-essential
sudo alien packagename.rpm
@kxhitiz
kxhitiz / responsive-iframes.css
Created June 28, 2012 05:09 — forked from aarongustafson/responsive-iframes.css
Responsive iFrames with jQuery
iframe {
max-width: 100%;
}
@kxhitiz
kxhitiz / k_gist.rb
Created June 25, 2012 05:20
random gist
#This is just a test gist upload using rubygem from command line
@kxhitiz
kxhitiz / launch_sublime_from_terminal.markdown
Created June 5, 2012 04:10 — forked from artero/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation