Skip to content

Instantly share code, notes, and snippets.

@jadeiss
jadeiss / nerd_fonts.md
Created July 15, 2023 14:55 — forked from davidteren/nerd_fonts.md
Install Nerd Fonts via Homebrew [updated & fixed]
@jadeiss
jadeiss / aws-cred-export.sh
Last active March 9, 2023 05:17
Export AWS credentials for AWS SSO CLI session using AWS CLI in one-line
eval "$(aws configure export-credentials --profile $AWS_PROFILE --format env)"
@jadeiss
jadeiss / squash_last_n_commits.sh
Last active November 29, 2022 20:15
Git CLI | Squash the last n commits
// Replace n with the number of commits (including the latest) to squash
git reset --soft HEAD~n &&
git commit --edit -m"squashed commit message"
@jadeiss
jadeiss / winstall.ps1
Last active September 18, 2022 09:24
Winget Powershell script for basic windows packages
winget install --id=Apple.iTunes -e; winget install --id=Notion.Notion -e; winget install --id=Discord.Discord -e; winget install --id=Postman.Postman -e; winget install --id=7zip.7zip -e; winget install --id=Docker.DockerDesktop -e; winget install --id=TechSmith.Snagit -e; winget install --id=Microsoft.VisualStudioCode -e --override '/SILENT /mergetasks="!runcode,addcontextmenufiles,addcontextmenufolders"'; winget install AgileBits.1Password -e; winget install --id Git.Git -e --source winget; winget install --id Microsoft.PowerShell -e
@jadeiss
jadeiss / .zshrc
Last active January 10, 2022 23:33 — forked from paul-vd/.bashrc || .zshrc
Enables nvm to detect if there is an .nvmrc, if it finds it then it should switch the configured version
# nvm setup for ARM architecture
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
# Aliases for switching between x86 and ARM terminal architecture
alias intel='env /usr/bin/arch -x86_64 /bin/zsh --login'
alias arm='env /usr/bin/arch -arm64 /bin/zsh --login'
# enables nvm to detect if there is an .nvmrc, if it finds it,
# then it should switch the configured version: