Skip to content

Instantly share code, notes, and snippets.

View markdrake's full-sized avatar

Marco Patiño markdrake

View GitHub Profile
@markdrake
markdrake / nginxproxy.md
Created March 29, 2017 02:53 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

@markdrake
markdrake / roundTo.coffee
Last active August 29, 2015 14:26 — forked from roberthead/roundTo.coffee
Rounding with precision in CoffeeScript
Math.roundTo = (number, precision) ->
Math.round(number * 10**precision) / 10**precision
#!/usr/bin/env ruby
require 'json'
require 'fileutils'
include FileUtils
# Parses the argument array _args_, according to the pattern _s_, to
# retrieve the single character command line options from it. If _s_ is
# 'xy:' an option '-x' without an option argument is searched, and an
# option '-y foo' with an option argument ('foo').

PHPUnit API reference

  • version 3.6

TODO

Check those constraints:

$this->anything()

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname