This file contains hidden or 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
| gh-starlists() { | |
| gh api graphql --paginate --raw-field query=' | |
| query($endCursor: String) { | |
| viewer { | |
| lists(first: 100, after: $endCursor) { | |
| nodes { | |
| id | |
| name | |
| } | |
| pageInfo { |
This file contains hidden or 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/zsh --norcs | |
| set -o NO_UNSET -o ERREXIT | |
| if (! sudo -nv) { | |
| echo "re-run after caching sudo in parent shell, by e.g. running:\n\t sudo -v" >&2 | |
| exit 1 | |
| } | |
| autoload -Uz colors && colors |
This file contains hidden or 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
| <!-- | |
| vim: ft=xml ts=4 noet | |
| --> | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>com.mitchellh.ghostty.quick_terminal</string> | |
| <key>AssociatedBundleIdentifiers</key> |
This file contains hidden or 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
| let sh = (strs, ...subs) => { | |
| const q = (s) => `${s}`.match(/^['"].*['"]$/) ? `${s}` : `'${s}'` | |
| return app.doShellScript( | |
| strs.flatMap((s,i) => subs[i] ? [s.trim(), q(subs[i])] : s.trim() ).join(" ") | |
| ) | |
| } | |
| let getAppGroup = (appName) => sh`codesign --display --entitlements - --xml 2> /dev/null | |
| ${Application("System Events").applicationProcesses[appName].applicationFile().posixPath()} |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <!-- General: --> | |
| <!-- when set to default values these settings removed from the plist --> | |
| <!-- "Show hidden menu bar items when:" --> | |
| <key>ClickingMenuBarTogglesBartender</key> <integer>1</integer> | |
| <key>ScrollingMenuBarShowsHiddenItems</key> <integer>1</integer> | |
| <key>MouseOverMenuBarTogglesBartender</key> <integer>1</integer> |
This file contains hidden or 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
| def declare: ( | |
| .t as $type | .var as $var | | |
| {"array": "-a", "object": "-A"}[$type] as $arg | | |
| "declare \($arg) \($var);" | |
| ); | |
| def shellify: ( | |
| . as $container | |
This file contains hidden or 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
| # cross-platform bash-3.2 compatible (thanks macos) | |
| # | |
| # examples: | |
| # | |
| # $ version_endpoints_compare "3.7.1" "<=4.3.1" "=4.3.4" ">=4.3.5" ">=4.4" | |
| # <=4.3.1 | |
| # $ version_endpoints_compare "4.3.1" "<=4.3.1" "=4.3.4" ">=4.3.5" ">=4.4" | |
| # <=4.3.1 | |
| # $ version_endpoints_compare "4.3.2" "<=4.3.1" "=4.3.4" ">=4.3.5" ">=4.4" | |
| # other |
This file contains hidden or 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
| [Match] | |
| MACAddress=62:55:1b:5f:f7:d6 | |
| [Network] | |
| IPForward=yes | |
| DNS=9.9.9.9 | |
| Address=10.0.0.1/12 | |
| Gateway=10.15.0.1 | |
| [Route] |
This file contains hidden or 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 -o errexit -o nounset -o pipefail | |
| bootstrap_podman() { | |
| if ! podman system info &>/dev/null; then | |
| echo "!!podman not initialized: doing that" >&2 | |
| if ! podman machine inspect &>/dev/null; then | |
| podman machine init --user-mode-networking |
This file contains hidden or 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
| // ==UserScript== | |
| // @name Add counts to Hey.com Imbox (and contents) | |
| // @run-at document-end | |
| // @match https://app.hey.com/* | |
| // @grant GM_getValue | |
| // @grant GM_setValue | |
| const BASE_URL_PATTERN = 'https://app\\.hey\\.com' | |
| let UnreadCount = -1; |
NewerOlder