Skip to content

Instantly share code, notes, and snippets.

View vprasanth's full-sized avatar

Prasanth Vaaheeswaran vprasanth

  • Toronto, Canada
  • 10:14 (UTC -04:00)
View GitHub Profile
@vprasanth
vprasanth / gulpfile.js
Created September 25, 2015 20:56
gulpfile
'use strict';
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');
var es = require('event-stream');
var del = require('del');
var sourcemaps = require('gulp-sourcemaps');
var browserSync = require('browser-sync');
var minifyHTML = require('gulp-minify-html');
@vprasanth
vprasanth / .bash_profile
Created July 28, 2015 17:13
My .bash_profile
# .bash_profile
export CLICOLOR=1
# Source global definitions
#if [ -f /etc/bashrc ]; then
# . /etc/bashrc
#fi
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
@vprasanth
vprasanth / gist:9de17a77834c6e689c0f
Last active August 29, 2015 14:26 — forked from tonymtz/gist:d75101d9bdf764c890ef
Uninstall nodejs from OSX Yosemite
# First:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
#go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*
@vprasanth
vprasanth / fallback.svg
Created March 31, 2015 16:15
how to use svgs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vprasanth
vprasanth / appify
Last active August 29, 2015 14:18 — forked from mathiasbynens/appify
#!/bin/bash
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF
appify v3.0.1 for Mac OS X - http://mths.be/appify
Creates the simplest possible Mac app from a shell script.
Appify takes a shell script as its first argument:
`basename "$0"` my-script.sh
## Directory-based project format (IntelliJ i.e. WebStorm) :
.idea/
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
# http://addyosmani.com/blog/checking-in-front-end-dependencies/
node_modules/
bower_components/
# Coverage directory used by tools like gulp/grunt
@vprasanth
vprasanth / git.css
Last active August 29, 2015 14:17 — forked from neilgee/git.css
/* Set up Git Configuration */
git config --global user.email "you@yourdomain.com"
git config --global user.name "Your Name"
git config --global core.editor "vi"
git config --global color.ui true
@vprasanth
vprasanth / global mole
Last active August 29, 2015 14:11
Mole launcher
#!/bin/bash
#Path to key
KEYPATH=home/prasanthv/.ssh/work
ssh-add $KEYPATH
/home/prasanthv/Repo/higgins-mole/mole