Skip to content

Instantly share code, notes, and snippets.

@arthurlockman
arthurlockman / package-filter.txt
Last active August 15, 2021 22:24
Fastmail/Gmail filter for finding package tracking info
(mcinfo@ups.com AND "ship notification") OR (TrackingUpdates@fedex.com "Your package is on its way") OR (your_order_US@orders.apple.com "Shipped") OR OR (auto-confirm@amazon.com) OR ("has been shipped" OR "A shipment from order" OR "on the way" NOT "delivered" NOT "out for delivery" NOT "getting your order ready" NOT "amazon" NOT "confirmed" NOT "receipt" NOT "patreon") OR (no-reply@webpayments.io AND "has been shipped”) OR auto-reply@usps.com
@arthurlockman
arthurlockman / notes_to_evernote.scpt
Created September 8, 2020 19:58
Notes to Evernote Migration (AppleScript)
tell application "Notes"
activate
set folderNames to name of folders
set chosenFolderNames to (choose from list folderNames with multiple selections allowed)
if (chosenFolderNames is false) then error number -128 -- Cancel button.
end tell
repeat with i from 1 to (count chosenFolderNames)
set thisFolderName to item i of chosenFolderNames
tell application "Notes" to set theNotes to notes of folder thisFolderName
@arthurlockman
arthurlockman / instructions.md
Last active June 24, 2016 17:56
Installing PyGame on RHEL 7.2

Installing PyGame on RHEL 7.2

  1. Install RepoForge Repository: http://repoforge.org/

  2. Install the EPEL repository: https://fedoraproject.org/wiki/EPEL

  3. Run these commands:

     sudo yum install python-devel SDL_image-devel SDL_mixer-devel SDL_ttf-devel SDL-devel smpeg-devel numpy subversion portmidi-devel hg gcc
     hg clone https://bitbucket.org/pygame/pygame cd pygame
     python setup.py build
    

sudo python setup.py install

#!/usr/local/bin/zsh
osascript \
-e 'tell application "Notes" to activate' \
-e 'delay 1'
for f in $@*.html
do
filename=$(basename "$f")
extension="${filename##*.}"
#!/usr/local/bin/zsh
osascript -e 'tell application "Notes" to activate
delay 2'
for f in $@*.html
do
filename=$(basename "$f")
extension="${filename##*.}"
filename="${filename%.*}"

Keybase proof

I hereby claim:

  • I am arthurlockman on github.
  • I am arthurlockman (https://keybase.io/arthurlockman) on keybase.
  • I have a public key whose fingerprint is 5BCE 679C 3147 0997 D1ED FE21 45F8 C384 0A56 3A0A

To claim this, I am signing this object: