Skip to content

Instantly share code, notes, and snippets.

@zmike808
Last active May 2, 2019 19:03
Show Gist options
  • Save zmike808/5428cd8f59379f6a84624d68c7b9adce to your computer and use it in GitHub Desktop.
Save zmike808/5428cd8f59379f6a84624d68c7b9adce to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
set -ex
cd /root/
installRequirements() {
apt-get update
apt-get install \
software-properties-common \
git \
build-essential \
libssl-dev \
libffi-dev \
bind9-host \
zip \
zsh \
jq -y
}
setupProject() {
git clone https://github.com/zmike808/SemEval2019-OffensiveTweetClassification.git cw3
cd cw3/task_A_Classification/
curl https://raw.githubusercontent.com/matthuisman/files.matthuisman.nz/master/gdrivedl | bash -s https://drive.google.com/open\?id\=1FubOTE-aU2QZTRt-tGnlH7mxuNinYXcx tweets27b.zip
unzip tweets27b.zip
python -m nltk.downloader all
python -m nltk.downloader all -d ./
}
installExtra(){
conda install --yes tensorflow-gpu
pip install symspellpy
pip install nltk
}
setZsh() {
chsh -s $(which zsh)
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
}
finalUpdates() {
conda update anaconda --all --yes
conda update --all --yes
apt dist-upgrade -y
}
installRequirements
installExtra
setupProject
setZsh
finalUpdates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment