Skip to content

Instantly share code, notes, and snippets.

View spd789562's full-sized avatar

Leo Lin spd789562

View GitHub Profile
@Frontesque
Frontesque / SlashCommandManager.js
Created January 22, 2021 18:24
Discord.js V12 slash commands manager
module.exports = class SlashCommandManager {
constructor(client) {
this.client = client;
};
async createGlobalCommand(data = {}) {
return this.client.api.applications(this.client.user.id).commands.post({
data: data
});
@Jonalogy
Jonalogy / handling_multiple_github_accounts.md
Last active December 16, 2025 00:34
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