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
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
// ==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
#!/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
#!/usr/bin/env python | |
import os | |
import re | |
import signal | |
import subprocess | |
import sys | |
from PyQt4.QtCore import * | |
from PyQt4.QtGui import * |
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 | |
usage() { | |
cat <<EOF | |
USAGE: $(basename $0) <action> | |
Setup symlinks on an Ubuntu installation to work on Ubiquity |
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
// Build with: g++ benchqlist.cpp -o benchqlist -I/usr/include/qt4 -Wall -lQtCore -lstdc++ -O2 | |
#include <QtCore/QList> | |
#include <QtCore/QElapsedTimer> | |
#include <QtCore/QDebug> | |
#if 1 | |
#define ELEMENT int | |
#define ELEMENT_VALUE 12 | |
#else |
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 | |
# encoding: utf-8 | |
import re | |
import os | |
import sys | |
import argparse | |
DESCRIPTION = """\ | |
Try to figure out a filename and line number from the command line arguments | |
and start vi on it. This is handy to quickly edit a faulty line by copy and |
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 | |
# encoding: utf-8 | |
import json | |
import os | |
import subprocess | |
import sys | |
import urllib2 | |
from optparse import OptionParser |