steve-scripts.git
4 weeks agoImprove output, and send warning mail IN CAPS if needed master
Steve McIntyre [Wed, 16 Sep 2020 12:14:32 +0000 (13:14 +0100)]
Improve output, and send warning mail IN CAPS if needed

4 weeks agoAdd a new script for checking for broken flac files
Steve McIntyre [Wed, 16 Sep 2020 12:02:27 +0000 (13:02 +0100)]
Add a new script for checking for broken flac files

4 weeks agoTreat /mnt as removable too
Steve McIntyre [Wed, 16 Sep 2020 12:02:11 +0000 (13:02 +0100)]
Treat /mnt as removable too

6 weeks agoMake netconsole script more generic
Steve McIntyre [Tue, 8 Sep 2020 11:11:50 +0000 (12:11 +0100)]
Make netconsole script more generic

6 weeks agoTweak VPN monitor colours etc.
Steve McIntyre [Tue, 8 Sep 2020 11:09:40 +0000 (12:09 +0100)]
Tweak VPN monitor colours etc.

6 weeks agoTweak check_burn to be more helpful on files
Steve McIntyre [Mon, 7 Sep 2020 08:43:52 +0000 (09:43 +0100)]
Tweak check_burn to be more helpful on files

6 weeks agoAdd simple copyright header on the jigsnap-update script
Steve McIntyre [Sun, 6 Sep 2020 16:10:14 +0000 (17:10 +0100)]
Add simple copyright header on the jigsnap-update script

6 weeks agoMore updates
Steve McIntyre [Fri, 4 Sep 2020 17:04:47 +0000 (18:04 +0100)]
More updates

Deal with more and more awkward cases

6 weeks agoClose the ignore list after parsing
Steve McIntyre [Wed, 2 Sep 2020 13:25:43 +0000 (14:25 +0100)]
Close the ignore list after parsing

6 weeks agoRefactor to not need File::chdir
Steve McIntyre [Wed, 2 Sep 2020 13:03:04 +0000 (14:03 +0100)]
Refactor to not need File::chdir

6 weeks agoTweaks for make-snapshot
Steve McIntyre [Tue, 1 Sep 2020 22:09:05 +0000 (23:09 +0100)]
Tweaks for make-snapshot

6 weeks agoAdd script to pull missing files from snapshot.d.o
Steve McIntyre [Tue, 1 Sep 2020 22:08:23 +0000 (23:08 +0100)]
Add script to pull missing files from snapshot.d.o

2 months agoCosmetic tweaks to snapshot scripts
Steve McIntyre [Fri, 7 Aug 2020 10:25:46 +0000 (11:25 +0100)]
Cosmetic tweaks to snapshot scripts

2 months agoUpdate and mich faster jigdo snapshot code
Steve McIntyre [Thu, 6 Aug 2020 20:01:22 +0000 (21:01 +0100)]
Update and mich faster jigdo snapshot code

Cache sorted lists of jigdo contents for performance, and update them
when we get newer jigdo files in the same version ranges.

Don't attempt to build a complete list of all files, instead parse a
directory at a time.

2 months agoWrapper script for maintaining jigdo snapshot on jack
Steve McIntyre [Thu, 6 Aug 2020 20:00:23 +0000 (21:00 +0100)]
Wrapper script for maintaining jigdo snapshot on jack

3 months agoAdd netconsole wrapper script
Steve McIntyre [Mon, 20 Jul 2020 09:43:16 +0000 (10:43 +0100)]
Add netconsole wrapper script

3 months agoUse our HOSTNAME variable
Steve McIntyre [Fri, 26 Jun 2020 18:08:53 +0000 (19:08 +0100)]
Use our HOSTNAME variable

3 months agoIgnore editor backups
Steve McIntyre [Thu, 25 Jun 2020 17:09:29 +0000 (18:09 +0100)]
Ignore editor backups

3 months agoOnly attempt to start things if we have an ssh key in the keyring
Steve McIntyre [Thu, 25 Jun 2020 17:05:42 +0000 (18:05 +0100)]
Only attempt to start things if we have an ssh key in the keyring

Otherwise this gets very annoying!
Also add logging to stdout (i.e. to .xsession-errors normally)

4 months agoIgnore an album if we find an ignore file
Steve McIntyre [Thu, 18 Jun 2020 09:40:42 +0000 (10:40 +0100)]
Ignore an album if we find an ignore file

4 months agoRemove bashism
Steve McIntyre [Mon, 15 Jun 2020 12:53:08 +0000 (13:53 +0100)]
Remove bashism

Don't need "function" to declare a function in sh

4 months agoStop warnings from sigrot if ~/.sigrot doesn't exist
Steve McIntyre [Fri, 12 Jun 2020 15:37:51 +0000 (16:37 +0100)]
Stop warnings from sigrot if ~/.sigrot doesn't exist

4 months agoAdd simple cron script to check the VPN and restart if needed
Steve McIntyre [Wed, 10 Jun 2020 10:50:30 +0000 (11:50 +0100)]
Add simple cron script to check the VPN and restart if needed

It seems to fail overnight, leading to problems with DNS. Check for
DNS and restart if things have stopped working.

4 months agoPerl script to grab files from snapshot.d.o
Steve McIntyre [Mon, 8 Jun 2020 23:18:52 +0000 (00:18 +0100)]
Perl script to grab files from snapshot.d.o

Actually very similar to debsnap, but I've written it now so I'll
publish!

4 months agoTweak positioning for vpn-monitor
Steve McIntyre [Fri, 5 Jun 2020 16:59:12 +0000 (17:59 +0100)]
Tweak positioning for vpn-monitor

4 months agoTweak output for VPN
Steve McIntyre [Fri, 5 Jun 2020 15:03:35 +0000 (16:03 +0100)]
Tweak output for VPN

4 months agoUpdate the mailsync links
Steve McIntyre [Fri, 5 Jun 2020 14:48:17 +0000 (15:48 +0100)]
Update the mailsync links

4 months agoAdd support for recognising the cheddar VPN too
Steve McIntyre [Fri, 5 Jun 2020 14:40:43 +0000 (15:40 +0100)]
Add support for recognising the cheddar VPN too

4 months agoAdd a VPN monitor, based very closely on the irssi-monitor code
Steve McIntyre [Fri, 5 Jun 2020 14:31:24 +0000 (15:31 +0100)]
Add a VPN monitor, based very closely on the irssi-monitor code

4 months agoMake directories as needed
Steve McIntyre [Tue, 2 Jun 2020 10:23:39 +0000 (11:23 +0100)]
Make directories as needed

4 months agoSwitch to using unset.einval.com as a trigger for broken expansion
Steve McIntyre [Tue, 2 Jun 2020 09:46:19 +0000 (10:46 +0100)]
Switch to using unset.einval.com as a trigger for broken expansion

Also updated in central .muttrc

5 months agoAdd simple script to extra and publish gpg wkd data
Steve McIntyre [Wed, 6 May 2020 17:48:34 +0000 (18:48 +0100)]
Add simple script to extra and publish gpg wkd data

5 months agoUse sort -u to deal with multiple identical entries
Steve McIntyre [Wed, 29 Apr 2020 14:04:44 +0000 (15:04 +0100)]
Use sort -u to deal with multiple identical entries

5 months agoWhitespace fix
Steve McIntyre [Wed, 29 Apr 2020 14:04:32 +0000 (15:04 +0100)]
Whitespace fix

5 months agoAdd support for detecting CD-R media and writing to that
Steve McIntyre [Mon, 27 Apr 2020 13:51:43 +0000 (14:51 +0100)]
Add support for detecting CD-R media and writing to that

6 months agoScript to generate openvpn client configs for use on cheddar
Steve McIntyre [Sun, 19 Apr 2020 17:56:02 +0000 (18:56 +0100)]
Script to generate openvpn client configs for use on cheddar

6 months agoCheck for a README in the right directory
Steve McIntyre [Fri, 17 Apr 2020 14:23:10 +0000 (15:23 +0100)]
Check for a README in the right directory

6 months agoTypo fix
Steve McIntyre [Thu, 16 Apr 2020 23:19:59 +0000 (00:19 +0100)]
Typo fix

6 months agoAdd stats for total time, total mbytes and speed
Steve McIntyre [Thu, 16 Apr 2020 22:13:05 +0000 (23:13 +0100)]
Add stats for total time, total mbytes and speed

6 months agoAdd option to control the patterns wanted
Steve McIntyre [Thu, 16 Apr 2020 17:25:44 +0000 (18:25 +0100)]
Add option to control the patterns wanted

Use "-wj <glob>" to specify the images desired

6 months agoAdd debug
Steve McIntyre [Thu, 16 Apr 2020 17:13:36 +0000 (18:13 +0100)]
Add debug

6 months agoUpdate the README files too, using mkREADME
Steve McIntyre [Thu, 16 Apr 2020 17:11:50 +0000 (18:11 +0100)]
Update the README files too, using mkREADME

6 months agoRemove debug
Steve McIntyre [Thu, 16 Apr 2020 17:11:37 +0000 (18:11 +0100)]
Remove debug

6 months agoAdd support for an output filename using -o
Steve McIntyre [Thu, 16 Apr 2020 17:06:33 +0000 (18:06 +0100)]
Add support for an output filename using -o

6 months agoPut ISO output into versioned directories
Steve McIntyre [Thu, 16 Apr 2020 16:47:37 +0000 (17:47 +0100)]
Put ISO output into versioned directories

Makes things easier to manage

6 months agoFix typo
Steve McIntyre [Thu, 16 Apr 2020 16:46:53 +0000 (17:46 +0100)]
Fix typo

6 months agoAdd dry-run support with -n option
Steve McIntyre [Thu, 16 Apr 2020 16:34:52 +0000 (17:34 +0100)]
Add dry-run support with -n option

Just print what would happen, don't generate images

6 months agoIgnore -edu images by default too
Steve McIntyre [Thu, 16 Apr 2020 16:32:59 +0000 (17:32 +0100)]
Ignore -edu images by default too

6 months agoBetter copyright dates
Steve McIntyre [Thu, 16 Apr 2020 16:32:37 +0000 (17:32 +0100)]
Better copyright dates

6 months agoLook for a README file in the same dir as the ISO image
Steve McIntyre [Mon, 6 Apr 2020 12:50:50 +0000 (13:50 +0100)]
Look for a README file in the same dir as the ISO image

6 months agoSimple script to help manage input device config
Steve McIntyre [Sat, 28 Mar 2020 15:43:25 +0000 (15:43 +0000)]
Simple script to help manage input device config

6 months agoAdd a --list option to simply list configured ports
Steve McIntyre [Sat, 28 Mar 2020 15:42:40 +0000 (15:42 +0000)]
Add a --list option to simply list configured ports

To support easy use in bash tab-completion

7 months agoAllow for configuration of the cycle delay time
Steve McIntyre [Tue, 10 Mar 2020 17:04:39 +0000 (17:04 +0000)]
Allow for configuration of the cycle delay time

In both the config file and on the command line

Also pull out the magic protective delay time into a variable

7 months agoBug fix: if we're doing a cycle, don't assume status too
Steve McIntyre [Tue, 10 Mar 2020 17:03:49 +0000 (17:03 +0000)]
Bug fix: if we're doing a cycle, don't assume status too

7 months agoDon't force reads of all variables on open
Steve McIntyre [Tue, 10 Mar 2020 17:02:36 +0000 (17:02 +0000)]
Don't force reads of all variables on open

7 months agoAdd copyright boilerplate
Steve McIntyre [Mon, 24 Feb 2020 01:53:47 +0000 (01:53 +0000)]
Add copyright boilerplate

7 months agoWrite new file to $outfile.new and rename when finished
Steve McIntyre [Sun, 23 Feb 2020 00:47:30 +0000 (00:47 +0000)]
Write new file to $outfile.new and rename when finished

Don't overwrite in place, in case somebody is downloading while we're
generating a file.

7 months agoOnly stat the input files if we know they exist
Steve McIntyre [Sat, 22 Feb 2020 23:26:59 +0000 (23:26 +0000)]
Only stat the input files if we know they exist

7 months agoFurther improvements for production use of extract_template.pl
Steve McIntyre [Sat, 22 Feb 2020 23:23:45 +0000 (23:23 +0000)]
Further improvements for production use of extract_template.pl

Add -o <output file> rather than relying on stdout redirection
When using this mode and just specifying input arch etc., don't do any
work unless we have to. If the output file exists and is newer than
all the input files we'd look at, bail out.

7 months agoMajor updates to extract_template.pl
Steve McIntyre [Sat, 22 Feb 2020 22:10:06 +0000 (22:10 +0000)]
Major updates to extract_template.pl

Let it deal with finding .deb filenames directly by parsing Packages
files.
Add command line handling to tell it which suite, component and arch
to use.
Add verbose options to log what it's doing.

7 months agoMuch better (and faster!) template dump tool
Steve McIntyre [Sat, 22 Feb 2020 03:05:41 +0000 (03:05 +0000)]
Much better (and faster!) template dump tool

Rewrite in perl, and pick up on lots of bugs!
Deal with a bunch of weird (maybe invalid?!?) formatting in the
template files in the archive.
Maybe ready for publishing, will just need to add Packages file
handling at the top level I think.

7 months agoInitial shell implementation of extract_template
Steve McIntyre [Sat, 22 Feb 2020 03:04:29 +0000 (03:04 +0000)]
Initial shell implementation of extract_template

Extracts a template from a deb/udeb file and dumps it to stdout. Not
very fast, but seems to work

7 months agoAdd more local scripts
Steve McIntyre [Sat, 22 Feb 2020 00:00:21 +0000 (00:00 +0000)]
Add more local scripts

8 months agoRewrite a lump of the git-dotfiles script to work with gitosis
Steve McIntyre [Wed, 19 Feb 2020 05:05:59 +0000 (05:05 +0000)]
Rewrite a lump of the git-dotfiles script to work with gitosis

and other changes

8 months agoRemove sig trailer
Steve McIntyre [Wed, 19 Feb 2020 03:48:41 +0000 (03:48 +0000)]
Remove sig trailer

8 months agoAdd boilerplate
Steve McIntyre [Wed, 19 Feb 2020 03:45:07 +0000 (03:45 +0000)]
Add boilerplate

8 months agoImport Tollef's git-dotfiles script as-is
Steve McIntyre [Wed, 19 Feb 2020 03:43:36 +0000 (03:43 +0000)]
Import Tollef's git-dotfiles script as-is

Before making any changes

8 months agoStop debmirror complaining about lack of the trace dir
Steve McIntyre [Wed, 19 Feb 2020 03:43:01 +0000 (03:43 +0000)]
Stop debmirror complaining about lack of the trace dir

8 months agoMake the debian-mirror script use the local keyring
Steve McIntyre [Wed, 19 Feb 2020 03:42:37 +0000 (03:42 +0000)]
Make the debian-mirror script use the local keyring

8 months agoAdd comments
Steve McIntyre [Sat, 15 Feb 2020 03:19:21 +0000 (03:19 +0000)]
Add comments

8 months agoAdd boilerplate
Steve McIntyre [Sat, 15 Feb 2020 03:16:21 +0000 (03:16 +0000)]
Add boilerplate

8 months agoRe-implement jigdo_images in perl
Steve McIntyre [Sat, 15 Feb 2020 03:12:21 +0000 (03:12 +0000)]
Re-implement jigdo_images in perl

Massively better handling of parallelism - use -j NUM on the command
line to specify how many parallel things should be run

Remove now-obsolete helper script make_jigdo

8 months agoDon't list the mac images specially
Steve McIntyre [Fri, 14 Feb 2020 14:26:54 +0000 (14:26 +0000)]
Don't list the mac images specially

They end up being listed twice

8 months agoStop using backticks!
Steve McIntyre [Fri, 14 Feb 2020 14:26:31 +0000 (14:26 +0000)]
Stop using backticks!

8 months agoSplut up the jigdo_images code to allow things to run in parallel
Steve McIntyre [Fri, 14 Feb 2020 14:22:45 +0000 (14:22 +0000)]
Splut up the jigdo_images code to allow things to run in parallel

Split core iso generation to a separate script so it can be run in
parallel
Factor out the output directory to make it easier to re-use

8 months agoSimple script to turn lore.kernel.org threads into local mails
Steve McIntyre [Tue, 21 Jan 2020 15:18:28 +0000 (15:18 +0000)]
Simple script to turn lore. threads into local mails

Much easier to handle and respond to things this way

9 months agoCosmetic tweak: lose dd output messages
Steve McIntyre [Sat, 18 Jan 2020 10:24:36 +0000 (10:24 +0000)]
Cosmetic tweak: lose dd output messages

9 months agoUse basename to lose directory info
Steve McIntyre [Fri, 17 Jan 2020 19:02:26 +0000 (19:02 +0000)]
Use basename to lose directory info

Don't need this for our purposes

9 months agoCatch multiple matches better
Steve McIntyre [Fri, 17 Jan 2020 17:24:17 +0000 (17:24 +0000)]
Catch multiple matches better

9 months agoAdd support for ignoring files when cueing a new album
Steve McIntyre [Mon, 6 Jan 2020 15:32:17 +0000 (15:32 +0000)]
Add support for ignoring files when cueing a new album

Add a .ignore to block a file from being added to the playlist. Also
improve command line stuff in general.

10 months agoMake jigdo_images more clever
Steve McIntyre [Wed, 18 Dec 2019 18:23:20 +0000 (18:23 +0000)]
Make jigdo_images more clever

Check sizes of images too - don't assume a file is correct just
because it exists. No comparing checksums for now, too expensive.
Generate files as .iso.new, then rename into place. Less chance of
confusion this way!
Check the return code from jigit-mkimage, don't put things into place
if it reported an error.

10 months agoFold in sync_web from jack too
Steve McIntyre [Wed, 11 Dec 2019 16:51:43 +0000 (16:51 +0000)]
Fold in sync_web from jack too

10 months agoImport more scripts
Steve McIntyre [Wed, 11 Dec 2019 16:47:10 +0000 (16:47 +0000)]
Import more scripts

10 months agoTrivial wrapper for firefox extension textern to use
Steve McIntyre [Wed, 11 Dec 2019 15:43:40 +0000 (15:43 +0000)]
Trivial wrapper for firefox extension textern to use

10 months agoSupport generating the data from jigdo files too
Steve McIntyre [Wed, 11 Dec 2019 15:41:56 +0000 (15:41 +0000)]
Support generating the data from jigdo files too

Much faster than checksumming the ISO every time!

10 months agoAdd pgp-signing wrapper script
Steve McIntyre [Mon, 2 Dec 2019 18:39:43 +0000 (18:39 +0000)]
Add pgp-signing wrapper script

Just added new support for extracting/signing/recreating a tarball

10 months agoAdd burn_dvd wrapper script
Steve McIntyre [Fri, 29 Nov 2019 18:34:14 +0000 (18:34 +0000)]
Add burn_dvd wrapper script

Like check_burn, do automatic loading and waiting on the drive

10 months agoAdd automatic load_load and wait_drive_ready stuff
Steve McIntyre [Fri, 29 Nov 2019 18:25:34 +0000 (18:25 +0000)]
Add automatic load_load and wait_drive_ready stuff

Save on waiting for the drive manually, etc.

12 months agoAdd trivial mkREADME script
Steve McIntyre [Fri, 18 Oct 2019 18:15:14 +0000 (19:15 +0100)]
Add trivial mkREADME script

12 months agoAdd simple sig rotation script
Steve McIntyre [Mon, 14 Oct 2019 17:06:53 +0000 (18:06 +0100)]
Add simple sig rotation script

12 months agoSet the title of the irssi popup warning window
Steve McIntyre [Mon, 14 Oct 2019 16:58:19 +0000 (17:58 +0100)]
Set the title of the irssi popup warning window

12 months agoUpdate sig expansions
Steve McIntyre [Mon, 14 Oct 2019 16:29:39 +0000 (17:29 +0100)]
Update sig expansions

Update #wiki - add wiki@ too

Add #ah and #community aliases

12 months agoMultiple updates
Steve McIntyre [Mon, 3 Jun 2019 12:03:19 +0000 (13:03 +0100)]
Multiple updates

 * Don't assume the internal display is "LVDS" - it's not on the T470

 * Rename various variables to switch from "lvds" to "internal"

 * Find the internal display by grabbing the first connected name from
   xrandr

 * Instead of attempting to mirror the displays, by default drive the
   internal display at native res, then add the "best" (highest res)
   external display at preferred resolution as an extra screen to the
   "right" of the internal display. Keep the internal display as
   primary, to keep all the fvwm window decorations. Now works with
   the libreoffice presenter console \o/

 * Cosmetic tweaks to diagnostic output

12 months agoDon't rely on path for things
Steve McIntyre [Mon, 3 Jun 2019 12:02:30 +0000 (13:02 +0100)]
Don't rely on path for things

12 months agoWork better with USB media
Steve McIntyre [Mon, 3 Jun 2019 12:02:11 +0000 (13:02 +0100)]
Work better with USB media

18 months agoAdd --cycle option to power off then power on
Steve McIntyre [Thu, 28 Mar 2019 18:19:36 +0000 (18:19 +0000)]
Add --cycle option to power off then power on

Refactor the on and off code into functions to make it cleaner.

20 months agoUse taint mode and don't use PATH at all
Steve McIntyre [Wed, 30 Jan 2019 15:30:19 +0000 (15:30 +0000)]
Use taint mode and don't use PATH at all

20 months agoSplit on comma and use multiple lines for output
Steve McIntyre [Wed, 30 Jan 2019 15:29:56 +0000 (15:29 +0000)]
Split on comma and use multiple lines for output

20 months agoAdd boilerplate and usage comments to watch-irssi
Steve McIntyre [Wed, 30 Jan 2019 14:48:42 +0000 (14:48 +0000)]
Add boilerplate and usage comments to watch-irssi

21 months agoScript to popup a message when somebody highlights me in irc
Steve McIntyre [Sat, 19 Jan 2019 03:10:40 +0000 (03:10 +0000)]
Script to popup a message when somebody highlights me in irc

Use wmctrl to regularly grab title bars and look for an irssi
window. If thers'a highlight and it's different from last time we
looked, run a popup.

This finally allows me to get desktop popups even when running irssi
remotely in screen \o/.