Skip to content

Instantly share code, notes, and snippets.

View danishkhan's full-sized avatar
:shipit:

Danish Khan danishkhan

:shipit:
View GitHub Profile

Keybase proof

I hereby claim:

  • I am danishkhan on github.
  • I am danishkhan (https://keybase.io/danishkhan) on keybase.
  • I have a public key whose fingerprint is 57D3 5943 CE39 D088 A018 C261 1A48 9C93 7F8A F14E

To claim this, I am signing this object:

Anchor Test

@danishkhan
danishkhan / speaker.md
Created May 17, 2012 05:05 — forked from matiaskorhonen/speaker.md
Frozen Rails Talk Proposal
☁ mongod
mongod --help for help and startup options
Thu Jan 19 17:01:31 [initandlisten] MongoDB starting : pid=74915 port=27017 dbpath=/data/db/ 64-bit host=dkhan.local
Thu Jan 19 17:01:31 [initandlisten] db version v2.0.2, pdfile version 4.5
Thu Jan 19 17:01:31 [initandlisten] git version: 514b122d308928517f5841888ceaa4246a7f18e3
Thu Jan 19 17:01:31 [initandlisten] build info: Darwin erh2.10gen.cc 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_40
Thu Jan 19 17:01:31 [initandlisten] options: {}
Thu Jan 19 17:01:31 [initandlisten] exception in initAndListen: 10296 dbpath (/data/db/) does not exist, terminating
Thu Jan 19 17:01:31 dbexit:
Thu Jan 19 17:01:31 [initandlisten] shutdown: going to close listening sockets...
@danishkhan
danishkhan / torrents_rss_downloader.rb
Created October 11, 2011 07:03
Script to automatically download torrents from an RSS feed
require 'rubygems'
require 'feedzirra'
require 'whenever'
=begin
Simple script to auto download new torrents from an RSS feed.
You can then utilize whenever and create a cronjob to run the
script at a specified interval.
=end
☁ cat /Users/dkahn/.rvm/log/ree-1.8.7-2011.03/install.log
[2011-08-17 16:47:01] ./installer -a /Users/dkahn/.rvm/rubies/ree-1.8.7-2011.03 --no-tcmalloc --dont-install-useful-gems
Welcome to the Ruby Enterprise Edition installer
This installer will help you install Ruby Enterprise Edition 1.8.7-2011.03.
Don't worry, none of your system files will be touched if you don't want them
to, so there is no risk that things will screw up.
You can expect this from the installation process:
1. Ruby Enterprise Edition will be compiled and optimized for speed for this
[2011-08-17 16:19:19] ./installer -a /Users/dkahn/.rvm/rubies/ree-1.8.7-2011.03 --no-tcmalloc --dont-install-useful-gems
Welcome to the Ruby Enterprise Edition installer
This installer will help you install Ruby Enterprise Edition 1.8.7-2011.03.
Don't worry, none of your system files will be touched if you don't want them
to, so there is no risk that things will screw up.
You can expect this from the installation process:
1. Ruby Enterprise Edition will be compiled and optimized for speed for this
system.
☁ rvm install ree
Installing Ruby Enterprise Edition from source to: /Users/dkahn/.rvm/rubies/ree-1.8.7-2011.03
ree-1.8.7-2011.03 - #fetching (ruby-enterprise-1.8.7-2011.03)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7713k 100 7713k 0 0 2590k 0 0:00:02 0:00:02 --:--:-- 2605k
ree-1.8.7-2011.03 - #extracting ruby-enterprise-1.8.7-2011.03 to /Users/dkahn/.rvm/src/ree-1.8.7-2011.03
ree-1.8.7-2011.03 - #installing
ERROR: Error running './installer -a /Users/dkahn/.rvm/rubies/ree-1.8.7-2011.03 --no-tcmalloc --dont-install-useful-gems ', please read /Users/dkahn/.rvm/log/ree-1.8.7-2011.03/install.log
ERROR: There has been an error while trying to run the ree installer. Halting the installation.
☁ mongod
mongod --help for help and startup options
Mon Aug 8 12:52:57 [initandlisten] MongoDB starting : pid=15166 port=27017 dbpath=/data/db/ 64-bit
Mon Aug 8 12:52:57 [initandlisten] db version v1.8.2, pdfile version 4.5
Mon Aug 8 12:52:57 [initandlisten] git version: 433bbaa14aaba6860da15bd4de8edf600f56501b
Mon Aug 8 12:52:57 [initandlisten] build sys info: Darwin erh2.10gen.cc 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_40
Mon Aug 8 12:52:57 [initandlisten] exception in initAndListen std::exception: dbpath (/data/db/) does not exist, terminating
Mon Aug 8 12:52:57 dbexit:
Mon Aug 8 12:52:57 [initandlisten] shutdown: going to close listening sockets...
Mon Aug 8 12:52:57 [initandlisten] shutdown: going to flush diaglog...