- Put tasks.json in .vscode/tasks.json
- (osx) cmd+shift+p -> run "Tasks: Run Task"
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
| echo 'edit last_read_at to current date pls!' | |
| curl -X PUT \ | |
| -H "Accept: application/vnd.github.v3+json" \ | |
| -H "Authorization: token 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" \ | |
| https://api.github.com/notifications \ | |
| -d '{"last_read_at":"2025-10-06T00:00:00Z"}' |
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
| curl ifconfig.me/all |
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
| sudo lsof -i :3000 | awk 'NR!=1 {print $2}' | xargs sudo kill |
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
| caffeinate |
Here's a comprehensive comparison table of the build tools:
| Feature | Webpack | Rollup | Vite | ESbuild |
|---|---|---|---|---|
| Release Year | 2012 | 2015 | 2020 | 2020 |
| Written In | JavaScript | JavaScript | JavaScript | Go |
| Primary Use Case | Large applications | Libraries & frameworks | Modern web apps | Performance-critical builds |
| Build Speed | Slower | Moderate | Fast (Dev), Moderate (Prod) | Extremely fast |
| Key Features | - Hot Module Replacement - Rich plugin ecosystem - Code splitting - Dynamic imports - Asset bundling - Complex configurations |
- Efficient tree shaking - ES Module bundling - Simple configuration - Small bundle sizes - Plugin system |
- No bundling in dev - Lightning fast HMR - Built-in TypeScript support - Uses ESbuild (dev) - Uses Rollup (prod) |
- Ultra-fast builds - Built-in minification - TypeScript/JSX support - Low-level API |
| Configuration | Complex | Moderate |
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
| defaults write com.apple.screencapture location ~/Pictures/Screenshots | |
| mkdir -p ~/Pictures/Screenshots | |
| killall SystemUIServer |
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 | |
| # Colors for output | |
| RED='\033[0;31m' | |
| GREEN='\033[0;32m' | |
| NC='\033[0m' # No Color | |
| # Check if required tools are available | |
| check_requirements() { | |
| if ! command -v screencapture >/dev/null 2>&1; then |
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
| aws s3 sync . s3://google-drive-backup-$accountId-eu-north-1 --profile $profile --region eu-north-1 --storage-class DEEP_ARCHIVE |
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
| export $(grep -v '^#' .env | xargs) |
NewerOlder