TinyPad.py

I’ve used this and variations of this script to generate random passwords for a long time, I originally wrote it in bash, because bash is best! #!/usr/bin/env python3 # SRJ 2019-08-07 import random import string msg = """ +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+ | In OpenOffice, format a page as ‘User’, Landscape, 3.37"x2.13", with .15" | | margins on…

Backing up files and databases

The files below are what I use to back up my machines, it’s quick, simple, and effective – I’ve used this for years to recover a lot of data, including bare-metal on more than one occasion. The files listed toward the bottom (Summary, Backups, and Filelist) are generated and don’t need to exist beforehand. /Backup/SiteWideBackup,…

Days between two dates

This little script reports back how many days fall between two arbitrary dates, or one date and today. If you put in a date in the future, it tells how many days as a negative; # How many days ’till Christmas? HowManyDays 2017-12-25 -115# How many days ’till Christmas? HowManyDays 2017-12-25 -115 #!/bin/bash # SRJ…

TinyPad

I’ve used this and variations of this script to generate random passwords for a long time, I recently re-coded this in Python because, well, Python! #!/bin/bash # SRJ 2017-02-06 cat <<EOF +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+ | In OpenOffice, format a page as ‘User’, Landscape, 3.37"x2.13", with .15" | | margins on all four sides. Select the text below…

Perfect_Printers

I wrote this a loong time ago, it amuses me to see that it still seems to work. The comments in this one make it pretty self-explanatory; #!/bin/sh # This gives a list of only the perfectly supported printers under Linux # It makes a nice list to take with you when you’re going to…

Bash_Boggle

I wrote this little script one evening a long time ago, for someone who wanted to take pre-printed sheets to work, as it was more stimulating than the work… #!/bin/bash # Print out a Boggle board to stdout. # The 16 dice and their 6 sides each, this creates Dice[n]= Dice=\ (QBAJOM EFIEYH ODENWS HPSEIN…

Pad

This generates a list of passwords, as a pad, I carry a subset of one of these with me in case I need a truly random password while I’m out. #!/bin/bash # SRJ 2016-09-20 Create reasonable passwords # 0 1 2 3 4 5 6 7 # 1234567890123456789012345678901234567890123456789012345678901234567890123456789 Chars="ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890.!@#$%&-_=+abcdefghijklmnopqrstuvwxyz" # The column labels are taken…