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
git remote set-head origin --auto |
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
brew tap domt4/autoupdate | |
brew autoupdate start 21600 --upgrade --cleanup --immediate |
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
# https://apple.stackexchange.com/questions/22785/how-do-i-disable-the-command-control-d-word-definition-keyboard-shortcut-in-os-x/114269#114269 | |
defaults write com.apple.symbolichotkeys AppleSymbolicHotKeys -dict-add 70 '<dict><key>enabled</key><false/></dict>' |
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
$(document).ready(() => { | |
// Dark mode for native HTML elements | |
const colorScheme = $('<meta>').attr({ | |
name: 'color-scheme', | |
content: 'light dark' | |
}) | |
$('head').append(colorScheme) | |
// Highlight trailing whitespace (from https://dmoj.ca/user/d) | |
const f = s => `<span style="background-color: rgba(247, 196, 0, 0.5)">${s}</span>` |
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
./gmvault-v1.9.2-beta-1/gmvault sync --type=custom --db-dir=./gmvault-db/ --passwd --gmail-req=label:gmvault_dl --emails-only --check-db=no --no-compression $EMAIL |
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
python3 help_crack.py --coptions="--deprecated-check-disable --backend-ignore-opencl --workload-profile 3 --slow-candidates" --dictcount 15 |
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
hwatch --color --interval=300 --differences \ | |
'curl -fsS https://dutchie.com/graphql \ | |
-H "Content-Type: application/json" \ | |
-d \'{"operationName": "IndividualFilteredProduct", "extensions": {"persistedQuery":{"version":1,"sha256Hash":"294bd77efd624c69e1a614f431729d422f81aa6505f535061589df96efcf184c"}}, "variables": {"productsFilter":{"cName":"ellevia-rso-1g","dispensaryId":"64c136f3a1b0aa000940eb6f"}}}\' \ | |
--compressed \ | |
| jq --color-output ".data.filteredProducts.products[0] | del(..|nulls)"' |
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
curl -fsS https://dutchie.com/graphql \ | |
-H 'Content-Type: application/json' \ | |
-d '{"operationName": "IndividualFilteredProduct", "extensions": {"persistedQuery":{"version":1,"sha256Hash":"294bd77efd624c69e1a614f431729d422f81aa6505f535061589df96efcf184c"}}, "variables": {"productsFilter":{"cName":"ellevia-rso-1g","dispensaryId":"64c136f3a1b0aa000940eb6f"}}}' \ | |
--compressed \ | |
| jq '.data.filteredProducts.products[0] | del(..|nulls)' |
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
brew install gnu-sed nano nanorc | |
echo 'include "'"$(brew --prefix)"'/share/nanorc/*.nanorc"' >> ~/.nanorc | |
gsed -i 's/icolor brightnormal/icolor normal/g' $(brew --prefix)/share/nanorc/nanorc.nanorc |
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
hwatch --color --interval=60 --differences \ | |
'curl -fsS https://www.aa.com/booking/api/search/calendar \ | |
-H "Accept: application/json" \ | |
-H "Content-Type: application/json" \ | |
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" \ | |
-d \'{"metadata":{"selectedProducts":[],"tripType":"OneWay","udo":{}},"passengers":[{"type":"adult","count":1}],"requestHeader":{"clientId":"AAcom"},"slices":[{"allCarriers":true,"cabin":"BUSINESS,FIRST","departureDate":"2024-01-25","destination":"ORD","destinationNearbyAirports":true,"maxStops":null,"origin":"HKG","originNearbyAirports":true}],"tripOptions":{"searchType":"Award","corporateBooking":false,"locale":"en_US"},"loyaltyInfo":null,"queryParams":{}}\' \ | |
--compressed \ | |
| jq --sort-keys --color-output ".calendarMonths[0].weeks.[].days | flatten[] | select( .solution != null ) | del(.dayOfMonth, .solution.calendarSlices, .validDay)"' |
NewerOlder