Skip to content

Instantly share code, notes, and snippets.

@aidin36
aidin36 / rename-by-date.py
Last active July 18, 2020 14:16
Renames JPEG files to the date and time it's taken.
# This work is published under CC0 (https://creativecommons.org/publicdomain/zero/1.0/)
# To the extent possible under law, Aidin Gharibnavaz (http://www.aidinhut.com) has waived
# all copyright and related or neighboring rights to this work.
import sys
import os
try:
import exifread
except ImportError:
@aidin36
aidin36 / git-gc-all.sh
Created August 30, 2018 04:21
A script to garbage collect all git directories inside the corrent directory. i.e. clean up your workspace.
#!/bin/zsh
set -e
CURRENT_PATH=`pwd`
for p in `find . -name .git -print`; do cd $(dirname $p);git gc;cd $CURRENT_PATH; done
@aidin36
aidin36 / keybase.md
Created June 28, 2016 15:51
keybase.md

Keybase proof

I hereby claim:

  • I am aidin36 on github.
  • I am aidin36 (https://keybase.io/aidin36) on keybase.
  • I have a public key ASD9Ga5Wdo8KzSH9ao2-G3gXhVaBHVzvcrEJkjOUI56Y6Ao

To claim this, I am signing this object:

@aidin36
aidin36 / uncheck-google-trust.js
Created April 19, 2016 16:42
A Greasemonkey script to tell Google I don't want to trust every machine.
// ==UserScript==
// @name Uncheck Google's Stay Singin
// @description This will uncheck both `Stay Signin' on password page, and `Never ask on this computer again' on challange (Second Step Verification Code) page.
// @namespace com.aidinhut
// @include https://accounts.google.com/ServiceLogin*
// @include https://accounts.google.com/signin*
// @version 1
// @grant none
// ==/UserScript==
//