Skip to content

Instantly share code, notes, and snippets.

View 166MMX's full-sized avatar

Johannes Harth 166MMX

View GitHub Profile
#!/usr/bin/python
#
# git-slim
#
# Remove big files from git repo history.
#
# Requires GitPython (https://github.com/gitpython-developers/GitPython)
#
# References:
# - http://help.github.com/remove-sensitive-data/

Creating a TimerTask can not get easier than this thanks to groovy.

  • import java.util.timer.* is not required as java.util is already imported.
  • the run() is implemented as closure

To Run this:

groovy https://gist.github.com/kdabir/3176945/raw/timer_example.groovy

@166MMX
166MMX / crossGrease.user.js
Last active October 11, 2015 10:27 — forked from sanemat/script.js
Script to load required external scripts before execution of user code - Cross browser compatible
// ==UserScript==
// @name CrossGrease
// @namespace https://gist.github.com/166MMX/
// @description Script to load required external scripts before execution of user code - Cross browser compatible
// @downloadURL https://gist.github.com/166MMX/3845101/raw
// @updateURL https://gist.github.com/166MMX/3845101/raw
// @version 1.3
// ==/UserScript==
var crossGrease = function () {