Skip to content

Instantly share code, notes, and snippets.

View johnhaley81's full-sized avatar

John Haley johnhaley81

View GitHub Profile
**** Logging started Tue Aug 19 2014 19:00:56 ****
Channel modes: [+cnt]
Channel created: Thu May 08 2014 18:46:09
Users: [Total: 5, Normal: 5]
<johnhaley81> Hola
<tbranyen> hey johnhaley81
<tbranyen> just unloaded a bunch of information on maxkorp
<johnhaley81> Nice :)
Quit: maxkorp [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
{
"GIT_EXTERN(": {
"js": "GIT_EXTERN("
},
"char": {
"js": "String",
"cpp": "String"
},
"char *": {
"js": "String",
@johnhaley81
johnhaley81 / diff_options.cc
Created February 5, 2015 16:08
diff_options pre libgit2_supplement.json change
// This is a generated file, modify: generate/templates/struct_content.cc.
#include <nan.h>
#include <string.h>
#include <chrono>
#include <thread>
#include <execinfo.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
@johnhaley81
johnhaley81 / bash output
Created February 5, 2015 18:22
Status errors on "untracked" branch
johnhosx :: ~/Development/nodegit ‹untracked*› » npm test
> [email protected] test /Users/johnh/Development/nodegit
> npm run lint && npm run cov
> [email protected] lint /Users/johnh/Development/nodegit
> jshint lib test/tests examples lifecycleScripts
@johnhaley81
johnhaley81 / callback.cc
Last active August 29, 2015 14:16
`uv_queue_work` error
struct TransferProgressBaton {
const git_transfer_progress * stats;
void * payload;
uv_work_t req;
int result;
Persistent<Object> promise;
bool done;
};
@johnhaley81
johnhaley81 / payload_wrapper.h
Created February 27, 2015 19:17
`uv_async_init`
#ifndef PAYLOAD_WRAPPER_H
#define PAYLOAD_WRAPPER_H
#include <v8.h>
#include <node.h>
#include "nan.h"
using namespace v8;
using namespace node;
@johnhaley81
johnhaley81 / remote_callbacks.cc
Created April 20, 2015 18:04
Trying out fixing cross thread calling in nodegit
// This is a generated file, modify: generate/templates/struct_content.cc.
#include <nan.h>
#include <string.h>
#include <chrono>
#include <thread>
extern "C" {
#include <git2.h>
}
johnhosx-2 :: ~/Development/gaston ‹new-gaston*› » npm install
> [email protected] install /Users/johnh/Development/gaston/node_modules/watchify/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild
SOLINK_MODULE(target) Release/.node
SOLINK_MODULE(target) Release/.node: Finished
CXX(target) Release/obj.target/fse/fsevents.o
SOLINK_MODULE(target) Release/fse.node
SOLINK_MODULE(target) Release/fse.node: Finished
@johnhaley81
johnhaley81 / agent.cmd
Last active August 29, 2015 14:24
cmder files
@ECHO OFF
REM Set default sock file
SET SSH_AUTH_SOCK=/tmp/ssh-agent.sock
REM Check socket is available
IF NOT EXIST "%TMP%\ssh-agent.sock" GOTO:RUNAGENT
REM Check if an ssh-agent is running
FOR /f "tokens=*" %%I IN ('ps ^| grep ssh-agent ^| sed "s/^ *\([0-9]\+\) .*/\1/"') DO SET VAR=%%I
@johnhaley81
johnhaley81 / ldd-output-prebuilt-nodegit.node
Created January 5, 2016 21:57
This is the `ldd -v` output for the `nodegit.node` binaries
linux-vdso.so.1 => (0x00007fff5b0d2000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fd860d17000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fd860a1b000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fd860804000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fd8605e7000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fd860229000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd861713000)
Version information:
dist.prebuilt/GitKraken/resources/app.asar.unpacked/node_modules/nodegit/build/Release/nodegit.node: