Skip to content

Instantly share code, notes, and snippets.

View abuabdirohman4's full-sized avatar
🏠
Working from home

Abu Abdirohman abuabdirohman4

🏠
Working from home
View GitHub Profile
@marcoandre1
marcoandre1 / SSH-configuration-github-gitlab.md
Last active June 10, 2024 04:03
Managing SSH keys for Github and Gitlab

Managing SSH keys for Github and Gitlab

NOTICE: This guide will help you set ssh keys for GitHub and GitLab. However, this is not going to change your commit user.name or user.email. If you need to change those for specific repositories, just run the following commands while in your repository:

git config user.name "Your Name Here"
git config user.email your@email.com

For more info, see this answer. Also, keep in mind this only changes the .git folder inside your repository which never gets added/committed/pushed/uploaded.

I recently had to manage two ssh keys (one for Github and one for Gitlab). I did some research to find the best solution. I am justing putting the pieces together here.

@akhdaniel
akhdaniel / Installation Checklist: Odoo v10 + Ubuntu 16.04 +Nginx + Certbot SSL.md
Last active April 17, 2024 07:46
Installation Checklist: Odoo v10 + Ubuntu 16.04 + Nginx + Certbot SSL

Step 1 - Add the Odoo repository

wget -O - https://nightly.odoo.com/odoo.key | apt-key add -
echo "deb http://nightly.odoo.com/10.0/nightly/deb/ ./" >> /etc/apt/sources.list
apt-get update

Step 2 - Configure a Linux user for Odoo

@chranderson
chranderson / nvmCommands.js
Last active June 14, 2024 19:15
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node
@joseluisq
joseluisq / terminal-git-branch-name.md
Last active June 14, 2024 19:05
Add Git Branch Name to Terminal Prompt (Linux/Mac)

Add Git Branch Name to Terminal Prompt (Linux/Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {