Skip to content

Instantly share code, notes, and snippets.

Matt Sephton gingerbeardman

Block or report user

Report or block gingerbeardman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View BusterBros_volDesc.txt
========== LBA[003590, 0x00e06]: PCE Warning msg & all stuff ==========
View Electric
<!-- Please do not remove or change this AfD message until the discussion has been closed. -->
{{Article for deletion/dated|page=Electric Brain|timestamp=20190424072107|year=2019|month=April|day=24|substed=yes}}
<!-- Once discussion is closed, please place on talk page: {{Old AfD multi|page=Electric Brain|date=24 April 2019|result='''keep'''}} -->
<!-- End of AfD message, feel free to edit beyond this point -->
{{Infobox magazine
| title = Electric Brain
| logo =
| logo_size = <!-- default is 180px -->
| image_file = Electric_Brain_Issue_34_(May_1993).jpg
| image_alt =
DEVICE=$(networksetup -listallhardwareports | grep -A 2 -E "AirPort|Wi-Fi" | grep -m 1 -o -e en[0-9]);
# turn them off...
networksetup -setairportpower $DEVICE Off
./blueutil off
# ...and on again
networksetup -setairportpower $DEVICE On
./blueutil on
View keybase.proof
### Keybase proof
I hereby claim:
* I am gingerbeardman on github.
* I am gingerbeardman ( on keybase.
* I have a public key whose fingerprint is 876C A4D0 3068 5B7F 50C1 96DB A399 461C 25D7 0E39
To claim this, I am signing this object:
gingerbeardman /
Last active Apr 22, 2019
Simple cli tool to use for ephemeral file uploads. Install: curl | sudo tee /usr/local/bin/ && sudo chmod +x /usr/local/bin/
if [ $# -eq 0 ]; then
echo "Usage: FILE\n"
exit 1
gingerbeardman /
Last active Jun 17, 2019 — forked from devster/
Simple cli tool to use Install: curl | sudo tee /usr/local/bin/ && sudo chmod +x /usr/local/bin/
DEFAULT_EXPIRE="14d" # Default to 14 days
if [ $# -eq 0 ]; then
echo "Usage: FILE [DURATION]\n"
echo "Example: path/to/my/file 1w\n"
exit 1
gingerbeardman /
Last active Apr 30, 2018
How to make Fujitsu's ScanSnap software recognise a PDF that you haven't scanned
  1. Instal ExifTool: brew install exiftool
  2. Replace the Creator metadata: exiftool -Creator="ScanSnap Manager #S1300i" *.pdf
gingerbeardman /
Created Jan 1, 2018
Cropping the whole of a multi-page PDF using Preview on macOS X
  1. Open multi-page PDF
  2. Select all pages (Cmd+A with focus in thumbnail sidebar)
  3. Tools > Rectangular Selection
  4. On single page drag to select area to crop
  5. Tools > Crop (or Cmd+K)

All pages are cropped identically!

gingerbeardman / _generate.php
Created Dec 7, 2017
Normalise the size of fonts using the inverse of the Asc+Desc metric
View _generate.php
#!/usr/bin/env php
$dirs = glob("*", GLOB_ONLYDIR);
foreach ($dirs as $folder) {
echo $folder."\n";
$files = glob("$folder/*");
DATE=`date +%Y%m%d%H%M%S`
defaults write "/Users/matt/Projects/Wire Hang/Info.plist" CFBundleVersion -string "$DATE"
cp "Info.plist" "Wire Hang"
cp "icons/Wire Hang Redux.icns" "Wire Hang"
touch "Wire Hang"
xattr -cr "Wire Hang"
codesign -f -s "3rd Party Mac Developer Application: Matt Sephton (A1B234CD5E)" "Wire Hang"
productbuild --component "Wire Hang" /Applications --sign "3rd Party Mac Developer Installer: Matt Sephton (A1B234CD5E)" "Wire Hang Redux.pkg"
spctl -a -v --type install "Wire Hang Redux.pkg"
You can’t perform that action at this time.