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 | |
set -e | |
REVIEWBOARD_URL="https://git.reviewboard.kde.org" | |
err() { | |
echo "$*" 1>&2 | |
} | |
usage() { |
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 ReviewBoard - easy-to-copy review id | |
// @namespace http://agateau.com/ | |
// @description Insert the review id in a readonly input field next to the star image, making it easier to copy | |
// @include https://*/r/* | |
// @grant none | |
// @version 1 | |
// ==/UserScript== | |
var elements = document.getElementsByClassName("star"); |
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
import os | |
import logging | |
import shutil | |
from pelican import signals | |
from pelican.generators import Generator | |
from pelican.utils import mkdir_p | |
logger = logging.getLogger(__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
#!/bin/bash | |
set -e | |
PROGNAME=$(basename $0) | |
die() { | |
echo "$PROGNAME: $*" >&2 | |
exit 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
#!/usr/bin/python | |
""" | |
Saves all visible layers of an image as individual png files in the same | |
folder as the image, using <layer-name>.png for the name. | |
To use it: | |
- Save this file in ~/.gimp-$version/plug-ins/ | |
- Restart GIMP | |
- Open the Image menu, select "Save Layers" |
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 | |
set -e | |
can_be_removed="" | |
keep="" | |
for x in * ; do | |
if [ ! -f "$x" ] ; then | |
continue | |
fi | |
if lsof "$x" > /dev/null ; then |
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 | |
set -e | |
# A tool to "bisect" Node modules, useful to find out which module is causing | |
# failures. | |
# | |
# Given a `node_modules` list known to work and one which is known to be broken, | |
# do the following: | |
# | |
# mkdir /tmp/base_dir |
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 python3 | |
import argparse | |
import os | |
import sys | |
from itertools import permutations | |
import hunspell | |