Last active
March 8, 2022 02:58
-
-
Save elcritch/462c89c345c52381a693e901ad54f6ad to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Useful helpers for manjaro | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
This file contains hidden or 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://wiki.kobol.io/helios64/software/zfs/docker-zfs/ | |
sudo zfs create -o mountpoint=/var/lib/docker mypool/docker-root | |
sudo zfs create -o mountpoint=/var/lib/docker/volumes mypool/docker-volumes | |
sudo chmod 700 /var/lib/docker/volumes | |
sudo zfs set com.sun:auto-snapshot=false mypool/docker-root | |
sudo zfs set com.sun:auto-snapshot=true mypool/docker-volumes |
This file contains hidden or 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
cat > /etc/X11/xorg.conf.d/40-mouse.conf << EOF | |
Section "InputClass" | |
Identifier "system-mouse" | |
MatchIsPointer "on" | |
Option "ScrollMethod" "button" | |
Option "ScrollButton" "2" | |
EndSection | |
EOF |
This file contains hidden or 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
touch ~/.tmux.conf | |
cat > ~/.tmux.conf << EOF | |
set -g mouse on | |
bind-key -n C-l if-shell -F '#{alternate_on}' 'send-keys C-l' 'send-keys -R C-l; clear-history' | |
EOF |
This file contains hidden or 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
pamu2fcfg -o pam://`hostname` -i pam://`hostname` -n >> ~/.config/Yubico/u2f_keys | |
# For 2FA check with passwd backup: | |
echo "auth sufficient pam_u2f.so origin=pam://$(hostname) appid=pam://$(hostname)" | |
# For blinky check w/ passwd use: | |
echo "auth sufficient pam_u2f.so cue origin=pam://$(hostname) appid=pam://$(hostname)" | |
# For debug use: | |
echo "auth sufficient pam_u2f.so debug origin=pam://$(hostname) appid=pam://$(hostname)" | |
## Configure Auth Systems: | |
# One touch kde policy-kit dialogs: | |
sudo vim /etc/pam.d/polkit-1 | |
# One touch sudo: | |
sudo vim /etc/pam.d/sudo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment