Skip to content

Instantly share code, notes, and snippets.

View jmercouris's full-sized avatar
🌴

John Mercouris jmercouris

🌴
View GitHub Profile
//
// Copyright © 2017-2018 Atlas Engineer LLC.
// Use of this file is governed by the license that can be found in LICENSE.
//
#import "NextApplication.h"
#include <xmlrpc-c/base.h>
#include <xmlrpc-c/client.h>
#include <xmlrpc-c/config.h>
//
// Copyright © 2017-2018 Atlas Engineer LLC.
// Use of this file is governed by the license that can be found in LICENSE.
//
#import "Event.h"
@implementation Event
@synthesize consumed;
@jmercouris
jmercouris / file.m
Last active November 16, 2018 18:55
//
// Copyright © 2017-2018 Atlas Engineer LLC.
// Use of this file is governed by the license that can be found in LICENSE.
//
#import "NextApplication.h"
#include <xmlrpc-c/base.h>
#include <xmlrpc-c/client.h>
#include <xmlrpc-c/config.h>
//
// Copyright © 2017-2018 Atlas Engineer LLC.
// Use of this file is governed by the license that can be found in LICENSE.
//
#import "NextApplication.h"
#include <xmlrpc-c/base.h>
#include <xmlrpc-c/client.h>
#include <xmlrpc-c/config.h>
(defmethod print-object ((buffer buffer) stream)
(format stream "~s" (name buffer)))
(print-object buffy nil)
"\"default\""
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; READ-FROM-MINIBUFFER - this is a non-blocking function that
;; invokes callback-function upon completion with the minibuffer input
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defmethod read-from-minibuffer (callback-function (minibuffer
minibuffer) &key ...) ...)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; WITH RESULT MACRO - this allows for continuation passing style
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
///////////////////////////////////////////////////////////////////////////
// Application Delegate
///////////////////////////////////////////////////////////////////////////
// The Application delegate launches a server written in C
// This server is listening for XML-RPC Calls
///////////////////////////////////////////////////////////////////////////
- (void)applicationDidFinishLaunching:(NSNotification*)aNotification
{
Server *server = [[Server alloc] init];
WEB>source.config:*public-repository-directory*
#P"/Users/jmercouris/Work/Atlas/Source/repsitory/public"
WEB> source.config:*repository-directory*
#P"/Users/jmercouris/Work/Atlas/Source/repository/"
WEB> (merge-pathnames "folder" source.config:*repository-directory*)
#P"/Users/jmercouris/Work/Atlas/Source/repository/folder"
WEB> (merge-pathnames "folder" source.config:*public-repository-directory*)
#P"/Users/jmercouris/Work/Atlas/Source/repsitory/folder"
WEB>
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
2018/10/28 15:42:29 [error] 72829#100402: *1 connect() to 127.0.0.1:9001 failed (61: Connection refused) while connecting to upstream, client: 92.226.165.28, server: source.atlas.engineer, request: "GET /git/next/info/refs?service=git-upload-pack HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "source.atlas.engineer"
2018/10/28 15:42:29 [error] 72829#100402: *1 connect() to [::1]:9001 failed (61: Connection refused) while connecting to upstream, client: 92.226.165.28, server: source.atlas.engineer, request: "GET /git/next/info/refs?service=git-upload-pack HTTP/1.1", upstream: "fastcgi://[::1]:9001", host: "source.atlas.engineer"