Skip to content

Instantly share code, notes, and snippets.

View millisami's full-sized avatar
🎯
Focusing on landing a Web3 Job

Sachin Sagar Rai millisami

🎯
Focusing on landing a Web3 Job
View GitHub Profile
@millisami
millisami / gist:798440
Created January 27, 2011 12:16
How to reset or get the forgot password back at RubyFlow?
How to reset or get the forgot password back at RubyFlow?
Hi, totally naive question, though I couldn't find out any way out on how to reset/get back the password at http://rubyflow.com
Googled, twitted, wrote to #sutto
Anyone knows how to get back my password?
@millisami
millisami / gist:800662
Created January 28, 2011 18:03
vimrc
" => General
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set nocompatible " Must come first because it changes other options.
"silent! call pathogen#runtime_append_all_bundles()
"silent! call pathogen#helptags()
" Sets how many lines of history VIM has to remember
set history=700
@millisami
millisami / rvm install ree
Created March 15, 2011 11:43
REE error while upgrading/installing version 2011-03 with rvm version 1.2.8
[2011-03-15 16:48:47] ./installer -a /Users/millisami/.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.
@millisami
millisami / .gitconfig
Created May 5, 2011 06:03
Global settings for git at ~/.gitconfig
[user]
name = your_username
email = [email protected]
[github]
user = github_username
token = github_your_own_token
[core]
#Global .gitignore file
excludesfile = /Users/millisami/.gitignore
editor = mate -w
@millisami
millisami / rails3.1 engine
Created May 25, 2011 09:12
Rails 3.1 engine
➜ (ruby-1.9.2-p180@rails3-pre) rails git:(master) be bin/rails plugin new ../first_engine --mountable
create
create README.rdoc
create Rakefile
create first_engine.gemspec
create MIT-LICENSE
create .gitignore
create Gemfile
create app
create app/controllers/first_engine/application_controller.rb
@millisami
millisami / .gitignore
Created June 8, 2011 07:00
Global ~/.gitignore file
.bundle
db/*.sqlite3*
log/*.log
*.log
tmp/**/*
tmp/*
doc/api
doc/app
*.swp
*~
@millisami
millisami / brew --config
Created June 23, 2011 11:30
brew install ffmpeg
HOMEBREW_VERSION: 0.8
HEAD: 57338d3c6763f2d0b5a91091baf973e407c35034
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit penryn
OS X: 10.6.7
Kernel Architecture: i386
Ruby: 1.8.7-174
@millisami
millisami / resque_worker exception
Created July 1, 2011 05:02
cloudfoundry app exception
Rack::Lint::LintError at /resque
env missing required key SERVER_NAME
Ruby /var/vcap/data/dea/apps/newsly_resque_worker-0-5208d1f9f5ede1a5246eb3285725e7b6/app/rubygems/ruby/1.9.1/gems/rack-1.2.2/lib/rack/lint.rb: in assert, line 19
Web GET newsly_resque_worker.cloudfoundry.com/resque
Jump to:
GETPOSTCookiesENV
Traceback (innermost first)
/var/vcap/data/dea/apps/newsly_resque_worker-0-5208d1f9f5ede1a5246eb3285725e7b6/app/rubygems/ruby/1.9.1/gems/rack-1.2.2/lib/rack/lint.rb: in assert
@millisami
millisami / install.log
Created July 1, 2011 10:12
rvm instal ree
[2011-07-01 15:54:28] ./installer -a /Users/millisami/.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.
@millisami
millisami / throw-catch.rb
Created July 13, 2011 10:13 — forked from avdi/throw-catch.rb
throw/catch demo code for RubyLearning article
require 'rubygems'
require 'mechanize'
MAX_PAGES = 6
def each_google_result_page(query, max_pages=MAX_PAGES)
i = 0
a = Mechanize.new do |a|
a.get('http://google.com/') do |page|
search_result = page.form_with(:name => 'f') do |search|