This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(asset-paths) { | |
path *.bmp *.jpg *.png *.svg *.gif *.pdf *.css *.js | |
} | |
(cache) { | |
@content { | |
not { | |
import asset-paths | |
} | |
} | |
header @content cache-control max-age=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{- $markdown := .Inner | markdownify -}} | |
{{ if not ( findRE "<[h|p][^>]*>" $markdown ) }} | |
<p>{{ $markdown }}</p> | |
{{ else }} | |
{{ $markdown }} | |
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
smtp | |
authentication | |
TLS 1.2 encryption |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(log) { | |
log { | |
output stdout | |
format console | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(reverse_proxy_insecure) { | |
reverse_proxy * { | |
to {args.0} | |
transport http { | |
tls | |
tls_insecure_skip_verify | |
read_buffer 8192 | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://serverfault.com/a/575946/203448 | |
emergency_restart_threshold = 3 | |
emergency_restart_interval = 20s | |
process_control_timeout = 5s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/mysql/mysql.conf.d/mysql.cnf | |
[mysqld] | |
sql_mode = ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl pkcs12 -export -out certificate.p12 -inkey privkey.pem -in fullchain.pem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hdiutil convert -format UDRW -o /path/to/target /path/to/source.iso | |
# ext should be .img, not .dmg | |
mv /path/to/target.dmg /path/to/target.img | |
diskutil unmountDisk /dev/diskN | |
sudo dd if=/path/to/downloaded.img of=/dev/rdiskN bs=1m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.noscroll { | |
overflow: hidden; | |
} | |
.overlay { | |
position: fixed; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
overflow-y: scroll; |