Skip to content

Instantly share code, notes, and snippets.

window && (window.__markets = [
{
name: 'markets.main.pass'
group_id: 1
template: 'simple_options_list'
rows: [
{ title: 'markets.main.pass_home', name: 'coeff_QS_1'}
{ title: 'markets.main.pass_away', name: 'coeff_QS_2'}
]
}
c.Writer.Header().Set("Access-Control-Allow-Origin", "*")
c.Writer.Header().Set(
"Access-Control-Allow-Methods",
"POST, GET, OPTIONS, PUT, PATCH, DELETE")
c.Writer.Header().Set(
"Access-Control-Allow-Headers",
"Content-Type, Content-Length, Accept-Encoding, X-Original-Filename, X-Access-Token, Authorization")
if c.Request.Method == "OPTIONS" {
c.Abort(200)
return
apt-get -y update
apt-get -y install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties nodejs nginx-full redis-server postgresql postgresql-server-dev-9.4 mc wget imagemagick
adduser app
sudo su - app
ssh-keygen -t rsa -b 4096
ssh -T git@github.com
git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source .bash_profile