I hereby claim:
- I am jmcker on github.
- I am jmcker (https://keybase.io/jmcker) on keybase.
- I have a public key whose fingerprint is D0FD 98A7 9ED6 6C43 432F 1F43 FA8C 0116 7D9A 8CE6
To claim this, I am signing this object:
| const todoClassName = 'sxojMb fbELB'; | |
| const completedClassName = 'RFmU6c'; | |
| const todo = []; | |
| const completed = []; | |
| for (const e of document.getElementsByClassName(todoClassName)) { | |
| if (!e.title) continue; // Skip Details sections | |
| todo.push(e.innerText); | |
| } |
I hereby claim:
To claim this, I am signing this object:
| # Getting terrible performance with Python in WSL? | |
| # | |
| # Putting a temporary exception in Windows Defender before running | |
| # your load may speed things up | |
| # | |
| # I put this in a PS script so that I don't: | |
| # - forget to put the exception in every time | |
| # - forget to remove the exception when I'm finished | |
| # - resort to disabling "Real-time protection" for a bit cuz I'm lazy | |
| # |
| #!/usr/bin/env python3 | |
| import sys | |
| import urllib.parse | |
| import requests | |
| def get_article_text(page_titles): | |
| ''' | |
| Fetch the plaintext for all of the given pages. |
| function spin-wait() { | |
| spin="/-\|" | |
| echo -n "${1:-Press any key to continue...} " | |
| while true | |
| do | |
| printf "\b${spin:i++%${#spin}:1}" | |
| read -n 1 -t 0.25 noop | |
| if [ "${?}" == "0" ]; then | |
| break |
| #!/bin/bash | |
| backup_dir="backup-$(date +%Y-%m-%d_%H:%M:%S)" | |
| mkdir -p "${backup_dir}" | |
| cp *.ovpn "${backup_dir}" | |
| for file in $(ls *.ovpn) | |
| do | |
| if ! cat "${file}" | grep "block-outside-dns" > /dev/null; then | |
| echo "Adding 'block-outside-dns' to ${file}..." |
| netsh wlan export profile key=clear |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <base href="app://./" /> | |
| <meta http-equiv="Content-Security-Policy" content="script-src 'self' app:; object-src 'self' app:;"> | |
| <script type="module" src="./module.js"></script> | |
| </head> | |
| <body> | |
| Check the console! |
| #!/bin/bash | |
| TO_HTTP="false" | |
| BASE_HOST="github.com" | |
| function help-text() { | |
| echo "git-protocol-switcher (git-prot)" | |
| echo " Switch all remotes in a git repo from HTTP to SSH (and vice-versa) with a single command." | |
| echo " This assumes a host of https://github.com" | |
| echo |