Skip to content

Instantly share code, notes, and snippets.

@aidin36
aidin36 / uncheck-google-trust.js
Created Apr 19, 2016
A Greasemonkey script to tell Google I don't want to trust every machine.
View uncheck-google-trust.js
// ==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==
//
View 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 / git-gc-all.sh
Created Aug 30, 2018
A script to garbage collect all git directories inside the corrent directory. i.e. clean up your workspace.
View git-gc-all.sh
#!/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 / rename-by-date.py
Last active Jul 18, 2020
Renames JPEG files to the date and time it's taken.
View rename-by-date.py
# 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: