Skip to content

Instantly share code, notes, and snippets.

@nextuponstream
nextuponstream / useful git shortcuts + gh installation.md
Created February 7, 2021 11:08
useful git shortcuts + gh installation

Append in .bashrc: Install github client with

### git
alias gpl="git pull"
alias gap="git add ."
alias gcm="git commit -m"
alias gps="git push"
alias gst="git status"
@nextuponstream
nextuponstream / cute shell customisation.md
Last active August 13, 2021 13:26
cute shell customisation

Append in .bashrc:

# time: https://askubuntu.com/a/770970
# color: https://www.tecmint.com/customize-bash-colors-terminal-prompt-linux/
# non printing caracters like \e: https://stackoverflow.com/a/14225726
# copy-paste emojis: https://emojipedia.org/search/?q=sloth
export PS1="\[\e[1;32m\]\t \w 🐬🏐🐋🌴🍹 \[\e[0;37m\]"

Will print time, current working directory and a sloth emoji.

@nextuponstream
nextuponstream / configure multiple github accounts on the same machine.md
Last active February 7, 2021 11:05
configure multiple github accounts on the same machine.md

SSH keys

Create

ssh-keygen -o

You can view the created files (one without extension and one with .pub) under ~/.ssh/. When creating several of them, you may want to rename them appropriately (e.g. work, pers...).

Add them

to the relevant github account: https://github.com/settings/ssh/new

Configuration

The configuration file for ssh is usually not created by default so we create it: