2-comment # %title%%newline%# %url%%newline% 2-lines %title%%newline%%url%%newline% 1-line %title% %url%%newline% pukiwiki [[%title%>%url%]]%newline% Title %title%%newline% 2-semiColon ; %title%%newline%; %url%%newline% 2-apos ' %title%%newline%' %url%%newline%
参考:
Create Link - Chrome ウェブストア
custom key mapping
# Right-hand
map j scrollPageDown
map k scrollPageUp
map J scrollDown
map K scrollUp
map u previousTab
map i nextTab
map ; removeTab
map + restoreTab
map h goBack
map l goFront
map H scrollLeft
map L scrollRight
# Left-hand
map e scrollPageUp
map E scrollUp
map D scrollDown
map a goBack
map s goForward
# disable search
unmap /
unmap n
unmap N
echo $USER ALL=NOPASSWD: ALL | sudo tee /etc/sudoers.d/$USER
if [ -d /etc/chrony/sources.d ]; then
conf=/etc/chrony/sources.d/japan.sources
else
conf=/etc/chrony/chrony.conf
fi
sudo tee -a "$conf" <<'...'
server ntp.nict.jp iburst
server ntp.jst.mfeed.ad.jp iburst
server ntp.ring.gr.jp iburst
...
sudo systemctl restart chrony
sleep 5
chronyc sources
Ubuntu server 20.04
sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
AntiX
# /etc/elogind/logind.conf
HandleLidSwitch=ignore
systemd で電源管理をしているもの(Arch Linux, etc.)
# /etc/systemd/logind.conf
HandleLidSwitch=ignore
sudo systemctl set-default multi-user
sudo reboot
conf_user="$HOME/.config/containers/registries.conf"
[ -d "${conf_user%/*}" ] || mkdir -p "${conf_user%/*}"
cat <<'...' >"$conf_user"
unqualified-search-registries = ["docker.io"]
...
# シンプル版
PS1="${PS1%\\\$*}\\n\\$ "
# 既に改行が含まれているときは何もしない版
printf %s "$PS1" | grep -qF '\n' || PS1="${PS1%\\\$*}\\n\\$ "
ssh-keygen -t rsa -b 2048 -C "$(hostname -s)-$(date +%Y%m%d-%H%M)" -N '' -f ~/.ssh/id_rsa
New-NetFirewallRule -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
sudo tee /etc/vbox/networks.conf <<'...'
* 10.0.0.0/8 192.168.0.0/16 172.16.0.0/16
...