# Install docker, compose & buildx
brew install docker
brew install docker-compose
brew install docker-buildx
# Link plugins
mkdir -p ~/.docker/cli-plugins
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
{"version":1,"resource":"file:///Users/jan.majek/Projects/boilerplate-typescript/src/actions/download.ts","entries":[{"id":"Z0XS.ts","timestamp":1667820526418},{"id":"eGHD.ts","timestamp":1667904802020},{"id":"gU3A.ts","timestamp":1667906605037},{"id":"D2AS.ts","timestamp":1667906636984},{"id":"u9Ow.ts","timestamp":1667906783440},{"id":"dfBB.ts","timestamp":1667906812352},{"id":"zW6W.ts","timestamp":1667906921326}]} |
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 sh | |
# Set up labels: | |
gh label list && \ | |
gh label edit "bug" -n "Bug" -c "#d73a4a" -d "Something isn't working" && \ | |
gh label edit "documentation" -n "Docs" -c "#0075ca" -d "Improvements or additions to documentation" && \ | |
gh label edit "enhancement" -n "Enhancement" -c "#CAE308" -d "New feature or request" && \ | |
gh label edit "question" -n "Tech Debt" -c "#29CEDF" -d "Technical debt" && \ | |
gh label edit "wontfix" -n "Ignore" -c "#bbbbbb" -d "Disregard & Ignore" && \ | |
gh label delete --confirm "duplicate" && \ |
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
console.clear(); | |
const appStart = Date.now(); | |
const delay = async (delayMs: number) => new Promise(res => setTimeout(res, delayMs)); | |
const waitFor = async (checkFn: () => Promise<boolean>, maxWaitMs = 5000, pollIntervalMs = 250): Promise<void> => { | |
const start = Date.now(); | |
// const waitForIt = async (start: number): Promise<void> => { | |
// const check = await checkFn(); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# See: https://superuser.com/a/844034/448073 | |
# | |
# Useful Docs: | |
# - `Get-EventSubscriber` -- List subscribed events -- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-eventsubscriber?view=powershell-7.3 | |
# - `Register-ObjectEvent` -- Register new event -- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/register-objectevent?view=powershell-7.3 | |
# - `Unregister-Event -SubscriptionId 123` -- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/unregister-event?view=powershell-7.3 | |
$watchFolder = "$env:LOCALAPPDATA\Packages\MicrosoftWindows.Client.CBS_cw5n1h2txyewy\TempState\ScreenClip" | |
# Define actions after an event is detected |
OlderNewer