Skip to content

Instantly share code, notes, and snippets.

Avatar

Ankit Jain ankitjaininfo

View GitHub Profile
View file1.txt
Aren't gists great!
View file1.txt
Aren't gists great!
@ankitjaininfo
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
;
; CAUTION - IT OVERWRITES EXISTING FILES IN THE DIRECTORY
;
; 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 Ubuntu.sh
# 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
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 = "";
mandrill_client.subaccounts.list({
"q": q
}, function (result) {
console.log("Found: ", result.length);
result.map(function (account) {
View .gitconfig
[alias]
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
ankitjaininfo / awesome-list.md
Last active Aug 29, 2015
Awesome List: List of all Curated Awesomes
View awesome-list.md

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.

awesome-awesomeness

A curated list of awesome awesomeness https://github.com/bayandin/awesome-awesomeness

frontend-dev-bookmarks

You can’t perform that action at this time.