This file contains 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 | |
# Based on code by Stephan Sokolow | |
# MIT-licensed | |
# Source: https://gist.github.com/ssokolow/e7c9aae63fb7973e4d64cff969a78ae8 | |
"""python-xlib example which reacts to changing the active window/title. | |
Requires: | |
- Python | |
- python-xlib |
This file contains 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 | |
from __future__ import print_function | |
import datetime | |
import feedparser | |
import time | |
import os | |
import sys | |
from six.moves import urllib |
This file contains 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 | |
from __future__ import print_function | |
import collections | |
import fileinput | |
import sys | |
plop = collections.defaultdict(list) |
This file contains 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 | |
# pkg-config --variable=xcbincludedir xcb-proto | |
import six | |
import re | |
import sys | |
from collections import namedtuple | |
def err(*args): | |
sys.stderr.write(' '.join(str(a) for a in args) + '\n') |
This file contains 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 | |
# This takes in just the ligatures section of a .ttx file: | |
# USAGE: sed -n '/<LigatureSubst /,/<\/LigatureSubst>/p' FOO.ttx \ | |
# | ./ligature_xml_to_list.py | |
from __future__ import print_function | |
import lxml.etree | |
import sys |
This file contains 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
# Beware! This file is rewritten by htop when settings are changed in the interface. | |
# The parser is also very primitive, and not human-friendly. | |
fields=0 48 17 18 38 39 40 2 46 47 49 1 | |
sort_key=47 | |
sort_direction=1 | |
hide_threads=0 | |
hide_kernel_threads=0 | |
hide_userland_threads=0 | |
shadow_other_users=1 | |
show_thread_names=0 |
This file contains 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 | |
# Need at least an outfile and two images for this command to make sense. | |
if [ $# -lt 3 ] | |
then | |
echo USAGE: "$0" OUTFILE IMAGES... | |
echo Create simple slideshow video with blend effect between images. | |
echo | |
echo OUTFILE is video file to create, .mkv extension is recommended. | |
echo IMAGES is a sequence of images for the slideshow. |
This file contains 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
<?xml version="1.0" encoding="ISO-8859-1"?> | |
<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="2.4"> | |
<GlyphOrder> | |
<!-- The 'id' attribute is only for humans; it is ignored when parsed. --> | |
<GlyphID id="0" name=".notdef"/> | |
<GlyphID id="1" name=".null"/> | |
<GlyphID id="2" name="nonmarkingreturn"/> | |
<GlyphID id="3" name="space"/> | |
<GlyphID id="4" name="exclam"/> |
This file has been truncated, but you can view the full file.
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="2.5"> | |
<GlyphOrder> | |
<!-- The 'id' attribute is only for humans; it is ignored when parsed. --> | |
<GlyphID id="0" name=".notdef"/> | |
<GlyphID id="1" name=".null"/> | |
<GlyphID id="2" name="nonmarkingreturn"/> | |
<GlyphID id="3" name="space"/> | |
<GlyphID id="4" name="exclam"/> |
This file contains 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 | |
# $Id$ | |
# | |
# Limitations: if $ssh_auth_sock exists and an ssh-agent is running | |
# which doesn't use it, ssh-reclaim will be tricked into thinking | |
# that they correspond. This will happen if the computer shuts down | |
# uncleanly. | |
# | |
# Possible workarounds: | |
# * Check the command line of ssh-agent to see if we started it |