Skip to content

Instantly share code, notes, and snippets.

@theel0ja
theel0ja / nginx.conf
Created February 13, 2019 06:33
/etc/nginx/sites-available/pi.hole
server {
listen 80;
listen [::]:80;
server_name pi.hole;
allow 192.0.2.15;
deny all;
root /var/www/html;
@theel0ja
theel0ja / tmux_on_login.sh
Created April 21, 2019 19:48
Tmux on shell login
# https://wiki.archlinux.org/index.php/Tmux#Start_tmux_on_every_shell_login
# https://stackoverflow.com/a/49134974
# https://gist.github.com/theel0ja/3d3c1de607702b87292687d27f99141b
# If not running interactively, do not do anything
[[ $- != *i* ]] && return
# You can replace 0 with the session name you prefer such as "onLogin" (without parenthesis)
[[ -z "$TMUX" ]] && exec tmux new -A -s 0
const index = require("./index");
(async () => {
const results = {};
results.hstsPreloadOrg = await index.lookup("hstspreload.org", "chromium.hstspreload.lelux.fi", {
servers: ["127.0.0.1"],
includeTxt: false,
});