Skip to content

Instantly share code, notes, and snippets.

@nandub
nandub / build.log
Created December 25, 2013 22:53
cjdns stable-0.5 successful build
***********Starting CMAKE Step***********
-- The C compiler identification is Clang 5.0.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
2.8.12.1
c compiler: /usr/bin/cc
c++ compiler:
-- Performing Test HAS_NO_UNUSED_RESULT
@nandub
nandub / gist:8111553
Created December 24, 2013 10:46
Mac OS X Build Fail
Already up-to-date.
HEAD is now at b40ddce don't compile with -pie, only link with it
Removing build_darwin/
Initialize 1ms
Copy dependencies
Build NaCl
Creating directories
Getting system type
System is [amd64]
Using premade plan at [node_build/plans/apple_amd64_plan.json]
@nandub
nandub / mxe-automake-log
Created October 20, 2013 02:46
help2man: can't get `--help' info from automake-1.13
uname -a
Darwin Fernandos-MacBook-Pro.local 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64
git show-branch --list --reflog=1
[refs/heads/master@{0}] (3 hours ago) pull: Fast-forward
lsb_release -a 2>/dev/null || sw_vers 2>/dev/null || true
ProductName: Mac OS X
ProductVersion: 10.8.5
BuildVersion: 12F45
rm -rf '/opt/mxe/tmp-automake'
mkdir -p '/opt/mxe/tmp-automake'
@nandub
nandub / gist:6929334
Last active December 25, 2015 06:09
Latest update from master fails on Mac OS X Lion
cd `/opt/mxe` && git pull
remote: Counting objects: 90, done.
remote: Compressing objects: 100% (52/52), done.
remote: Total 68 (delta 51), reused 32 (delta 16)
Unpacking objects: 100% (68/68), done.
From https://github.com/mxe/mxe
ca7e78d..e6be142 master -> origin/master
Updating ca7e78d..e6be142
Fast-forward
@nandub
nandub / python dtrace
Created January 19, 2013 22:37
python dtrace debugging
read_nocancel(0x6, "odings/ascii.pyR\a\0", 0x1000) = 0 0
close_nocancel(0x6) = 0 0
close_nocancel(0x5) = 0 0
psynch_cvwait(0x7F82A2CE7F58, 0x630100006400, 0x6300) = 0 0
psynch_cvwait(0x7F82A2CE7F58, 0x640100006500, 0x6400) = 0 0
select(0x7, 0x110462040, 0x0, 0x0, 0x110462030) = 0 0
select(0x8, 0x1104E5040, 0x0, 0x0, 0x1104E5030) = 0 0
psynch_cvsignal(0x7F82A2CE7F58, 0x7A0000007B00, 0x7A00) = 257 0
select(0x6, 0x1103DF040, 0x0, 0x0, 0x1103DF030) = 0 0
select(0x9, 0x110568040, 0x0, 0x0, 0x110568030) = 0 0
@nandub
nandub / elf.h
Created September 23, 2012 08:35
MacOS X elf.h missing include file
#include <libelf/gelf.h>
/* Intel 80386 specific definitions. */
/* i386 relocs. */
#define R_386_NONE 0 /* No reloc */
#define R_386_32 1 /* Direct 32 bit */
#define R_386_PC32 2 /* PC relative 32 bit */
#define R_386_GOT32 3 /* 32 bit GOT entry */
@nandub
nandub / test_local_changes
Created July 20, 2012 02:37
To test local changes for hubot and hubot-irc
"dependencies": {
...
"hubot-irc": "git://github.com/YOUR_NAME/hubot-irc.git",
...
}
@nandub
nandub / next branch error
Created March 31, 2012 08:36
NoMethodError - undefined method `map!'
$ rake start
03:29:09 web.1 | started with pid 58556
03:29:09 realtime.1 | started with pid 58557
03:29:50 web.1 | NoMethodError - undefined method `map!' for #<Appscript::CommandError:0x108021580>:
03:29:50 web.1 | /Users/fortiz/development/tools/playdj/app/api/helpers.rb:21:in `songs_as_json'
03:29:50 web.1 | /Users/fortiz/development/tools/playdj/app/api/queue.rb:6:in `GET /queue'
03:29:50 web.1 | /Users/fortiz/.rvm/gems/ruby-1.8.7-p357/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in `call'
03:29:50 web.1 | /Users/fortiz/.rvm/gems/ruby-1.8.7-p357/gems/sinatra-1.3.2/lib/sinatra/base.rb:1211:in `compile!'
03:29:50 web.1 | /Users/fortiz/.rvm/gems/ruby-1.8.7-p357/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `[]'
03:29:50 web.1 | /Users/fortiz/.rvm/gems/ruby-1.8.7-p357/gems/sinatra-1.3.2/lib/sinatra/base.rb:785:in `route!'
@nandub
nandub / play bundle install fail
Created March 31, 2012 02:58
rb-fsevent 0.4.3.1 fail to compile
$ bundle install
Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://rubygems.org/..
Using rake (0.9.2.2)
Using SystemTimer (1.2.3)
Using multi_json (1.0.3)
Using activesupport (3.1.1)
Using builder (3.0.0)
Using i18n (0.6.0)
Using activemodel (3.1.1)
@nandub
nandub / phantomjs.rb
Created March 30, 2012 22:41 — forked from fabiomcosta/phantomjs.rb
proposed phantomjs formula
require 'formula'
class NeedsSnowLeopardOrNewer < Requirement
def satisfied?
MacOS.snow_leopard?
end
def message
"phantomjs requires Mac OS X 10.6 (Snow Leopard) or newer."
end