Skip to content

Instantly share code, notes, and snippets.

#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
@autoreleasepool
{
runLoop = [NSRunLoop currentRunLoop];
@bygri
bygri / fabfile.py
Last active November 1, 2016 23:59
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))