Skip to content

Instantly share code, notes, and snippets.

View Mahyar24's full-sized avatar
🇺🇦

Mahyar Mahyar24

🇺🇦
View GitHub Profile
@okaufmann
okaufmann / README.md
Created December 18, 2019 18:27
Fix `warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)` error on Raspberry PI

Run the following:

echo "LC_ALL=en_US.UTF-8" | sudo tee -a /etc/environment > /dev/null
echo "en_US.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen > /dev/null
echo "LANG=en_US.UTF-8" | sudo tee /etc/locale.conf > /dev/null
sudo locale-gen en_US.UTF-8
@ssskip
ssskip / ISO3166-1.alpha2.json
Last active July 25, 2024 11:54
json of country codes (ISO 3166-1 alpha-2) and corresponding names
{
"AF": "Afghanistan",
"AX": "Aland Islands",
"AL": "Albania",
"DZ": "Algeria",
"AS": "American Samoa",
"AD": "Andorra",
"AO": "Angola",
"AI": "Anguilla",
"AQ": "Antarctica",
@sunng87
sunng87 / lighttpd.conf
Created May 28, 2011 01:00
Share directory with lighttpd
server.document-root="/your/path/to/share"
server.port = 8099
#server.bind = "192.168.1.100"
dir-listing.activate = "enable"