Skip to content

Instantly share code, notes, and snippets.

View tedleyem's full-sized avatar
🇭🇹
writing

Tedley M tedleyem

🇭🇹
writing
View GitHub Profile
@tedleyem
tedleyem / bash_aliases
Last active November 28, 2023 17:45
Here is a random assortment of some bash-aliases I use semi-frequently that I think other people might enjoy or find helpful.
# ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# aws-cli
alias gac='gimme-aws-creds'
# apt pacakge manager
alias install='sudo apt install -y'
alias purge='sudo apt purge -y'
@tedleyem
tedleyem / gh-cli multi-account solution
Last active March 20, 2023 17:41
gh-cli multi-account solution This is my current solution for using two different github accounts and switching between them. It uses github tokens to logout of one account and login to another given that proper variables are set. The below code can be copied to your .zshrc (mac) file or .bashrc (linux) file on your system.
###
# GH-CLI LOGIN Functions
###
alias ghas='gh auth status'
GHCLI_HOME='ghp_github-personal-token'
GHCLI_WORK='ghp_github-work-token'
GHUSER_HOME=ghuser-home
GHUSER_WORK=ghuser-work
GHHOST_HOME=github.com
@tedleyem
tedleyem / passgitgpg.md
Created July 18, 2022 19:37 — forked from flbuddymooreiv/passgitgpg.md
Setting up pass on git with a gpg key

The following shell transcript shows how to:

  • Create a GPG key
  • Create a pass database
  • Add git support to the pass database
  • Create a remote git repository
  • Push the pass database to the remote git repository
  • Fetch and display your passwords from another host

It is assumed that the pass package has been installed on both the first and second computers.