Skip to content

Instantly share code, notes, and snippets.

View virajkulkarni14's full-sized avatar
💻
Code on...

Viraj G. Kulkarni (विराज गु. कुलकर्णी) virajkulkarni14

💻
Code on...
View GitHub Profile
@ambethia
ambethia / _index.md
Created October 18, 2008 01:28
All kinda of deployment notes

Certifications

  • Ruby Silver Certification
  • MySQL Developer Certification
  • Zend PHP Certification
  • UML Fundamental
  • Oracle Bronze/Silver if I apply for System Integrators.

Others

@dap
dap / gist:151750
Created July 22, 2009 02:06
En/disable DD-WRT web console
#!/bin/bash
# ddweb.sh - enable/disable DD-WRT web console access
# Darian Anthony Patrick <dap@darianpatrick.com>
#
# Control access to the web management console
# of devices using the DD-WRT firmware by
# enabling/disabling the HTTP & HTTPS access.
#
# Repository: http://gist.github.com/151750
after "deploy:setup", "thinking_sphinx:shared_sphinx_folder"
after 'deploy:finalize_update', 'thinking_sphinx:symlink_indexes'
after 'deploy:restart', 'thinking_sphinx:restart'
namespace :thinking_sphinx do
task :symlink_indexes, :roles => [:app] do
run "ln -nfs #{shared_path}/db/sphinx #{latest_release}/db/sphinx"
end
task :restart do
configure
@banksean
banksean / mersenne-twister.js
Created February 10, 2010 16:24
a Mersenne Twister implementation in javascript. Makes up for Math.random() not letting you specify a seed value.
/*
I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace
so it's better encapsulated. Now you can have multiple random number generators
and they won't stomp all over eachother's state.
If you want to use this as a substitute for Math.random(), use the random()
method like so:
var m = new MersenneTwister();
task :deploy => ['deploy:push', 'deploy:restart', 'deploy:tag']
namespace :deploy do
task :migrations => [:push, :off, :migrate, :restart, :on, :tag]
task :rollback => [:off, :push_previous, :restart, :on]
task :push do
puts 'Deploying site to Heroku ...'
puts `git push heroku`
end
#!/bin/bash
# Source global definitions
[ -f /etc/bashrc ] && . /etc/bashrc
[ -f /etc/profile ] && . /etc/profile
export EDITOR=vim
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
@defunkt
defunkt / clients.md
Created April 18, 2010 14:09
A list of Gist clients.

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support

@tdd
tdd / gitconfig.ini
Last active July 24, 2024 04:11
Nice, useful global Git configuration
# Put this in your ~/.gitconfig or ~/.config/git/config
# Windows users: "~" is your profile's home directory, e.g. C:\Users\<YourName>
[user]
name = Your Full Name
email = your@email.tld
[color]
# Enable colors in color-supporting terminals
ui = auto
[alias]
# List available aliases
@tanzeeb
tanzeeb / game_of_life.rb
Created August 2, 2010 10:32
RPCFN #11
class GameOfLife
attr_accessor :state, :height, :width, :rules
def initialize options={}
self.rules = options[:rules] || [ [0,0,0,1,0,0,0,0,0], [0,0,1,1,0,0,0,0,0] ]
self.height = options[:size] || options[:height] || 10
self.width = options[:size] || options[:width] || 10
self.state = options[:seed] || grid { rand(2) }