Skip to content

Instantly share code, notes, and snippets.

Ankit Jain ankitjaininfo

Block or report user

Report or block ankitjaininfo

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 file1.txt
Aren't gists great!
View file1.txt
Aren't gists great!
ankitjaininfo / batch-despeckle.scm
Last active Aug 22, 2016
Gimp - Reduce ISO Noise for Photos in bulk - Run this on a directory with image files. It overwrites existing files.
View batch-despeckle.scm
; Takes a pattern and applies despeckle to reduce noise in photos.
; You can also pass ratio if you want to scale photos
; Example: gimp -i -b '(batch-despeckle "*.jpg" 0.5)' -b '(gimp-quit 0)'
(define (batch-despeckle pattern ratio)
(let* ((filelist (cadr (file-glob pattern 1))))
(while (not (null? filelist))
View Installing AskBot on
# Installing on DigitalOcean dropllet.
# 1. Install the package
easy_install -U setuptools
sudo apt-get install zlib1g-dev
sudo apt-get install jpeg
sudo apt-get install libjpeg-dev
sudo apt-get install python-dev
pip install askbot
ankitjaininfo / delete-mandrill-subaccount.js
Created Oct 15, 2015
Delete All Subaccounts in Mandrill (nodejs)
View delete-mandrill-subaccount.js
var mandrill = require('mandrill-api/mandrill');
var async = require('async');
mandrill_client = new mandrill.Mandrill('<place your key here>');
var q = "";
"q": q
}, function (result) {
console.log("Found: ", result.length); (account) {
View .gitconfig
lg = log --color --graph --pretty=format:'%Cred%h%Creset - %Cgreen(%cr) %C(yellow)%d%Creset %s %C(bold blue)<%an>%Creset' --abbrev-commit
ll = log --pretty=format:'%C(red)%h %Cgreen(%cr) %C(yellow)%d%Creset%s %C(bold blue)<%an>%Creset' --decorate --numstat
d = diff
dc = diff --cached
s = status
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
unassumeall = "!git assumed | xargs git update-index --no-assume-unchanged"
ankitjaininfo /
Last active Aug 29, 2015
Awesome List: List of all Curated Awesomes

After writing following I found that there is already one such list. Head to awesome

This is a list of all awesome:awesome lists. Should help you to get started your next research about tools.


A curated list of awesome awesomeness


You can’t perform that action at this time.