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/bash -e | |
# This script reads a dpkg.log fragment, identifies all of the | |
# packages upgraded in it, finds and downloads the pre-upgrade | |
# versions of those packages from Launchpad, and installs them, | |
# downgrading the system to approximately the state it was in before | |
# the packages were upgraded. | |
# | |
# To use it, copy the section of /var/log/dpkg.log containing the | |
# upgrade you want to undo into a new file, remove the lines |
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/bash -e | |
# Pick the first updatable package that isn't held, and list what was | |
# updated. | |
trap "rm /tmp/*.$$" EXIT | |
cp /var/log/dpkg.log /tmp/dpkg.log.$$ | |
apt-mark showhold | awk -F: '{print $1}' |sort -u > /tmp/held.$$ | |
apt list --upgradable 2>/dev/null | awk -F/ 'NR>1 {print $1}' | sort -u > \ |
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 perl | |
# Memorable, typeable password generator. See https://blog.kamens.us/?p=5969. | |
# | |
# By Jonathan Kamens <jik@kamens.us>. | |
# | |
# This script is in the public domain. You are welcome to do whatever you want | |
# with it, though it would be nice if you'd give me credit somehow or at least | |
# send me email and let me know how you're using it. | |
# |
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/bash -e | |
# You will probably need to adjust this script if you aren't using | |
# the generic kernel. | |
to_hold= | |
pd=/tmp/packages.$$ | |
mkdir $pd | |
# Get good Mesa packages |
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/bash -e | |
# You will probably need to adjust this script if you aren't using | |
# the generic kernel. | |
to_install= | |
to_hold= | |
pd=/tmp/packages.$$ | |
mkdir $pd |
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/bash -e | |
TF=/fillmein/deposit_notification.$$ | |
trap "rm -f $TF" EXIT | |
echo "Content-type: message/rfc822" | |
echo | |
if /fillmein/eastern-deposit-notification.py >| $TF; then | |
cat $TF |
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 perl | |
=pod | |
=head1 SUMMARY | |
auto-dnsbl.py - add DNSBL entries to iptables automatically | |
=head1 DESCRIPTION |
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
// https://bugzilla.mozilla.org/show_bug.cgi?id=128072#c32 | |
// Credit: Alexander Bergmann | |
"use strict;" | |
// Toggle Replied and Forwarded | |
if (location == "chrome://messenger/content/messenger.xhtml") { | |
let toggleRepliedAndForward = { | |
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 | |
# This script filters a list of URLs to determine which of them should be | |
# submitted to the Internet Archive's Wayback Machine for archiving because | |
# they are valid URLs and/or they aren't already archived in the Wayback | |
# Machine. | |
# | |
# To check for and filter out URLs which are invalid, specify --check on the | |
# command line. To filter out URLs that are already archived in the Wayback | |
# Machine, specify --check-archive on the command line. You must specify either |
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 | |
'''toodledo-agenda.py - Prepare your daily agenda in Toodledo | |
Toodldeo doesn't _quite_ do the right thing, at least for me, whether I sort by | |
date and then priority, or by priority and then date. | |
* If I sort by date first, then top-priority items that aren't due by a | |
specific date get pushed all the way to the bottom of my to-do list and I | |
never see them. |