Skip to content

Instantly share code, notes, and snippets.

View mzahir's full-sized avatar
🏝️

Musannif Zahir mzahir

🏝️
View GitHub Profile
@mzahir
mzahir / index.html
Last active January 19, 2016 04:11 — forked from pstuffa/index.html
waves_iv
<!DOCTYPE html>
<meta charset="utf-8">
<style>
canvas {
position: absolute;
}
</style>
@mzahir
mzahir / work.sh
Created October 23, 2013 14:11
Postgres.app on OS X Maverick
sudo mkdir /var/pgsql_socket
chown $USER:staff /var/pgsql_socket
ln -s /tmp/.s.PGSQL.5432 /var/pgsql_socket/.s.PGSQL.5432

Deploy Rails 4 app with Dokku on DigitalOcean

Install dokku

First create a Ubuntu 13.04 x64 droplet on DigitalOcean Control Panel

Then ssh with root account, run this in termianl:

$ wget -qO- https://raw.github.com/progrium/dokku/master/bootstrap.sh | sudo bash
@mzahir
mzahir / fehi-rspec.rb
Created November 18, 2012 10:39
[RSpec] Not getting redirect from ProductController
==== products_controller_spec.rb =====
describe ProductsController, "Handling POST for create" do
def sign_in_user
user = FactoryGirl.create(:user)
sign_in user, @user
end
def do_post
post :create, :product => @params
@mzahir
mzahir / setup-statsd.sh
Created September 26, 2011 18:27 — forked from howardr/setup-statsd.sh
Minor changes to statsd installation
# install git
sudo apt-get install g++ curl libssl-dev apache2-utils
sudo apt-get install git-core
mkdir ~/src
cd ~/src
# uncomment to disable SSL CA verification for the git clone step(s)
# export GIT_SSL_NO_VERIFY=1