Skip to content

Instantly share code, notes, and snippets.

View locnt19's full-sized avatar
🦝

Loc Nguyen locnt19

🦝
View GitHub Profile
@locnt19
locnt19 / Install MongoShell on Windows 11
Created September 19, 2022 10:14
Install MongoShell on Windows 11
Install from MSI
1. Open the MongoDB Shell download page: https://www.mongodb.com/try/download/shell?jmp=docs
2. In the Platform dropdown, select Windows 64-bit (8.1+) (MSI)
3. Click Download.
4. Double-click the installer file.
5. Follow the prompts to install mongosh.
a. Open the Control Panel.
b. In the System and Security category, click System.
c. Click Advanced system settings. The System Properties modal displays.
d. Click Environment Variables.
@locnt19
locnt19 / Git commands
Last active May 3, 2024 03:00
Useful Git commands.
# SETTING GLOBAL INFO:
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
# MOVE/RENAME FILE:
git mv <source> <directory>/<new_source_name>
# SEARCH BRANCH:
git branch -r | grep -i <query>
# DOWNLOAD VMWARE WORKSTATION 16
- https://download.com.vn/vmware-workstation-8587
# UNLOCK MACOS OPTION ON VMWARE WORKSTATION 16
- Download: https://github.com/BDisp/unlocker.git
- Tutorial: http://stackoverflow.com/a/66080190
# SERIAL KEY VMWARE WORKSTATION 16
- Serial key: https://github.com/ektajarwal1610/vmware-workstation16-pro-license-keys.git
@locnt19
locnt19 / migrate_repo.sh
Created October 15, 2021 14:37 — forked from mariozig/migrate_repo.sh
Migrate repo from GitLab to GitHub Full blog post @ http://ruby.zigzo.com/2015/03/23/moving-from-gitlab-to-github/
# Assume we are in your home directory
cd ~/
# Clone the repo from GitLab using the `--mirror` option
$ git clone --mirror git@your-gitlab-site.com:mario/my-repo.git
# Change into newly created repo directory
$ cd ~/my-repo.git
# Push to GitHub using the `--mirror` option. The `--no-verify` option skips any hooks.