Skip to content

Instantly share code, notes, and snippets.

@vishwassharma
vishwassharma / gitconfig.ini
Created March 23, 2012 04:42
Git configuration shortcuts for URL's
$ git clone github:lenary/guides.git
Cloning into guides...
remote: Counting objects: 255, done.
remote: Compressing objects: 100% (216/216), done.
remote: Total 255 (delta 111), reused 163 (delta 35)
Receiving objects: 100% (255/255), 1.49 MiB | 564 KiB/s, done.
Resolving deltas: 100% (111/111), done.
$ cd guides
$ git remote -v
@vishwassharma
vishwassharma / Yeah this one twoo
Created March 23, 2012 18:15
Projects to look forward to
Configuration management
https://github.com/travisjeffery/ninja-config/
@vishwassharma
vishwassharma / .vimrc
Created March 25, 2012 00:10
Biggest vimfile ever
" =========================
" _ __(_)__ _ ________
" _| |/ / // ' \/ __/ __/
" (_)___/_//_/_/_/_/ \__/
" =========================
" Author: stardiviner ( numbchild at gmail dot com )
" [[ vim Settings ]] {{{2
" :echo $MYVIMRC
set nocompatible " not vim compatible. must be first one, will affect other options.
@vishwassharma
vishwassharma / Fabfile
Created April 3, 2012 23:37
Fabfile from NewsBlue
from fabric.api import abort, cd, env, get, hide, hosts, local, prompt, parallel, serial
from fabric.api import put, require, roles, run, runs_once, settings, show, sudo, warn
from fabric.colors import red, green, blue, cyan, magenta, white, yellow
try:
from boto.s3.connection import S3Connection
from boto.s3.key import Key
except ImportError:
print " ---> Boto not installed yet. No S3 connections available."
from fabric.contrib import django
import os, sys
@vishwassharma
vishwassharma / Fabfile
Created April 3, 2012 23:39
fab file from webfraction django
# -*- coding: utf-8 -*-
"""
Fabfile template for deploying django apps on webfaction using gunicorn,
and supervisor.
"""
from fabric.api import *
from fabric.contrib.files import upload_template, exists, append
import xmlrpclib
// ===========================================================================
// About Me.
// ===========================================================================
var cowboy = {
name: "Ben Alman",
url: "http://benalman.com/",
twitter: "@cowboy",
github: "cowboy",
@vishwassharma
vishwassharma / example.js
Created May 15, 2012 20:21 — forked from bnoguchi/example.js
Example everyauth ajax password response
everyauth.password
.respondToLoginSucceed( function (res, user) {
if (user) { /* Then the login was successful */
res.json({ success: true }, 200);
}
})
.respondToLoginFail( function (req, res, errors, login) {
if (!errors || !errors.length) return;
return res.json({ success: false, errors: errors });
});
@vishwassharma
vishwassharma / gist:2760011
Created May 21, 2012 00:13 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@vishwassharma
vishwassharma / package.json
Created May 21, 2012 06:37
Basic Bootstrap package.json
{
"name" : "angle",
"version" : "0.0.1",
"description" : "A supervisor program for running nodejs programs",
"author" : "Vishwas Sharma",
"dependencies": {
"express": "2.5.8",
"jade" : "0.26.0"
}
}
@vishwassharma
vishwassharma / README.md
Created May 21, 2012 06:41
How To : Set up Guard / Guard-livereload for Node

How to bootstrap

On Ubuntu

###1. Before that make sure that you dont have any ruby package installed on your system

    sudo apt-get purge ruby
    sudo apt-get purge ruby-gems

sudo apt-get purge ruby1.9.3