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
$ sudo tcpdump -n -i eth0 'tcp[tcpflags] & (tcp-syn|tcp-fin) != 0 and ( dst host example.com || dst host dns.google)' |
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
--- /etc/systemd/logind.conf.orig 2020-07-09 03:59:14.000000000 +0900 | |
+++ /etc/systemd/logind.conf 2020-12-05 13:43:13.737762761 +0900 | |
@@ -22,6 +22,7 @@ | |
#HandleSuspendKey=suspend | |
#HandleHibernateKey=hibernate | |
#HandleLidSwitch=suspend | |
+HandleLidSwitch=ignore | |
#HandleLidSwitchDocked=ignore | |
#PowerKeyIgnoreInhibited=no | |
#SuspendKeyIgnoreInhibited=no |
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
gsettings set org.gnome.desktop.interface clock-show-date true |
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
ssh -t -R 1080 remote-host "sudo env http_proxy=socks5h://localhost:1080 apt update" |
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
Defaults timestamp_timeout = 1440 |
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
#!/bin/bash | |
ver="0.11.11" | |
test -t 1 && opt="-it" | |
exec docker run --rm -u $(id -u) -v $(pwd):/app/ -w /app/ $opt hashicorp/terraform:$ver "$@" |
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
#!/bin/bash | |
ver="v1.7.1" | |
dir="$(dirname `readlink -f $0`)" | |
cmd=$dir/mitamae-x86_64-linux-$ver | |
src=https://github.com/itamae-kitchen/mitamae/releases/download/$ver/mitamae-x86_64-linux | |
test -x $cmd || curl -sL $src -o $cmd && chmod +x $cmd | |
exec $cmd "$@" |
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
#!/bin/bash | |
sudo systemctl stop rpcbind | |
sudo systemctl disable rpcbind | |
sudo systemctl mask rpcbind | |
sudo systemctl stop rpcbind.socket | |
sudo systemctl disable rpcbind.socket | |
sudo systemctl status rpcbind |
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
#!/bin/bash | |
sudo yum -y install epel-release | |
sudo yum -y install snapd | |
sudo systemctl enable snapd | |
sudo systemctl start snapd | |
sleep 5 | |
sudo ln -s /var/lib/snapd/snap /snap | |
sudo snap install microk8s --classic | |
sleep 5 |
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
#!/bin/sh | |
sudo yum -y install -y yum-utils \ | |
device-mapper-persistent-data \ | |
lvm2 | |
sudo yum-config-manager \ | |
--add-repo \ | |
https://download.docker.com/linux/centos/docker-ce.repo |
NewerOlder