When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
""" | |
This module provides very simple Django middleware that sleeps on every request. | |
This is useful when you want to simulate slow response times (as might be | |
encountered, say, on a cell network). | |
To use, add this middleware, and add a value for SLEEP_TIME to your settings. | |
Possible future feature: Look for an X-Django-Sleep header on each request, | |
to let the client specify per-request sleep time. |
# convert createdb's template to UTF8 | |
echo "UPDATE pg_database SET datistemplate = FALSE WHERE datname = 'template1';" | psql -U postgres | |
echo "drop database template1;" | psql -U postgres | |
echo "create database template1 with template = template0 encoding = 'UTF8';" | psql -U postgres | |
echo "update pg_database set datacl='{=c/postgres,postgres=CTc/postgres}' where datname='template1';" | psql -U postgres | |
echo "UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'template1';" | psql -U postgres | |
# export and reimport as UTF8 | |
pg_dump -U uniiverse --encoding utf8 mydatabase -f mydatabase_utf8.sql | |
createdb -U postgres -E utf8 mydatabase_utf8 |
job "metrics" { | |
datacenters = ["dc1"] | |
group "prometheus" { | |
network { | |
mode = "bridge" | |
} | |
service { | |
name = "prometheus" |
job "homebridge" { | |
datacenters = ["dc1"] | |
group "server" { | |
network { | |
port "http" { | |
to = 8581 | |
} | |
} |
job "pi-hole" { | |
datacenters = ["homelab"] | |
type = "system" | |
constraint { | |
attribute = "${attr.kernel.name}" | |
value = "linux" | |
} | |
constraint { |