Skip to content

Instantly share code, notes, and snippets.

@brndnsmth
brndnsmth / multiple_git_configs.md
Created September 11, 2023 14:11
Use Multiple Git Configs on One Computer

Use Multiple Git Configs on One Computer

Create a global Git config

$HOME/.gitconfig

[includeIf "gitdir:~/personal/"]
  path = ~/.gitconfig-personal
[includeIf "gitdir:~/work/"]
@brndnsmth
brndnsmth / explorer_wsl.md
Last active September 11, 2023 14:13
Open the Current Directory in Windows Explorer from WSL

Opening the Current Directory in Windows Explorer from WSL

If you're working within the Windows Subsystem for Linux (WSL) and need to open the current directory in Windows Explorer, you can use the following commands. WSL automatically sets the Windows path for you.

explorer.exe .

This command will launch Windows Explorer with the current directory open.

Create an Alias for Convenience:

@brndnsmth
brndnsmth / nvmCommands.js
Created September 10, 2023 19:26
Useful NVM commands / cheatsheet
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list available versions of node
nvm ls-remote
// list latest versions of node
@brndnsmth
brndnsmth / private_fork.md
Created July 30, 2023 18:31 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git