Skip to content

Instantly share code, notes, and snippets.

View arthurlockman's full-sized avatar

Arthur Rosa arthurlockman

View GitHub Profile
@arthurlockman
arthurlockman / github-auto-sso.js
Created August 15, 2025 21:43
Auto-click GitHub SSO
// ==UserScript==
// @name Auto-click GitHub SSO
// @namespace github-sso-auto
// @version 1.0
// @description Automatically click "Single sign-on" and "Continue" buttons on GitHub
// @author You
// @match https://*.github.com/*
// @grant none
// ==/UserScript==
@arthurlockman
arthurlockman / hvac_pause.yaml
Last active July 16, 2025 20:53 — forked from raffy-ops/hvac_pause.yaml
HA HVAC Pause Blueprint
#ver. 1.7.3
# Added manual switch to tell the thing that you have an ecobee
blueprint:
name: HVAC Pause V1.7.3
description: Pauses HVAC when windows/doors open; resumes last state once closed
domain: automation
source_url: https://gist.github.com/raffy-ops/2bdf967036d8d274fb1f62572ed5e545
input:
climate_device:
description: Climate entity used for climate control.
@arthurlockman
arthurlockman / package-filter.txt
Last active August 15, 2021 22:24
Fastmail/Gmail filter for finding package tracking info
([email protected] AND "ship notification") OR ([email protected] "Your package is on its way") OR ([email protected] "Shipped") OR OR ([email protected]) 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 ([email protected] AND "has been shipped”) OR [email protected]
@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: