Skip to content

Instantly share code, notes, and snippets.

View softinio's full-sized avatar
💻
Coding

Salar Rahmanian softinio

💻
Coding
View GitHub Profile
@softinio
softinio / README.md
Created November 8, 2016 22:28 — forked from brianknight10/README.md
Vagrant setup for Docker development

#Base Docker Development VM

Provisions an Ubuntu server with Docker Compose.

  • Creates an Ubuntu VM running Docker
  • Allows for configuration using a docker-compose.yml file

##How do i use it?

Step 1. Install vagrant

#!/bin/bash
# Autor: Nilton OS -- www.linuxpro.com.br
echo 'setup-web2py-nginx-uwsgi-centos64.sh'
echo 'Support CentOS 6.4'
echo 'Installs Nginx 1.4.1 + uWSGI + Web2py'
# Get Web2py Admin Password
echo -e "Web2py Admin Password: \c "
read PW
@softinio
softinio / gist:c5539f45d3540edf2fc6
Created October 6, 2015 15:28
Ansible Config: ansible.cfg
[ssh_connection]
control_path = %(directory)s/%%h-%%p-%%r
@softinio
softinio / gist:13695a462cffc1f77150
Created May 1, 2015 15:11
Use of domainsTotalsAccurate
Note: syncStatus must be the full syncStatus object/json
async.series({
totals: function(cb){
domainsTotalsAccurate(pid, syncStatus, req, cb);
}
}, function(myError, myResult){
var result = myResult.totals;
})