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 | |
// 1. Open Keychain Access.app | |
// 2. Filter by `SSH:` | |
// 3. Set pw and outfile in this script | |
// 4. Run | |
// 5. Transfer the file to the new device | |
// 5. Use the sloppy script below to then read that file and add to Keychain Access on the new device | |
/* |
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 | |
""" | |
Quick hack to fix links to local files in Markdown notes exported from Joplin 3.1.24. | |
Run at your own risk, ideally on a duplicate copy of your exported notes, as | |
this makes destructive changes that would be difficult to undo. This may break | |
your notes. | |
Further, special cases like parentheses in filenames are handled differently by | |
different markdown renderers. You may have to alter the script depending on what |
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 | |
function click_ok() { | |
const sys = Application('System Events') | |
const finder = sys.processes["Finder"] | |
try { | |
let sheets = finder.windows.whose({name: "NatePhone"}).sheets().flat() | |
let message = "cannot be played on this iPhone." | |
let error_sheet = sheets.filter(sheet => { |
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
{ | |
description = "Example use of nixpkgs#darwin-builder"; | |
# First, read through https://github.com/NixOS/nixpkgs/blob/master/doc/builders/special/darwin-builder.section.md#sec-darwin-builder-example-flake | |
# and add yourself to `extra-trusted-users`, verify with `nix show-config | grep -i trusted-users` | |
# | |
# Copy this flake somewhere and run: | |
# | |
# ```console | |
# $ nix build --builders '' .#packages.aarch64-darwin.default |
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 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
#!/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
#!/usr/bin/osascript -l JavaScript | |
'use strict'; | |
const DEBUG = false; | |
function launchTerminal(path) { | |
const terminalApp = Application("Terminal.app") | |
terminalApp.includeStandardAdditions = true | |
let cmd = `cd ${path}; clear;` |
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 |
NewerOlder