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
# Makefile for unxwb from http://aluigi.altervista.org/papers.htm | |
# NOTE: You must have the zlib development headers installed | |
# | |
# Instructions: | |
# - `make` or `make build` to build a native binary. | |
# - `make multiarch` to build 64-bit and 32-bit binaries on a 64-bit system | |
# - `make dist` to produce an optimized zip file from "make multiarch" | |
# (Also requires `advzip` from AdvanceCOMP installed) | |
CC = gcc |
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
# Add this to your USER (not root) crontab for daily update checks | |
0 6 * * * DISPLAY=:0 ~/bin/update_check.sh |
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/expect -- | |
spawn task "( recur.is:1d or recur.is:daily )" due.before:now status:pending delete | |
for {} 1 {} { | |
expect { | |
"Permanently delete task" { send "y\n"} | |
"This is a recurring task. Do you want to delete all pending recurrences of this same task? (yes/no)" { send "n\n"} | |
eof { exit } | |
} | |
} |
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 python2 | |
# -*- coding: utf-8 -*- | |
"""Simple, efficient low battery monitor | |
By: Stephan Sokolow (deitarion/SSokolow) | |
Written for Guest2587 @ FreeNode | |
Released under the MIT license | |
Dependencies: | |
- python-gi |
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 python2 | |
# To use: Place in same folder as collection.json and run in terminal | |
import json | |
SAFE_STORES = ['GOG', 'Humble Store', 'IndieGameStand', 'ShinyLoot'] | |
data = json.load(file('collection.json')) | |
desura_only, desura_other = [], [] | |
for row in data.values(): | |
stores = [x['shop'] for x in row['details']] |
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
# Bash alias to open Github page for project in current working directory. | |
# Will use the current active branch if it exists remotely, or falls back to master. | |
alias github='br=$(git branch --contains HEAD | sed -rn "s/^\* //p"); if ! git ls-remote . | grep -q -e "refs/remotes/.*/${br}"; then br="master"; fi; xdg-open $(git config -l | sed -rn "s%remote.origin.url=git(@|://)(github.com)(:|/)(.+/.+).git%https://\2/\4/tree/${br}%p")' |
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 | |
# A simple little script which prompts you to click a window and then disables | |
# the screensaver until it goes away. | |
WID=`xwininfo -int | awk '/Window id/ {print $4}'` | |
xdg-screensaver suspend "$WID" |
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
getSelectionHTML = -> | |
# Everyone but IE supports DOM selections | |
if window.getSelection | |
sel = window.getSelection() | |
# IE Selections (Must come last to avoid messing with Opera) | |
else if document.selection | |
return document.selection.createRange().htmlText | |
# Fail safely | |
else | |
return "" |
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
[server] | |
Driver=CFontzPacket | |
## CrystalFontz packet driver (for CF631, CF633 & CF635) ## | |
[CFontzPacket] | |
# Select the LCD model [default: 633; legal: 631, 633, 635] | |
Model=631 | |
# Select the output device to use [default: /dev/lcd] | |
Device=/dev/ttyUSB0 |
OlderNewer