This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Pipermail color! | |
// @namespace http://chivil.com/ | |
// @version 0.1 | |
// @description Colorize quoted text in pipermail | |
// @author Romuald Brunet | |
// @match http://*/pipermail/*.html | |
// @match https://*/pipermail/*.html | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static BitmapLayer *s_graph_layer; | |
static GBitmap *s_cache_bitmap; | |
static void init_bitmap(Window *window) { | |
Layer *window_layer = window_get_root_layer(window); | |
GRect bounds = layer_get_bounds(window_layer); | |
s_graph_layer = bitmap_layer_create(bounds); | |
s_cache_bitmap = gbitmap_create_blank(bounds.size, GBitmapFormat8Bit); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Readable Docker docs | |
// @namespace http://your.homepage/ | |
// @version 0.1 | |
// @description Readable docs, use more than 50% screen size | |
// @author You | |
// @match http://docs.docker.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name No Wikipedia fundraiser | |
// @namespace http://chivil.com/ | |
// @version 0.1 | |
// @description Should hide Wikipedia "small" banner on each page | |
// @author Romuald Brunet | |
// @match https://*.wikipedia.org/* | |
// @grant none | |
// @run-at document-end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Converts large bytes into a more readable form. | |
Example:: | |
% python mo.py 769736704 | |
734.08 Mio - 751696.00 Kio | |
""" | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Deezer equalizer stop | |
// @description Stop Deezer player equalizer from animating, saving CPU time in the process. Very useful to save battery | |
// @namespace http://chivil.com/ | |
// @grant none | |
// @match https://*.deezer.com/ | |
// @match http://*.deezer.com/ | |
// @include http://*.deezer.com/ | |
// @include https://*.deezer.com/ | |
// @version 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Drop DNS queries for specific domain names only | |
for DOMAIN in $@; do | |
HEX=$(perl -e 'print map {chr(length($_)).$_} split /\./, "'$DOMAIN'"' | xxd -p) | |
iptables -A OUTPUT -p udp --dport 53 \ | |
-m string --hex-string "|$HEX|" --algo bm -j DROP | |
# Alternatively, drop responses only | |
# Note that this is NOT correct and will drop any response *containing* this name, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf8 -*- | |
""" | |
A simple monkeypath for the pstats module to be able to see sub-millisecond timings | |
If display value is 0.000, display the time in microseconds | |
""" | |
import pstats | |
def f8(x): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Trello horizontal wheel scroll | |
// @namespace http://chivil.com/ | |
// @downloadUrl https://gist.github.com/romuald/57c28352911313524f10/raw | |
// @version 0.9 | |
// @description Scroll horizontally when using mouse wheel | |
// @author Romuald Brunet | |
// @match https://trello.com/b/* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pong.py | |
import sys | |
from time import time, sleep | |
while True: | |
print time() | |
sys.stdout.flush() | |
sleep(1) | |