Skip to content

Instantly share code, notes, and snippets.

View saby22's full-sized avatar
🏠
Working from home

Sabyasachi Karmakar saby22

🏠
Working from home
View GitHub Profile
@Dhaneshmonds
Dhaneshmonds / IndianStatesDistricts.json
Last active November 9, 2023 22:22
Indian states, capitals and districts
{
"states": [
{
"id": "1",
"type": "Union Territory",
"capital": "Port Blair",
"code": "AN",
"name": "Andaman and Nicobar Islands",
"districts": [
{
@coltenkrauter
coltenkrauter / fix-wsl2-dns-resolution
Last active June 19, 2024 12:38
Fix DNS resolution in WSL2
More recent resolution:
1. cd ~/../../etc (go to etc folder in WSL).
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line).
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line).
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian).
5. cd ~/../../etc (go to etc folder in WSL).
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file).
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and
secondary.
@yinzara
yinzara / github_bitbucket_multiple_ssh_keys.md
Last active June 21, 2024 07:50
Managing SSH keys and repo cloning using multiple accounts on GitHub and BitBucket

Why Multiple SSH keys?

There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket

You may use the same computer for work and personal development and need to separate your work.

When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.

You may have different projects you're working on where you would like to segregate your access.

CREATE

Clone an existing repository

$ git clone ssh://user@domain.com/repo.git

Create a new local repository

$ git init

LOCAL CHANGES

@shubhamjain
shubhamjain / IndianStates.json
Last active November 17, 2023 05:11
Indian States and Union Territories in JSON format
{
"AN":"Andaman and Nicobar Islands",
"AP":"Andhra Pradesh",
"AR":"Arunachal Pradesh",
"AS":"Assam",
"BR":"Bihar",
"CG":"Chandigarh",
"CH":"Chhattisgarh",
"DN":"Dadra and Nagar Haveli",
@digitaljhelms
digitaljhelms / gist:4287848
Last active June 22, 2024 10:39
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch