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
PROTOC_ZIP=protoc-3.7.1-linux-x86_64.zip | |
curl -OL https://github.com/google/protobuf/releases/download/v3.7.1/$PROTOC_ZIP | |
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc | |
sudo unzip -o $PROTOC_ZIP -d /usr/local include/* | |
rm -f $PROTOC_ZIP |
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 | |
# Basic stuff I need to get all the other stuff | |
# I think git, curl, and python were in the container already | |
sudo dpkg-reconfigure tzdata | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get install apt-file | |
sudo apt-file update | |
sudo apt-get install python emacs-nox screen git ssh wget curl gnupg build-essential iputils-ping telnet netcat | |
# Web-dev packaging stuff |
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/sh | |
echo "******************" | |
echo "* En0 IP, Gateway, and Nameservers" | |
echo "******************" | |
echo | |
ifconfig en0 | grep -v inet6 | head -n 3 | |
netstat -nr | head -n 5 | |
scutil --dns | grep -i nameserver | |
echo |
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 | |
# to convert a bunch of html files to text, | |
# use Aarons excellent https://github.com/aaronsw/html2text ! | |
for i in *.html; do | |
echo $i | |
j=`echo $i | sed -e 's/ /_/g'` | |
echo $j | |
mv "$i" "$j" | |
html2text $j > `echo $j | sed -e 's/\.html/\.txt/g'` | |
done |
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 | |
# remove_evil_ubuntu_quantal.sh | |
if [ $(whoami) != "root" ]; then | |
echo "You need to run this script as a super user." | |
echo "Use 'sudo ./$script_name 2>&1 | tee log.txt' then enter your password when prompted. exorcism results will be logged to log.txt." | |
exit 1 | |
fi | |
echo "This script is going to remove bizarre spyware and upgrade you to the full Gnome3 environment. You won't be using unity any longer." | |
echo "Did you read and understand this code snippet before you tried to run it? (y/n)" |