Skip to content

Instantly share code, notes, and snippets.

View dariubs's full-sized avatar
🐕
I love Scorched rice

Dariush Abbasi dariubs

🐕
I love Scorched rice
View GitHub Profile
require 'thor'
class Thoring < Thor
desc 'hi name', 'say hi to name'
def hi(name)
puts "Hi #{name}"
end
end
Thoring.start(ARGV)

Download and Install Vagrant http://www.vagrantup.com/ and VirtualBox https://www.virtualbox.org/ or VMware before beginning

#Set up Vagrant *this guide assumes the use of Mac OS X Mountain Lion on local machine and Ubuntu 12.04 LTS x64 on Vagrant box. It is compatible with many other distros but hasn't been tested.

##Step 1: Make and run box

vagrant init
vagrant box add <path to box directory or name according to https://vagrantcloud.com/>
vagrant up
@dariubs
dariubs / app.py
Created November 11, 2015 21:48
Flask intro - coderz
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World!'
if __name__ == '__main__':
app.run()
@dariubs
dariubs / nginx.conf.default
Last active August 29, 2015 14:27 — forked from nishantmodak/nginx.conf.default
Default Nginx Conf
#user nobody;
#Defines which Linux system user will own and run the Nginx server
worker_processes 1;
#Referes to single threaded process. Generally set to be equal to the number of CPUs or cores.
#error_log logs/error.log; #error_log logs/error.log notice;
#Specifies the file where server logs.