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
| ;; Copyright 2023 Jonathan Kamens <jik@kamens.us>. | |
| ;; | |
| ;; This program is free software: you can redistribute it and/or modify it | |
| ;; under the terms of the GNU General Public License as published by the Free | |
| ;; Software Foundation, either version 3 of the License, or (at your option) | |
| ;; any later version. See <https://www.gnu.org/licenses/>. | |
| ;; | |
| ;; This program is distributed in the hope that it will be useful, but WITHOUT | |
| ;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
| ;; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
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 | |
| # Copyright (c) 2023, Jonathan Kamens <jik@kamens.us> | |
| # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | |
| # SPDX-License-Identifier: GPL-3.0-or-later | |
| # pylint: disable=missing-module-docstring | |
| from __future__ import (absolute_import, division, print_function) | |
| __metaclass__ = type |
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 | |
| """ | |
| namecheap-dns.py - Export/import DNS records from/to Namecheap | |
| This script can export DNS records from a domain in Namecheap to a YAML file or | |
| import records from a YAML file in the same format into Namecheap. I use this | |
| script to maintain my Namecheap DNS records in a source repository with change | |
| history, i.e., "configuration as code" for my Namecheap DNS records. |
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 | |
| '''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. |
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 | |
| # 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 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
| // 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 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 perl | |
| =pod | |
| =head1 SUMMARY | |
| auto-dnsbl.py - add DNSBL entries to iptables automatically | |
| =head1 DESCRIPTION |
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 -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 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 -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 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 -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 |