Skip to content

Instantly share code, notes, and snippets.

View akshilshah's full-sized avatar
⚔️
Exploring Unexplored Path

Akshil akshilshah

⚔️
Exploring Unexplored Path
View GitHub Profile
@akshilshah
akshilshah / mac-disable-office-365-update
Created February 16, 2022 03:56
Mac Office 365 Update Disable
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"
@akshilshah
akshilshah / ec2-userdata-logs.sh
Created December 15, 2020 06:28
Watch ec2 user data logs
# 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
@akshilshah
akshilshah / python-2.7-purge.sh
Created October 4, 2020 05:24
Remove python 2.7 from ubuntu 18.04
# 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
# 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
# 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 -
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
yes | apt install nodejs
@akshilshah
akshilshah / autoinstall-deluge.sh
Last active August 7, 2020 03:55
Use to install deluge on ubuntu 18.04
# 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