This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -Eeuf -o pipefail | |
readonly SSH_PORT=1234 | |
readonly USERNAME=me | |
readonly SSH_KEY=/home/"${USERNAME}"/.ssh/my_key_id_rsa | |
readonly DEST=my_machine_name | |
main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/osascript -l JavaScript | |
'use strict'; | |
const DEBUG = false; | |
(function () { | |
const terminal = Application("Terminal") | |
// A few seconds to focus the appropriate Finder window |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python3 | |
"""html_to_csv.py | |
Prompts for a URL, displays HTML tables from that page, then converts | |
the selected table to a csv file. | |
""" | |
import sys | |
import pandas | |
url = input("Enter the URL: ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
"""Last_Screenshot.py :: Get the most recent screenshot. | |
Returns the latest screenshot (or other file, with minor modification) to | |
Quicksilver. Useful if set as a trigger / keyboard shortcut to retrieve most | |
recently modified file from a directory. | |
""" | |
import logging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/osascript -l JavaScript | |
'use strict' | |
const Safari = Application("Safari") | |
const Chrome = Application("Google Chrome") | |
const Brave = Application("Brave Browser") | |
const SystemEvents = Application("System Events") | |
const Firefox = Application("firefox") | |
const DefaultBrowser = Firefox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""clicker.py :: Easy way to click stuff on the screen | |
https://pyautogui.readthedocs.io/en/latest/cheatsheet.html | |
""" | |
import argparse | |
from collections import namedtuple | |
import logging | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
search_bad_logins.py :: Compares a LastPass export to your Bitwarden vault. | |
Python >=3.10, no third party Python libraries / dependencies. | |
Outputs BW logins that may have been compromised in the recent LastPass hack | |
based on matching domain and password. | |
It would probably make sense to cast an even wider net by using something like |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"analyticsConsentAsked":"1","autoInstall":"1","docs":"css/html/http/javascript/dom/bash/docker/flask~2.2/git/gnu_make/gnuplot/go/homebrew/i3/jinja~3.0/jq/liquid/lua~5.4/markdown/matplotlib~3.6/nix/numpy~1.23/pandas~1/pygame/python~3.10/pytorch/rust/scikit_image/scikit_learn/sqlite/statsmodels/svelte/tailwindcss/tensorflow~2.9/vue~3/xslt_xpath"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.img | |
*.img.xz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -Eeuf -o pipefail | |
shopt -s inherit_errexit | |
log() { | |
echo "$*" > /dev/stderr | |
} | |
err() { |