Skip to content

Instantly share code, notes, and snippets.

View sephynox's full-sized avatar

Tanveer Wahid sephynox

View GitHub Profile
@coltenkrauter
coltenkrauter / fix-wsl2-dns-resolution
Last active October 16, 2024 12:21
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.
@lukas-h
lukas-h / license-badges.md
Last active October 18, 2024 16:36
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@vtanathip
vtanathip / A-way-to-initial-mongodb-data-with-grunt.js
Last active July 1, 2017 07:35
This is the way to insert initial data into MongoDB via grunt task. Thx to this plugin: https://github.com/sindresorhus/grunt-shell
//this is json array that MongoDB will easier read and import into it
//for the record if you didn't use json array MongoDB will read data per line so don't forget to re-format it
[
{ name: "Widget 1", desc: "This is Widget 1" },
{ name: "Widget 2", desc: "This is Widget 2" }
]