Skip to content

Instantly share code, notes, and snippets.

View rutgerrrrr's full-sized avatar

Rutger rutgerrrrr

  • The Netherlands
View GitHub Profile
@Jonalogy
Jonalogy / handling_multiple_github_accounts.md
Last active September 21, 2024 05:13
Handling Multiple Github Accounts on MacOS

Handling Multiple Github Accounts on MacOS

The only way I've succeeded so far is to employ SSH.

Assuming you are new to this like me, first I'd like to share with you that your Mac has a SSH config file in a .ssh directory. The config file is where you draw relations of your SSH keys to each GitHub (or Bitbucket) account, and all your SSH keys generated are saved into .ssh directory by default. You can navigate to it by running cd ~/.ssh within your terminal, open the config file with any editor, and it should look something like this:

Host *
 AddKeysToAgent yes

> UseKeyChain yes

@reitermarkus
reitermarkus / assistive-access-el-capitan.py
Last active February 6, 2022 14:00
Scripts to enable Assistive Access programmatically on OS X El Capitan.
#!/usr/bin/python
# Grant Assistive Access to Terminal and “osascript”.
import sqlite3
conn = sqlite3.connect('/Library/Application Support/com.apple.TCC/TCC.db')
conn.cursor().execute("INSERT or REPLACE INTO access VALUES('kTCCServiceAccessibility','com.apple.Terminal',0,1,1,NULL,NULL)")
conn.cursor().execute("INSERT or REPLACE INTO access VALUES('kTCCServiceAccessibility','$(which osascript)',1,1,1,NULL,NULL)")
conn.commit()
@gitaarik
gitaarik / git_submodules.md
Last active September 14, 2024 13:38
Git Submodules basic explanation

Git Submodules basic explanation

Why submodules?

In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:

  • Separate big codebases into multiple repositories.