This file contains 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 | |
echo -ne '\n' | sudo add-apt-repository ppa:deluge-team/ppa | |
yes y | sudo apt install deluged deluge-webui | |
sudo adduser --system --group deluge | |
sudo gpasswd -a root deluge | |
echo '[Unit] | |
Description=Deluge Bittorrent Client Daemon | |
After=network-online.target |
This file contains 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
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - | |
yes | apt install nodejs |
This file contains 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
# Source: https://docs.docker.com/engine/install/ubuntu/ | |
sudo apt-get update | |
yes | sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg-agent \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
This file contains 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
# Source : https://www.digitalocean.com/community/tutorials/how-to-install-go-on-ubuntu-18-04 | |
cd ~ && | |
curl -O https://dl.google.com/go/go1.10.3.linux-amd64.tar.gz && | |
tar xvf go1.10.3.linux-amd64.tar.gz && | |
sudo chown -R root:root ./go | |
sudo mv go /usr/local && | |
echo "export GOPATH=$HOME/work" >> ~/.profile && | |
echo "export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin" >> ~/.profile && | |
source ~/.profile |
This file contains 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
# Source: https://stackoverflow.com/questions/44602191/how-to-completely-uninstall-python-2-7-13-on-ubuntu-16-04 | |
# Remove python2 | |
sudo apt purge -y python2.7-minimal && | |
sudo ln -s /usr/bin/python3 /usr/bin/python && | |
sudo apt install -y python3-pip && | |
sudo ln -s /usr/bin/pip3 /usr/bin/pip |
This file contains 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
# Source: https://stackoverflow.com/questions/15904095/how-to-check-whether-my-user-data-passing-to-ec2-instance-working-or-not | |
tail -f /var/log/cloud-init.log | |
tail -f /var/log/cloud-init-output.log |
This file contains 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
Word: | |
sudo /usr/bin/touch -mt $(date "+%Y%m%d0001") "/Applications/Microsoft Word.app/Contents/Info.plist" | |
Excel: | |
sudo /usr/bin/touch -mt $(date "+%Y%m%d0001") "/Applications/Microsoft Excel.app/Contents/Info.plist" | |
Powerpoint: | |
sudo /usr/bin/touch -mt $(date "+%Y%m%d0001") "/Applications/Microsoft Powerpoint.app/Contents/Info.plist" |