Skip to content

Instantly share code, notes, and snippets.

@sambeirne
sambeirne / iso_3166.csv
Last active November 29, 2021 00:28
ISO 3166 Country Codes Comma-Separated Values
English Short Name French Short Name Alpha-2 Code Alpha-3 Code Numeric Code
Afghanistan Afghanistan (l') AF AFG 004
Albania Albanie (l') AL ALB 008
Algeria Algérie (l') DZ DZA 012
American Samoa Samoa américaines (les) AS ASM 016
Andorra Andorre (l') AD AND 020
Angola Angola (l') AO AGO 024
Anguilla Anguilla AI AIA 660
Antarctica Antarctique (l') AQ ATA 010
Antigua and Barbuda Antigua-et-Barbuda AG ATG 028
@sambeirne
sambeirne / deploy.md
Last active January 18, 2024 12:55
Deploy a Python WebSocket Server on Debian 10 ("buster") with systemd and nginx

Deploy a Python WebSocket Server on Debian 10 ("buster") with systemd and nginx

Following are configuration files and instructions for using systemd to create Unix domain sockets to handle incoming websocket requests. Websocket requests are proxied by nginx.

While these instructions are for Debian 10, they should largely work on other Linux distributions. It may be necessary to change paths and the nginx username, which is www-data when installed with the Debian package manager.

Install requirements

user@host:~$ sudo apt update
user@host:~$ sudo apt install nginx python3 wget