Skip to content

Instantly share code, notes, and snippets.

View ffledgling's full-sized avatar
🏠
🔢

Anhad Jai Singh ffledgling

🏠
🔢
View GitHub Profile
@ffledgling
ffledgling / funsize-troubleshoot.md
Last active August 29, 2015 14:04
Senbonzakura Troubleshooting

Deployment and Troubleshooting

Senbonzakura/Funsize is still a fairly new application and there's probably a lot of kinks in it.
If you're changing things around or deploying it somewhere, it's more than likely sooner or later you'll run into errors and have the application stuck in an un-usable state. This document will list out how to get out of that state.

Important Notes

@ffledgling
ffledgling / Using_Senbonzakura.mkd
Created July 23, 2014 03:27
API Description and notes on how to use Funsize/Senbonzakura

Using Funsize

So you've heard about this amazing new update service and want to give it a whirl, eh? Alright, you'll find the instructions and hopefully, the first draft of the current API here.

This service is currently hosted at http://funsize-env-testing.elasticbeanstalk.com/

I'll begin by describing the API Endpoints, and then go on to describe easy ways to access and use the service.

@ffledgling
ffledgling / RelEng-Mentoring-HOWTO.mkd
Last active August 29, 2015 14:05
Mentoring HOWTO

Mentoring HOWTO

Historically release engineering has had a poor track record with contributors.
This has multiple reasons, the three primary ones are:

  1. No special effort had been made so far to pull in contributors, contributors were/are unaware that such a team existed and is open to contribution.
  2. The nature of release engineering demands utmost security and care, opening up infrastructure and

Honors Project Report

Anhad Jai Singh,
Computer Science and Engineering,
Centre for Visual Information Technology (CVIT)

Problem Statement

@ffledgling
ffledgling / fd1.sh
Created September 4, 2015 16:25
File descriptor demo, how to isolate an error stream for chunks of a script.
#!/bin/bash
# Have fd 3 point to where fd 2 points currently
exec 3>&2
errfile=$(mktemp)
echo "Error File is ${errfile}"
# Change fd 2 to point to some file we create
exec 2> ${errfile}
@ffledgling
ffledgling / fd2.sh
Created September 4, 2015 16:29
File descriptor demo; bash; How to isolate and collect error messages for particular from function calls, across subshells etc.
#!/bin/bash
# Create file to accumulate errors
errfile=$(mktemp)
echo "Error File is ${errfile}"
# Have fd 3 point to where fd 2 points currently
exec 3>&2
# wrapper function
@ffledgling
ffledgling / Sankalp.vimrc
Last active December 21, 2015 13:19
Reference vimrc
"-------------------------------------------------------
" My ViM Run Commands (vimrc)
" Sankalp Khare
" Wed 20 Apr 2011 04:28:05 PM IST
" IIIT, Hyderabad
"-------------------------------------------------------
set nocompatible " don't use vi compatibility; I want all the new features in Vim
set nu " enable numbering
set autoindent " when opening a new line and no filetype-specific indenting is enabled, keep the same indent as the line you're currently on.
@ffledgling
ffledgling / sanidhya.vimrc
Created August 22, 2013 20:04
Reference vimrc 2 Credits -- Sanidhya Kashyap, IIIT Hyderabad.
"""""""""""""""""""""""""""""""""""""""""""""""""""""
" General Settings -
"""""""""""""""""""""""""""""""""""""""""""""""""""""
" Set the indent length as 3
set shiftwidth=4
" Defining how many undo's can be done in vim at a time
set undolevels=5000
@ffledgling
ffledgling / My .vimrc
Created August 23, 2013 03:07
My own .vimrc file, kept for reference.
" set line numbering
set nu
" formatting options
set shiftwidth=4 "set default
set softtabstop=4
set autoindent
set smartindent
set smarttab
@ffledgling
ffledgling / tmux.md
Created December 15, 2013 14:11 — forked from andreyvit/tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a