Skip to content

Instantly share code, notes, and snippets.

@jasonboukheir
jasonboukheir / git
Last active March 29, 2024 18:12
git when in unix, git.exe when in wsl
#!/bin/sh
if pwd | grep /mnt/c > /dev/null; then
exec git.exe "$@"
else
exec /usr/bin/git "$@"
fi
@coltenkrauter
coltenkrauter / fix-wsl2-dns-resolution
Last active May 7, 2024 19:33
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.
@pigreco
pigreco / pro_memoria_andy.txt
Last active May 13, 2019 07:13
Elenco blog post promessi da wikiAndy
Blog post in sospeso
1. compilare spatialite 5 con librttopo su GNU/Linux;
2. script miller per estrapolare dati su file csv con migliaia di campi;
3. visidata per estrapolare dati su file csv con migliaia di campi;
4. preparare miniguida per creare un sito Read The Docs basato su un repo in markdown #HfcQGIS;
5. lancio tansignari.opendatasicilia.it;
6. lancio #tw2rap;
7. Fare un filtro regex - per colonna - su un CSV da 4.8 GB in 8 secondi, con un PC "normale" (https://www.facebook.com/andreaborruso/posts/10156446990603163);
8. tutorial sui dati ATM Catania - VisiData, Miller https://github.com/opendatasicilia/tansignari/issues/46#issuecomment-477606686
@killercup
killercup / pandoc.css
Created July 3, 2013 11:31
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}