Skip to content

Instantly share code, notes, and snippets.

@kalbasit
kalbasit / makefile.patch
Created May 26, 2014
Adding an extra env to inject liz.a
View makefile.patch
diff --git a/Library/Formula/notmuch.rb b/Library/Formula/notmuch.rb
index 4840475..019ce2a 100644
--- a/Library/Formula/notmuch.rb
+++ b/Library/Formula/notmuch.rb
@@ -12,9 +12,10 @@ class Notmuch < Formula
depends_on "gmime"
depends_on "zlib"
+ patch :DATA
+
View travis.sh
#!/bin/sh
# This script will setup Evm and Cask on Travis to use for Emacs Lisp testing.
#
# In .travis.yml, add Evm and Cask to PATH.
#
# - export PATH="/home/travis/.evm/bin:$PATH"
sudo mkdir /usr/local/evm
sudo chown travis:travis /usr/local/evm
View *scratch*.el
;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
@kalbasit
kalbasit / test_output.log
Created Aug 17, 2014
github.com/eMxyzptlk/beegae-example test result
View test_output.log
$ make test
goapp test github.com/eMxyzptlk/beegae-example/...
? github.com/eMxyzptlk/beegae-example/appengine [no test files]
? github.com/eMxyzptlk/beegae-example/controllers [no test files]
? github.com/eMxyzptlk/beegae-example/routers [no test files]
2014/08/17 01:05:15 appengine: not running under devappserver2; using some default configuration
2014/08/17 01:05:15 appengine: NewContext passed an unknown http.Request
2014/08/17 01:05:15 [C] the request url is /
2014/08/17 01:05:15 [C] Handler crashed with error appengine: NewContext passed an unknown http.Request
2014/08/17 01:05:15 [C] /tmp/appengine/go_appengine/goroot/src/pkg/runtime/panic.c 248
@kalbasit
kalbasit / go1.3-build.log
Created Nov 3, 2014
build -x with go1.3 vs go1.4
View go1.3-build.log
wmn@gaea ~/code/src/github.com/eMxyzptlk/gopoker [master] ± % go version
go version go1.3 linux/amd64
wmn@gaea ~/code/src/github.com/eMxyzptlk/gopoker [master] ± % time go build -x ./...
WORK=/tmp/go-build178790999
mkdir -p $WORK/github.com/eMxyzptlk/gopoker/card/_obj/
mkdir -p $WORK/github.com/eMxyzptlk/gopoker/
cd /usr/local/google/home/wmn/code/src/github.com/eMxyzptlk/gopoker/card
/usr/lib/google-golang/pkg/tool/linux_amd64/6g -o $WORK/github.com/eMxyzptlk/gopoker/card.a -trimpath $WORK -p github.com/eMxyzptlk/gopoker/card -complete -D _/usr/local/google/home/wmn/code/src/github.com/eMxyzptlk/gopoker/card -I $WORK -pack ./card.go
mkdir -p $WORK/github.com/eMxyzptlk/gopoker/deck/_obj/
cd /usr/local/google/home/wmn/code/src/github.com/eMxyzptlk/gopoker/deck
@kalbasit
kalbasit / Makefile.patch
Created Mar 5, 2015
Installing notmuch with Ruby binding on OSX
View Makefile.patch
diff --git a/bindings/ruby/Makefile b/bindings/ruby/Makefile
index c0070b7..f456523 100644
--- a/bindings/ruby/Makefile
+++ b/bindings/ruby/Makefile
@@ -85,7 +85,7 @@ CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REE
CXXFLAGS = $(CCDLFLAGS) $(ARCH_FLAG) -g -Os -pipe $(ARCH_FLAG)
ldflags = -L. -L/usr/local/lib -Wl
dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress
-ARCH_FLAG = -arch x86_64 -arch i386
+ARCH_FLAG = -arch x86_64
View problem.go
package main
import (
"encoding/xml"
"fmt"
)
const data = `
<?xml version="1.0" encoding="UTF-8"?>
<liverailapi requested="/order/line/list" api_version="4.11.1">
@kalbasit
kalbasit / GoBaseTestEngine.php
Created Apr 24, 2015
Phabricator Go Testing.
View GoBaseTestEngine.php
<?php
/**
* Go test Wrapper
*/
abstract class GoBaseTestEngine extends ArcanistUnitTestEngine {
public function run() {
$this->affectedTests = array();
foreach ($this->getPaths() as $path) {
@kalbasit
kalbasit / arc-unit.sh-session
Created May 5, 2015
Arc unit failing on master
View arc-unit.sh-session
$ git checkout master
$ git pull --rebase
$ arc unit --everything
PASS 58ms ArcanistLibraryTestCase::testMethodVisibility
PASS <1ms★ ArcanistLibraryTestCase::testEverythingImplemented
PASS 37ms★ ArcanistLibraryTestCase::testLibraryMap
PASS 18ms★ ArcanistChmodLinterTestCase::testLinter
SKIP ArcanistCSSLintLinterTestCase::testLinter
Unable to locate binary "csslint" to run linter ArcanistCSSLintLinter. You may need to install the binary, or adjust your linter configuration.
TO INSTALL: Install CSSLint using `npm install -g csslint`.