Skip to content

Instantly share code, notes, and snippets.

View ehsangh's full-sized avatar
💭
typing...

Ehsan G ehsangh

💭
typing...
View GitHub Profile
@ehsangh
ehsangh / softether.sh
Created December 10, 2019 14:29 — forked from amanjuman/softether.sh
Install softether vpn server on ubuntu 16.04+
#!/usr/local/env bash
# Register digitalocean with free credit https://m.do.co/c/4879bb02d178
# Create vps with 5usd price
if [ "$(whoami)" != "root" ]; then
SUDO=sudo
fi
# Update system
${SUDO} apt-get update && ${SUDO} apt-get -y upgrade
@ehsangh
ehsangh / SoftEther VPN for Ubuntu 16.04 & 18.04
Created December 10, 2019 14:29 — forked from amanjuman/SoftEther VPN for Ubuntu 16.04 & 18.04
SoftEther VPN for Ubuntu 16.04 & 18.04
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove -y
apt-get -y install build-essential wget curl gcc make wget tzdata git libreadline-dev libncurses-dev libssl-dev zlib1g-dev
wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.31-9727-beta/softether-vpnserver-v4.31-9727-beta-2019.11.18-linux-x64-64bit.tar.gz
tar xzf softether-vpnserver-v4.31-9727-beta-2019.11.18-linux-x64-64bit.tar.gz && rm softether-vpnserver-v4.31-9727-beta-2019.11.18-linux-x64-64bit.tar.gz
cd vpnserver && sudo make
cd ..
sudo mv vpnserver /usr/local && cd /usr/local/vpnserver/
sudo chmod 600 *
@ehsangh
ehsangh / SoftEther VPN Server on CentOS
Created December 10, 2019 14:29 — forked from amanjuman/SoftEther VPN Server on CentOS
SoftEther VPN Server on CentOS
yum update -y && yum upgrade -y && yum install gcc nano wget curl -y
yum groupinstall "Development Tools" -y
wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.29-9680-rtm/softether-vpnserver-v4.29-9680-rtm-2019.02.28-linux-x64-64bit.tar.gz
tar xzvf softether-vpnserver-v4.29-9680-rtm-2019.02.28-linux-x64-64bit.tar.gz && rm -rf softether-vpnserver-v4.29-9680-rtm-2019.02.28-linux-x64-64bit.tar.gz
cd vpnserver && make
cd .. && sudo mv vpnserver /usr/local && cd /usr/local/vpnserver
sudo chmod 600 *
sudo chmod 700 vpncmd vpnserver
@ehsangh
ehsangh / heroku_deployment.md
Created February 20, 2019 01:15 — forked from matt297/heroku_deployment.md
Lighthouse Labs - Intro to Web Dev - W6D2 - Deploying Finstagram to Heroku

Deploying Finstagram to Heroku

These instructions will help you deploy your Finstagram app to Heroku (a web hosting service), so that the entire internet will be able to see and interact with your application! Before we get to deployment though, we need to make sure a couple of our files are setup properly.

Pre-Deployment: Edit Your Gemfile

Ensure your Gemfile file contains the following code (should match exactly).

source "https://rubygems.org"

gem 'rake'
gem 'activesupport'
@ehsangh
ehsangh / user_data.sh
Created February 8, 2019 01:43 — forked from omenking/user_data.sh
Super High Value Plus Ruby on Rails Amazon Linux 2
#!/usr/bin/env bash
su ec2-user
sudo yum -y update
sudo yum install -y git redhat-rpm-config sqlite-devel
# Install RVM and Ruby
# KEY1 and KEY1 grab from: https://rvm.io/
gpg --keyserver hkp://keys.gnupg.net --recv-keys KEY1 KEY2
curl -sSL https://get.rvm.io | bash -s stable