How to setup multiple git accounts for GitHub and Bitbucket

Issue #514

Generate SSH keys

1
2
3
4
5
6
7
8
9
ssh-keygen -t rsa -C "onmyway133@gmail.com" -f "id_rsa_github"
ssh-keygen -t rsa -C "onmyway133bitbucket@gmail.com" -f "id_rsa_bitbucket"

pbcopy < ~/.ssh/id_rsa_github.pub
pbcopy < ~/.ssh/id_rsa_bitbucket.pub

ssh-add -D
ssh-add id_rsa_github
ssh-add id_rsa_bitbucket
1
2
3
4
5
6
7
8
9
10
11
12
13
vim ~/.ssh/config

#Github (personal)
Host gh
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_github

#Bitbucket (work)
Host bb
HostName bitbucket.org
User git
IdentityFile ~/.ssh/id_rsa_bitbucket

Config

1
2
git config --global user.email "onmyway133@gmail.com"
git config --local user.email "onmyway133bitbucket@gmail.com"

Read more

How to use remote theme for GitHub Pages

Issue #248

Visit https://github.com/onmyway133/onmyway133.github.io


https://github.blog/2017-11-29-use-any-theme-with-github-pages/

Starting today, you can use any of the hundreds of community-curated themes on GitHub.com. To build your site with any public, GitHub-hosted theme, add the following to your site’s _config.yml file:

1
remote_theme: owner/name

Browse themes https://github.com/topics/jekyll-theme
Example config file with navigation https://github.com/daviddarnes/alembic/blob/master/_config.yml

Each page must have a description. Link must point to generated html file

1
Apps: /apps.html

Do not specify layout: default to keep overall theme

1
2
3
4
---
title: Another Page
description:
---

Badge in GitHub

Issue #117

GitHub is so awesome. It is where people around the world collaborate with each other.
It is more awesome to show more about you in your GitHub profile. How about a badge? a welcome text?
It is doable with organization. GitHub takes time and name of the organiazations you joined to determined how it displays on your profile

This used to be what shown on my GitHub profile https://github.com/onmyway133

1_61enfsc61onicous7vdwkw

For me, I display the text “Hello World”, so I have to create organizations for “h”, “e”, “l”, “l”, “o”, “w”, “o”, “r”, “l”, “d”
To ensure the order, you can name your organization like “org-h”, “org-he”, “org-hel”, “org-hell”, “org-hello”, … and you must join the organization in the correct order
I create another GitHub account called https://github.com/fantabot to manage my organizations
Your imaginary is your limit. May your code continue to compile :grin: