Skip to content

Instantly share code, notes, and snippets.

bygri /
Last active Nov 1, 2016
Vapor and Swift 3.0 on Ubuntu 16.04 LTS
from fabric.api import cd, env, execute, local, run, open_shell
env.hosts = []
env.development_path = '' # remote path to deploy to, and build from
env.packages = [] # list of packages to install, such as libmysqlclient-dev
def packages():
if len(env.packages):
run('sudo apt-get install '+' '.join(env.packages))
View cli-nsrunloop.m
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[])
NSRunLoop *runLoop;
CLIMain *main; // replace with desired class with properties BOOL shouldExist and int exitCode
runLoop = [NSRunLoop currentRunLoop];