Skip to content

Instantly share code, notes, and snippets.

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

孙槐 bloodynumen

🏠
Working from home
View GitHub Profile
@exherb
exherb / multiavatar.py
Created January 20, 2021 06:40
multiavatar
# -*- coding: utf-8 -*-
import itertools
import os
import sys
import time
import requests
@saulbaizman
saulbaizman / multiple github accounts, custom ssh hosts, and git url aliases.md
Last active January 29, 2024 07:20
multiple github accounts, custom ssh hosts, and git url aliases

multiple github accounts + custom ssh hosts + git url aliases

As is often the case, this is written for the search engines, because when I tried to find a solution to this problem, I couldn't find one. (Perhaps that was because I wasn't searching with the right keywords, or perhaps I would have found the solution had I been more persistent.) I also understand that very few people will encounter this "problem" (read: require, or desire, this crazy advanced configuration).

Because services like GitHub and BitBucket require each user account to have unique SSH keys, if you have multiple accounts on those services, it's necessary to generate multiple SSH keys.

First, we'll generate the keys.

$ ssh-keygen -t rsa -f github-user1 # key for user1
@ibeex
ibeex / foo.log
Created August 4, 2012 13:46
Flask logging example
A warning occurred (42 apples)
An error occurred
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active April 23, 2024 02:53
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S