Skip to content

Instantly share code, notes, and snippets.

View manishrjain's full-sized avatar

Manish R Jain manishrjain

View GitHub Profile

Keybase proof

I hereby claim:

  • I am manishrjain on github.
  • I am mrjn (https://keybase.io/mrjn) on keybase.
  • I have a public key whose fingerprint is CE5D DE3B 26C3 4A49 F62A 83F8 70D7 FC95 CD6E ACA4

To claim this, I am signing this object:

@manishrjain
manishrjain / setExif.sh
Last active September 15, 2015 06:59
Script to set DateTimeOriginal exif recursively
# This script would set all pics to the same date, but ensures
# that each pic has a different hour and minute. This is useful
# to ensure locality of files when librarian/organize generates
# file names from their exif datetime.
let h=8
let m=0
find . -type f -name "*.JPG" | while read -r path
do
let m+=1
if [ $m -ge 60 ]; then
@manishrjain
manishrjain / sync.sh
Last active January 26, 2022 00:39
rsync two local folders
# rsync src folder to dest folder
# -r = recursive
# -t = preserves times
# -v = verbose
# -u = Instead of blind copy, check if file already exists, and update it
# -c = Skip files based on checksum, not mod-time & size (expensive)
# -a = Archive mode, preserves symbolic links (useful).
# -h = human mode
# --progress to show progress and ETA.
#
@manishrjain
manishrjain / ynabit.py
Created September 21, 2015 06:08
Python code to convert Chase Transactions to YNAB CSV format
#!/usr/bin/python
import sys
f = open(sys.argv[1])
print "Date,Payee,Category,Memo,Outflow,Inflow"
for l in f.readlines():
a = l.strip().split(',')
p = 0
try:
@manishrjain
manishrjain / gpg.md
Last active January 26, 2016 21:57
GPG on Linux

To search for keys in keyserver

gpg --search-keys 'email@id.com'

To list keys

gpg --list-keys

Export secret key

gpg --export-secret-keys KEYID --armor

To import private key

To make the first character of an object uppercase.

:%s/l\.\(\w\)/l\.\U\1/gc

@manishrjain
manishrjain / icla.md
Last active March 11, 2022 18:33
ICLA for Outcaste

Outcaste

Individual Contributor License Agreement ("Agreement")

Thank you for your interest in the "Project", owned and run by Outcaste LLC ("Outcaste"). In order to clarify the intellectual property license granted with Contributions from any person or entity, Outcaste must have a Contributor License Agreement ("CLA") on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as

@manishrjain
manishrjain / arch-linux-install-on-Thinkpad-T460
Last active May 19, 2021 13:55 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# This assumes a wifi only system...
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
#!/usr/bin/env bash
set -e
BLACK='\033[30;1m'
RED='\033[91;1m'
GREEN='\033[32;1m'
CYAN='\033[36;1m'
RESET='\033[0m'