start new:
tmux
start new with session name:
tmux new -s myname
import re | |
class SubDomainApp: | |
"""WSGI application to delegate requests based on domain name. | |
""" | |
def __init__(self, mapping): | |
self.mapping = mapping | |
def __call__(self, environ, start_response): | |
host = environ.get("HTTP_HOST", "") |
bin | |
include | |
lib | |
local | |
*.swp | |
*.pyc | |
-- Author: Michael-Keith Bernard | |
-- Date: May 22, 2012 | |
-- Description: Various implementations of the Fibonacci sequence in Lua. Lua | |
-- has native support for tail-call elimination which is why `tail_call` and | |
-- `continuation` run in near constant time. For sufficiently large numbers of n | |
-- you can start to see linear performace characteristics (particularly for the | |
-- `continuation` implementation), but ultimately the `tail_call` implementation | |
-- is an order of magnitude faster than iteration even for values of n as small | |
-- as 500k. |
--- | |
#### | |
#### THIS IS OLD AND OUTDATED | |
#### LIKE, ANSIBLE 1.0 OLD. | |
#### | |
#### PROBABLY HIT UP https://docs.ansible.com MY DUDES | |
#### | |
#### IF IT BREAKS I'M JUST SOME GUY WITH | |
#### A DOG, OK, SORRY | |
#### |
package com.rtr.infra.wizard.test; | |
import org.hibernate.Session; | |
import org.hibernate.SessionFactory; | |
import org.hibernate.context.internal.ManagedSessionContext; | |
import org.junit.After; | |
import org.junit.Before; | |
public abstract class DropwizardDAOTest { |
- certain endpoints are always blocked | |
if nginx_uri == "/_access_token" or nginx_uri == "/_me" then | |
ngx.exit(403) | |
end | |
-- import requirements | |
local cjson = require "cjson" | |
-- setup some app-level vars | |
local app_id = "APP_ID" |
task prefixNewMigrations { | |
fileTree(dir: 'dev/src/db/listhub').exclude({ isFilePrefixed(it.file) }).each { file -> | |
doLast { | |
def timestamp = new Date().format('yyyyMMddHHmmssSSS', TimeZone.getTimeZone('GMT')) | |
println "Renaming $file.name to ${timestamp}__$file.name" | |
file.renameTo("$file.parentFile.absolutePath$file.separator${timestamp}__$file.name") |