Skip to content

Instantly share code, notes, and snippets.

View SofijaErkin's full-sized avatar
🎯
Focusing

Vittore Marcas SofijaErkin

🎯
Focusing
View GitHub Profile
@SofijaErkin
SofijaErkin / github_multiple-accounts.md
Created December 24, 2021 00:34 — forked from JoaquimLey/github_multiple-accounts.md
How to Work with GitHub and Multiple Accounts

Step 1 - Create a New SSH Key

We need to generate a unique SSH key for our second GitHub account.

ssh-keygen -t rsa -C "your-email-address"

Be careful that you don't over-write your existing key for your personal account. Instead, when prompted, save the file as id_rsa_COMPANY. In my case, I've saved the file to ~/.ssh/id_rsa_work.

Step 2 - Attach the New Key

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@SofijaErkin
SofijaErkin / terminal_git_ssh_github.md
Last active June 2, 2023 06:10
Terminal git GitHub via SSH Or SSH git GitHub using terminal

SSH Manually

GitHub source project here

GitHub Gist source here.

1.Search "Terminal log in GitHub"

@SofijaErkin
SofijaErkin / block_websites.md
Last active May 27, 2022 05:30
Block Websites Or Bye liking Baidu websites

bye-liking-baidu-websites

Update 27 May 2022 EST 0:30 AM

Fix can't access twitter:

1.Refresh or execute computer terminal

2.Change local DNS servers TO Google DNS 8.8.8.8 and 8.8.4.4.

@SofijaErkin
SofijaErkin / git_command.md
Last active May 25, 2022 14:21
Git commands Or Commands for Git
@SofijaErkin
SofijaErkin / debug_build_roadmap.md
Last active December 29, 2021 05:27
Build Debug roadmap manually Or Manually build Debug Roadmap

Debug Manually

This is a roadmap of building debug via Vim and VS Code on mac, maybe include

GDB(Docker/Cloud services).

ABOUT LINUX(DOCKER/CLOUD)

Which Server System to choose? Windows, or Linux?

@SofijaErkin
SofijaErkin / vs-code_gist.md
Created January 2, 2022 10:42 — forked from nuovotaka/vs-code_gist.md
Visual Studio Code でGitHub Gistを使ってみた

##Visual Studio Code でGitHub Gistを使ってみた(Mac)

先ずは、Extension の Installの方法 SHIFT + COMMAND + PもしくはView > Command Palette...Command Paletteを表示させたら >installと入力します。

ext_install

Install Extensionsが選択されてext install となりますので必要な語彙を入力してみましょう。 大概のものは用意されていると思います。

@SofijaErkin
SofijaErkin / gist:e1fa6a6040779c1bc9ed4c8e7d447c18
Created January 9, 2022 07:25 — forked from jrwren/gist:1925688
llvm gcc vs. Apple LLVM 3.0 (clang)
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (
#ifdef __clang__
strong,
#endif
nonatomic) UIWindow *window;
@end
@SofijaErkin
SofijaErkin / debug_c++11_vscode_manually_mac.md
Last active March 8, 2023 09:36
Debugging C++11 with VSCode on Mac Or CodeLLDB debug C++11 with VSCode on Mac

Debug C++11 manually with VSCode(mac)

(ONLY FOR ONE SINGLE C/C++ FILE)

This is a Configuration for VSCode to debug C++11 on mac.

I'v used Clang++ to compile C++11, Code-Runner(VSCode Extension) to run C++11,

CodeLLDB(VSCode Extension) to debug C++11, C/C++ Clang Command Adopter

@SofijaErkin
SofijaErkin / clang_version_select_manually_mac.md
Last active January 13, 2022 14:13
Select embeded Xcode Clang or seprated Command-line-tools Clang manually on mac

I am an expert on this.

If you use "clang --version" to checkout the version of the clang compiler on your mac, then as you got that:

Apple LLVM version 9.1.0 (clang-902.0.39.1)

Target: x86_64-apple-darwin17.4.0