Skip to content

Instantly share code, notes, and snippets.

View nghiahsgs's full-sized avatar
🎯
Focusing

nghiahsgs nghiahsgs

🎯
Focusing
  • nghiahsgs
  • Việt Nam <3
View GitHub Profile
systemctl start sshd
systemctl enable sshd
sudo apt-get install openssh-server openssh-client
sudo apt update && sudo apt install telegram
sudo add-apt-repository ppa:atareao/telegram
sudo apt install ./google-chrome-stable_current_amd64.deb
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install teamviewer
sudo sh -c 'echo "deb http://linux.teamviewer.com/deb stable main" >> /etc/apt/sources.list.d/teamviewer.list'
sudo apt update
cd /tmp
wget https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc
sudo apt-key add TeamViewer2017.asc
@nghiahsgs
nghiahsgs / gist:fbd71beeabe11a980fba7bfa0f7ec7b7
Created January 30, 2021 02:49
kill process sleep mysql
mysql -u root -p -e "select concat('KILL ',id,';') into outfile '/var/lib/mysql-files/a.txt' from information_schema.processlist where Command = 'Sleep'"
mysql -u root -p -e "source /var/lib/mysql-files/a.txt"
rm -rf /var/lib/mysql-files/a.txt