CreateLink

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 ウェブストア

vimium

custom key mapping

# for Right-hand
map \ goBack
map _ restoreTab
unpam u

unmap j
unmap k
unmap J
unmap K
map j scrollPageDown
map k scrollPageUp
map J scrollDown
map K scrollUp

unmap h
unmap l
unmap H
unmap L
map h goBack
map l goFront
map H scrollLeft
map L scrollRight

# for Left-hand
map e scrollPageUp
map E scrollUp
map D scrollDown
map a goBack
map s goForward

sudoers

echo $USER ALL=NOPASSWD: ALL | sudo tee /etc/sudoers.d/$USER

chrony

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

suspendさせないっ!

Ubuntu server 20.04

Prevent laptop from sleep after closing lid - antiX-forum

# /etc/elogind/logind.conf
HandleLidSwitch=ignore

CLIだっ

sudo systemctl set-default multi-user
sudo reboot

podman 入れたあと

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

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

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS