steve-scripts.git
38 hours agoMake directories as needed master
Steve McIntyre [Tue, 2 Jun 2020 10:23:39 +0000 (11:23 +0100)]
Make directories as needed

38 hours 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

4 weeks 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 weeks 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 weeks agoWhitespace fix
Steve McIntyre [Wed, 29 Apr 2020 14:04:32 +0000 (15:04 +0100)]
Whitespace fix

5 weeks 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 weeks 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 weeks 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 weeks agoTypo fix
Steve McIntyre [Thu, 16 Apr 2020 23:19:59 +0000 (00:19 +0100)]
Typo fix

6 weeks 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 weeks 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 weeks agoAdd debug
Steve McIntyre [Thu, 16 Apr 2020 17:13:36 +0000 (18:13 +0100)]
Add debug

6 weeks 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 weeks agoRemove debug
Steve McIntyre [Thu, 16 Apr 2020 17:11:37 +0000 (18:11 +0100)]
Remove debug

6 weeks 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 weeks 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 weeks agoFix typo
Steve McIntyre [Thu, 16 Apr 2020 16:46:53 +0000 (17:46 +0100)]
Fix typo

6 weeks 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 weeks 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 weeks agoBetter copyright dates
Steve McIntyre [Thu, 16 Apr 2020 16:32:37 +0000 (17:32 +0100)]
Better copyright dates

8 weeks 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

2 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

2 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

2 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

2 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

2 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

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

3 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.

3 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

3 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.

3 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.

3 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.

3 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

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

3 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

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

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

3 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

3 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

3 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

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

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

3 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

3 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

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

3 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

4 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

4 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

4 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

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

4 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.

5 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.

5 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

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

5 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

5 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!

6 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

6 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

6 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.

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

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

7 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

7 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

7 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

7 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

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

14 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.

16 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

16 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

16 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

16 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/.

18 months agoAdd simple script to wrap aumix, ready to use by fvwm
Steve McIntyre [Tue, 20 Nov 2018 14:08:47 +0000 (14:08 +0000)]
Add simple script to wrap aumix, ready to use by fvwm

18 months agoMore logging improvements
Steve McIntyre [Wed, 14 Nov 2018 14:07:03 +0000 (14:07 +0000)]
More logging improvements

Collect together all logging output into a single function
Add option to print all command lines too

18 months agoHandle -v as well as --verbose
Steve McIntyre [Wed, 14 Nov 2018 13:02:44 +0000 (13:02 +0000)]
Handle -v as well as --verbose

18 months agoBuild complete command line in $cmd
Steve McIntyre [Wed, 14 Nov 2018 13:02:22 +0000 (13:02 +0000)]
Build complete command line in $cmd

Makes for wasier code

18 months agoBetter check - is the config file readable?
Steve McIntyre [Fri, 9 Nov 2018 00:12:38 +0000 (00:12 +0000)]
Better check - is the config file readable?

18 months agoImprove config error handling
Steve McIntyre [Fri, 9 Nov 2018 00:10:39 +0000 (00:10 +0000)]
Improve config error handling

18 months agoAdd link to useful blog article
Steve McIntyre [Fri, 9 Nov 2018 00:10:25 +0000 (00:10 +0000)]
Add link to useful blog article

18 months agoAdd simple PDU control script
Steve McIntyre [Fri, 9 Nov 2018 00:00:07 +0000 (00:00 +0000)]
Add simple PDU control script

18 months agoexclude more metadata files
Steve McIntyre [Tue, 6 Nov 2018 17:59:05 +0000 (17:59 +0000)]
exclude more metadata files

2 years agoAdd extra code to help detect mis-typed aliases
Steve McIntyre [Thu, 6 Jul 2017 23:55:58 +0000 (00:55 +0100)]
Add extra code to help detect mis-typed aliases

If I've mis-typed an alias, then it will have an outgoing address @
tack.einval.com; that should never occur otherwise If we detect that,
abort with an error message so I can fix it.

2 years agoDeal with MP3 onto USB sticks too, for the car
Steve McIntyre [Thu, 6 Jul 2017 23:55:15 +0000 (00:55 +0100)]
Deal with MP3 onto USB sticks too, for the car

3 years agoTrivial rsync wrapper for music file downloads
Steve McIntyre [Thu, 5 Jan 2017 17:45:42 +0000 (17:45 +0000)]
Trivial rsync wrapper for music file downloads

3 years agoScript to help with picking albums at random
Steve McIntyre [Thu, 5 Jan 2017 17:45:12 +0000 (17:45 +0000)]
Script to help with picking albums at random

Helpful with audacious

3 years agoUseful wrapper for dd, using pv to give progress too
Steve McIntyre [Thu, 5 Jan 2017 17:41:47 +0000 (17:41 +0000)]
Useful wrapper for dd, using pv to give progress too

3 years agoAdd timestamps to screen-lock
Steve McIntyre [Thu, 5 Jan 2017 17:41:15 +0000 (17:41 +0000)]
Add timestamps to screen-lock

3 years agoVarious mutt helper scripts
Steve McIntyre [Thu, 5 Jan 2017 17:40:54 +0000 (17:40 +0000)]
Various mutt helper scripts

3 years agoSimple script to read back and check burnt optical discs
Steve McIntyre [Thu, 5 Jan 2017 16:32:52 +0000 (16:32 +0000)]
Simple script to read back and check burnt optical discs

4 years agoAdd archive scanning program and a post-processor script
Steve McIntyre [Fri, 29 Apr 2016 21:57:48 +0000 (22:57 +0100)]
Add archive scanning program and a post-processor script

4 years agoAlways set dpi for the LVDS, otherwise it wanders
Steve McIntyre [Sun, 5 Jul 2015 22:07:45 +0000 (23:07 +0100)]
Always set dpi for the LVDS, otherwise it wanders

5 years agoForce LVDS-only to the LVDS screen size
Steve McIntyre [Sun, 15 Mar 2015 02:46:10 +0000 (02:46 +0000)]
Force LVDS-only to the LVDS screen size

5 years agoAdd boilerplate and reset for 100dpi
Steve McIntyre [Tue, 11 Nov 2014 23:00:21 +0000 (23:00 +0000)]
Add boilerplate and reset for 100dpi

5 years agoMake things much more robust
Steve McIntyre [Tue, 26 Aug 2014 08:30:09 +0000 (09:30 +0100)]
Make things much more robust

Deal with displays with modes that the LVDS can't match.
In case of xrandr not finding crtc, disable everything and fall back
to LVDS only.
Control xscreensaver better.

5 years agoworking? version of screen lock and resize script
Steve McIntyre [Tue, 26 Aug 2014 03:59:55 +0000 (04:59 +0100)]
working? version of screen lock and resize script