This file contains hidden or 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
sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && \ | |
sudo locale-gen en_PH.UTF-8 && \ | |
sudo apt-get install ntp -y && \ | |
sudo apt-get install htop -y && \ | |
sudo apt-get install git -y | |
sudo dpkg-reconfigure tzdata | |
sudo fallocate -l 4G /swapfile && \ | |
sudo chmod 600 /swapfile && \ |
This file contains hidden or 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
sudo timedatectl set-timezone Asia/Manila | |
sudo yum install ntp && \ | |
sudo systemctl start ntpd && \ | |
sudo systemctl enable ntpd && \ | |
sudo service ntpd restart | |
# Setup Swapfile | |
sudo dd if=/dev/zero of=/swapfile count=4096 bs=1MiB && \\ | |
sudo chmod 600 /swapfile && sudo mkswap /swapfile && \\ |
This file contains hidden or 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
set nocompatible | |
" Syntax Highlighting | |
filetype indent plugin on | |
set syntax=on | |
" Use case insesitive search | |
set ignorecase | |
set smartcase |
This file contains hidden or 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
sudo fallocate -l 4G /swapfile && \ | |
sudo chmod 600 /swapfile && \ | |
sudo mkswap /swapfile && \ | |
sudo swapon /swapfile && \ | |
sudo sh -c 'echo "/swapfile none swap sw 0 0" >> /etc/fstab' |
This file contains hidden or 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
# Install GDAL python libraries on Virtualenv. Tested in Ubuntu 14.04 | |
sudo apt-get install gdal-bin | |
sudo apt-get install libgdal-dev libgdal1h | |
pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal" |
This file contains hidden or 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 | |
set -e | |
# ---------------------------------------------------------------------------------------- | |
# Installs OpenCV 2.4.11 | |
# Note: Tested on Ubuntu 14.04 | |
# | |
# Resources: | |
# | |
# http://www.pyimagesearch.com/2015/06/22/install-opencv-3-0-and-python-2-7-on-ubuntu/ |
This file contains hidden or 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
location /testapp/ { | |
rewrite ^/testapp/(.*) /$1 break; | |
proxy_redirect off; | |
proxy_pass http://127.0.0.1:9090; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $remote_addr; | |
} |
This file contains hidden or 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
set nocompatible | |
" Syntax Highlighting | |
filetype indent plugin on | |
set syntax=on | |
" Use case insesitive search | |
set ignorecase | |
set smartcase |
This file contains hidden or 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
sudo apt-get -y update | |
sudo apt-get -y install git | |
sudo add-apt-repository -y ppa:chris-lea/node.js | |
sudo apt-get -y update && sudo apt-get install -y nodejs | |
sudo apt-get -y install mongodb | |
curl https://install.meteor.com/ | sh | |
git clone https://github.com/RocketChat/Rocket.Chat.git | |
cd Rocket.Chat |
This file contains hidden or 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
apt-get -y update | |
# Download Zulip | |
cd /root | |
wget https://www.zulip.com/dist/releases/zulip-server-1.3.6.tar.gz | |
echo "665a1e6ef840b3a86cc18946429ad1c0033d27a2 zulip-server-1.3.6.tar.gz" | sha1sum -c | |
tar -xf zulip-server-1.3.6.tar.gz | |
mv zulip-server-1.3.6 zulip | |
# Install SSL Certs |