Skip to content

Instantly share code, notes, and snippets.

Sundeep Malladi balanceiskey

Block or report user

Report or block balanceiskey

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sunbolt.zsh-theme
# Sunrise theme for oh-my-zsh by Adam Lindberg (
# Intended to be used with Solarized:
# (Needs Git plugin for current_branch method)
# Modified by Sundeep Malladi to include Mercurial (and some other shtuff).
# Color shortcuts
balanceiskey /
Created Apr 2, 2012 — forked from erikh/
OSX For Hackers
#!/usr/bin/env sh
# This is script with usefull tips taken from:
# install it:
# curl -sL | sh
balanceiskey / badcanary.js
Created Mar 19, 2012
Canary allows bad JS.
View badcanary.js
var end_time = new Date().setUTCHours(23,59,59,59).getTime();
balanceiskey /
Created Mar 1, 2012
Simple bash function to archive a bunch of folders
for var in "$@"
if [ -z "$var" ]
echo "You must supply a folder to archive."
if [ -d $var ]
balanceiskey / gist:1774007
Created Feb 8, 2012
Date Math in Javascript
View gist:1774007
// calculate end day
// note, end day should be the final second
// of the final day (23:59:59) and 1 day
// before today
var end_time = parseInt(new Date().setUTCHours(23,59,59,59)/1000 - 86400, 10),
// calculate start day, x number of days before
// end day, note start day should be the start
// of the day (00:00:00)
start_time = parseInt(new Date((end_time - (days_ago * 86400)) * 1000).setUTCHours(0,0,0,0) / 1000, 10);
You can’t perform that action at this time.