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 | |
# Example runs: `nv 17 ./script.js`, `nv latest yarn install` | |
# Get Node version | |
VERSION=$1 | |
# Get the rest of the arguments | |
shift | |
ARGUMENTS=$@ | |
docker run \ |
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
for i in {1..9}; do gsettings set "org.gnome.shell.keybindings" "switch-to-application-$i" "[\"<Super>$i\"]"; done |
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
import fs from 'fs/promises'; | |
const SENTRY_API_KEY = 'enterapikeyhere'; | |
const ORG_SLUG = 'enterorgslughere'; | |
const TEAM_SLUG = 'enterteamnamehere'; | |
const fetchSentry = ( | |
path: string, | |
method: 'GET' | 'POST' | 'PUT' = 'GET', | |
body?: Record<string, any>, |

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
grep -rh "import.*from '@myapp/mypackage'" ./somefolder/**/*.ts | sed -n "s/.*{\(.*\)}.*/\1/p" | tr ',' '\n' | sed 's/^ *//g' | sort -u |
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' | |
YELLOW='\033[1;33m' | |
NC='\033[0m' # No Color | |
# Get the current branch name | |
current_branch=$(git rev-parse --abbrev-ref HEAD) |
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 | |
# Get all Lambda function names | |
function_names=$(aws lambda list-functions --query 'Functions[*].FunctionName' --output text) | |
echo "Lambda Functions with Reserved Concurrency:" | |
echo "-------------------------------------------" | |
# Check each function for reserved concurrency | |
for func in $function_names; do |
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 | |
# Script to count total lines changed by a specific author in git history | |
# Usage: ./count_lines_changed.sh -a "Author Name" -s "2024-01-01" -e "2025-04-10" -b "master" | |
# Default values | |
START_DATE="2024-01-01" | |
END_DATE="2025-04-10" | |
BRANCH="master" | |
AUTHOR="" |
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 | |
# Script to find top 5 files an author spent most time in based on git history | |
# Usage: ./top_files.sh -a "Author Name" -s "2024-01-01" -e "2025-04-10" -b "master" -n 5 | |
# Default values | |
START_DATE="2024-01-01" | |
END_DATE="2025-04-10" | |
BRANCH="master" | |
AUTHOR="" |