I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.
if ufw is not installed by default be sure to install it first.
"name","iso_name","iso2","iso3","numcode" | |
"Antigua and Barbuda","ANTIGUA AND BARBUDA","AG","ATG",28 | |
"Bosnia and Herzegovina","BOSNIA AND HERZEGOVINA","BA","BIH",70 | |
"Cocos (Keeling) Islands","COCOS (KEELING) ISLANDS","CC","\N","\N" | |
"Congo, the Democratic Republic of the","CONGO, THE DEMOCRATIC REPUBLIC OF THE","CD","COD",180 | |
"Cote D'Ivoire","COTE D'IVOIRE","CI","CIV",384 | |
"Fiji","FIJI","FJ","FJI",242 | |
"French Southern Territories","FRENCH SOUTHERN TERRITORIES","TF","\N","\N" | |
"Heard Island and Mcdonald Islands","HEARD ISLAND AND MCDONALD ISLANDS","HM","\N","\N" | |
"Holy See (Vatican City State)","HOLY SEE (VATICAN CITY STATE)","VA","VAT",336 |
openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem | |
chmod 600 id_rsa.pem |
import time | |
import psycopg2 | |
from iter_file import IteratorFile | |
conn = psycopg2.connect(host="localhost", database="test") | |
# args = [(1,2), (3,4), (5,6)] | |
args = [(i,i+1) for i in range(1,1*10**4,2)] |
Follow this tutorial until step five-ish
If the test does not work because of "public key" issues, run sudo passwd sshtunnel
on the server to change the password of the user. (If sudo tail -f /var/log/auth.log
says the account is locked, this will be the issue.)
authorized_keys
should look a little like:
#!/boot/bzImage | |
# Linux kernel userspace initialization code, translated to bash | |
# (Minus floppy disk handling, because seriously, it's 2017.) | |
# Not 100% accurate, but gives you a good idea of how kernel init works | |
# GPLv2, Copyright 2017 Hector Martin <marcan@marcan.st> | |
# Based on Linux 4.10-rc2. | |
# Note: pretend chroot is a builtin and affects the current process | |
# Note: kernel actually uses major/minor device numbers instead of device name |
*update: TBC, but this new might affect how easy it is to use this technique past August 2024: Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August
This gist, based in part on a gist by Brian Hartvigsen, allows you to export from Authy your TOTP tokens you have stored there.
Those can be "standard" 6-digits / 30 secs tokens, or Authy's own version, the 7-digits / 10 secs tokens.
Platform server side static redirects comparison
Feature | Gitlab | Cloudflare | Netlify | Example |
---|---|---|---|---|
Redirects | ✔️ Yes 200 , 301 , 302 |
✔️ Yes 301 , 302 , 303 , 307 , 308 |
✔️ Yes | /wardrobe.html /narnia.html 302 |
Rewrites | ✔️ Yes | ✔️ Yes | ✔️ Yes | /* / 200 |
Rewrites (other than 200 ) |
❌ No | ❌ No | ✔️ Yes | /en/* /en/404.html 404 |
Splats | ✔️ Yes | ✔️ Yes | ✔️ Yes | /news/* /blog/:splat |
Placeholders | ✔️ Yes | ✔️ Yes | ✔️ Yes | /news/:year/:month/:date /blog-:year-:month-:date.html |
Query parameters | ❌ No | ❌ No | ✔️ Yes | /store id=:id /blog/:id 301 |