With Hetzner + Caddy + GoToSocial.
1. You probably already have some way to host content on the Internets, but if not, get a $5 Hetzner cloud server. I just put it on my home server, a old repurposed thin client.
2. Install Caddy.
#!/bin/bash | |
export QT_AUTO_SCREEN_SCALE_FACTOR=1 | |
export QT_SCREEN_SCALE_FACTORS=2 | |
/usr/bin/synclient TapButton3=2 & |
#!/bin/bash | |
wget -O pno_2022.zip \ | |
'https://geo.stat.fi/geoserver/wfs?service=WFS&version=2.0.0&request=GetFeature&typeName=postialue:pno_2022&outputFormat=SHAPE-ZIP' | |
unzip pno_2022.zip | |
ogr2ogr -f GeoJSON -s_srs pno_2022Polygon.prj -t_srs EPSG:4326 \ | |
-lco RFC7946=YES pno_2022.geojson.iso88591 pno_2022Polygon.shp | |
iconv -f iso-8859-15 -t utf-8 < pno_2022.geojson.iso88591 > pno_2022.geojson | |
pigz -k pno_2022.geojson |
[ | |
{ "key": "alt+1", "command": "workbench.action.openEditorAtIndex1" }, | |
{ "key": "alt+2", "command": "workbench.action.openEditorAtIndex2" }, | |
{ "key": "alt+3", "command": "workbench.action.openEditorAtIndex3" }, | |
{ "key": "alt+4", "command": "workbench.action.openEditorAtIndex4" }, | |
{ "key": "alt+5", "command": "workbench.action.openEditorAtIndex5" }, | |
{ "key": "alt+6", "command": "workbench.action.openEditorAtIndex6" }, | |
{ "key": "alt+7", "command": "workbench.action.openEditorAtIndex7" }, | |
{ "key": "alt+8", "command": "workbench.action.openEditorAtIndex8" }, | |
{ "key": "alt+9", "command": "workbench.action.openEditorAtIndex9" }, |
#!/bin/env python | |
import argparse | |
from typing import List | |
import numpy as np | |
import torch | |
import norfair | |
from norfair import Detection, Tracker, Video | |
#!/bin/env python | |
# journalctl -u wpa_supplicant -f -o json | python event_listener.py | |
import json | |
import sys | |
import subprocess | |
__BEACON_LOSS = 'CTRL-EVENT-BEACON-LOSS' |
CC=/usr/bin/clang-14 CXX=/usr/bin/clang++-14 \ | |
CFLAGS="-static --ld-path=/usr/bin/ld.lld-14" \ | |
CXXFLAGS="-static --ld-path=/usr/bin/ld.lld-14" \ | |
LDFLAGS="-static" \ | |
make -j16 |
<link rel="icon" href="data:;base64,iVBORw0KGgo="> |
#!/bin/sh | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10 --slave /usr/bin/gcov gcov /usr/bin/gcov-10 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /usr/bin/gcov gcov /usr/bin/gcov-9 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8 --slave /usr/bin/gcov gcov /usr/bin/gcov-8 |