In this scenario we are configuring two Pi-holes running on the same network. pihole0
is the main DNS server while pihole1
is the secondary.
pihole0
192.168.1.4
http://pi.hole0/admin/
pihole1
192.168.1.5
http://pi.hole1/admin/
Ubuntu Desktop 20.04 supports a single ZFS boot drive out of the box. I wanted a ZFS mirror, without going through an entirely manual setup of Ubuntu as described by OpenZFS
This adds a mirror to an existing Ubuntu ZFS boot drive after the fact.
ZFS requires native encryption to be added at pool / dataset creation. Ubuntu 21.04 supports this during installation. Whether these instructions are suitable for mirroring such a setup has not been tested. For Ubuntu 20.04, these instructions are not suitable for creating an encrypted ZFS boot disk, please use the full instructions linked above for that. You can, however, add an encrypted dataset after the fact: You could encrypt just the portion of your file system that holds secrets.
Note: If your use case is running docker instances, and not a full-fledged Ubuntu install, then take a look at TrueNAS SCALE
# https://github.com/K0p1-Git/cloudflare-ddns-updater | |
[Unit] | |
Description=Cloudflare DDNS updater | |
Wants=network-online.target | |
After=network-online.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/local/bin/cloudflare-ddns-updater.sh |
[Unit] | |
Description=Timer for Cloudflare DDNS updater | |
[Timer] | |
OnCalendar=*:0/5 | |
Persistent=true | |
[Install] | |
WantedBy=timers.target |
@-moz-document url(chrome://browser/content/browser.xhtml) { | |
/* tabs on bottom of window */ | |
/* requires that you set | |
* toolkit.legacyUserProfileCustomizations.stylesheets = true | |
* in about:config | |
*/ | |
#mainPopupSet ~ box { -moz-box-ordinal-group: 10; } | |
#titlebar { -moz-box-ordinal-group: 10; } | |
#urlbar { | |
top: unset !important; |
--- | |
For the window manager (here in bspwmrc): | |
# For java apps (Jetbrains) | |
export _JAVA_AWT_WM_NONREPARENTING=1 | |
wmname LG3D & | |
--- | |
In idea.properties of the JetBrains app (see URL): |
# /usr/bin/tic -x <this_file> | |
# Reconstructed via infocmp from file: /usr/share/terminfo/t/tmux-256color | |
tmux-256color|tmux with 256 colors, | |
OTbs, OTpt, am, hs, km, mir, msgr, xenl, AX, G0, | |
colors#256, cols#80, it#8, lines#24, pairs#32767, U8#1, | |
acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, | |
bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l, | |
clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=^M, | |
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, | |
cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, |
#! /bin/bash | |
if ! fgrep -qs 'ctrl:new_ctrl = +new_ctrl(new_ctrl)' /usr/share/X11/xkb/rules/evdev; then | |
sudo sed -i.bak '/ctrl:nocaps[[:blank:]]*=[[:blank:]]*+ctrl(nocaps)/a\ | |
ctrl:new_ctrl = +new_ctrl(new_ctrl) | |
' /usr/share/X11/xkb/rules/evdev | |
fi | |
cat <<'HEREDOC' |sudo tee /usr/share/X11/xkb/symbols/new_ctrl | |
partial modifier_keys |
This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).
Running this script should look the same in tmux as without.
curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{ | |
default: Turndown | |
}, { | |
default: Readability | |
}]) => { | |
/* Optional vault name */ | |
const vault = ""; | |
/* Optional folder name such as "Clippings/" */ |