Skip to content

Instantly share code, notes, and snippets.

View krishraghuram's full-sized avatar

Raghuram Krishnaswami krishraghuram

  • Guwahati
View GitHub Profile
@jehiah
jehiah / git-branch-status
Last active March 21, 2024 12:39
show git ahead/behind info for branches
moved to github --> https://github.com/bill-auger/git-branch-status/
@bmc
bmc / stack.sh
Created October 28, 2011 21:04
A stack implementation, in bash
# A stack, using bash arrays.
# ---------------------------------------------------------------------------
# Create a new stack.
#
# Usage: stack_new name
#
# Example: stack_new x
function stack_new
{
@Hexodus
Hexodus / count_total_project_code_lines_in_sublime
Created September 8, 2013 17:06
Count total code lines in project using Sublime texteditor
// Go to menue:
// find->find in files
// Switch on reg_ex button
// Find:
^(.*)$
// Where:
c:\your_folder\,*.php,*.phtml,*.js,*.inc,*.html, -*/folder_to_exclude/*
// Then click on the find button
// Be careful to not click on Replace!!!
@todvora
todvora / analyze-all.sh
Created May 20, 2015 05:43
Variety.js - analyze all available collections
#!/usr/bin/env bash
# the database name, that will be analyzed
DATABASE_NAME="test"
# read all collection names, using mongo shell
COLLECTIONS=$(mongo $DATABASE_NAME --eval "db.getCollectionNames().join('\n');" --quiet)
echo -e "Found collections: \n$COLLECTIONS"