Skip to content

Instantly share code, notes, and snippets.

View NickWoodhams's full-sized avatar

Nick Woodhams NickWoodhams

View GitHub Profile
@NickWoodhams
NickWoodhams / config.plist
Created November 27, 2016 23:39
My working X99 Clover config.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Debug</key>
<false/>
@NickWoodhams
NickWoodhams / import_xml_override.gs
Created July 3, 2018 00:55
Override Google Limit on IMPORTXML Function in Google Sheets
function importRegex(url, regexInput) {
var output = '';
var fetchedUrl = UrlFetchApp.fetch(url, {muteHttpExceptions: true});
if (fetchedUrl) {
var html = fetchedUrl.getContentText();
if (html.length && regexInput.length) {
output = html.match(new RegExp(regexInput, 'i'))[1];
}
}
// Grace period to not overload
@NickWoodhams
NickWoodhams / testnfs
Created October 16, 2013 07:15
Find the best NFS rsize and wsize for performance
EXPORT="yourdomain.com:/home/shared/folder"
MNTDIR="/local/folder"
TESTFILE="remote-file.test"
NFSPROTO="udp"
if [[ -n "$1" ]]; then
NFSPROTO="tcp"
fi
echo "Testing transfer speed of $NFSPROTO on file $EXPORT/$TESTFILE"
@NickWoodhams
NickWoodhams / push-clipboard-to-iphone.sh
Created March 7, 2018 16:09
Push Clipboard to Phone (Pushover App)
#!/bin/bash
clipboard="message="
clipboard+=$(pbpaste)
curl -s \
--form-string "token=" \
--form-string "user=" \
--form-string "$clipboard" \
https://api.pushover.net/1/messages.json
@NickWoodhams
NickWoodhams / ssssl.sh
Last active March 30, 2020 17:45
Generates commands to create a self signed ssl that actually works. No browser errors as of 06-25-2019!
#!/bin/bash
# Generates a self signed ssl that actually works
DOMAIN1=$1
DOMAIN2=$4
IP_ADDRESS=$2
SSL_PATH=$3
CNF_PATH="$SSL_PATH/$DOMAIN1.cnf"
KEY_PATH="$SSL_PATH/$DOMAIN1.key"
CRT_PATH="$SSL_PATH/$DOMAIN1.crt"
@NickWoodhams
NickWoodhams / Test2.efi
Created June 4, 2015 02:43
Recompiled OsxLowMemFixDrv-64.efi Driver to Fix OsxAptioFixDriv Error
4d5a 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 8000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
0000 0000 0000 0000 0000 0000 0000 0000
5045 0000 6486 0400 0000 0000 0000 0000
0000 0000 f000 2e00 0b02 0000 e004 0000
@NickWoodhams
NickWoodhams / close_deleted_file.py
Last active November 24, 2019 17:00
Close Deleted File - Sublime 3 Plugin
import sublime_plugin
import sublime
import time
import os
class MyEvents(sublime_plugin.EventListener):
def on_deactivated_async(self, view):
s = view.file_name()
if s:
@NickWoodhams
NickWoodhams / config.plist
Created August 5, 2015 18:33
Clover config (X99-UD5 with Software Raid 0)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Debug</key>
<false/>
@NickWoodhams
NickWoodhams / remove_prefs.sh
Created November 14, 2016 10:11
Remove Microsoft Office 2016 Preferences
cd ~/Library/Containers
rm -rf com.microsoft.Excel com.microsoft.Office365ServiceV2 com.microsoft.Outlook com.microsoft.Powerpoint com.microsoft.Word com.microsoft.netlib.shipassertprocess com.microsoft.onenote.mac
rm -rf UBF8T346G9.ms UBF8T346G9.Office UBF8T346G9.OfficeOsfWebHost
http://property.phila.gov/?p=341148200
http://property.phila.gov/?p=592073500
http://property.phila.gov/?p=422023800
http://property.phila.gov/?p=112136000
http://property.phila.gov/?p=452311500
http://property.phila.gov/?p=111083800
http://property.phila.gov/?p=364423400
http://property.phila.gov/?p=202215038
http://property.phila.gov/?p=11378300
http://property.phila.gov/?p=871265700