Skip to content

Instantly share code, notes, and snippets.

View rphillips's full-sized avatar

Ryan Phillips rphillips

  • Red Hat
  • Austin, TX
View GitHub Profile
@rphillips
rphillips / keybase.md
Created July 14, 2014 19:46
keybase.md

Keybase proof

I hereby claim:

  • I am rphillips on github.
  • I am rphillips (https://keybase.io/rphillips) on keybase.
  • I have a public key whose fingerprint is 73FF 5DAB 1D53 AF0F D905 16DF BD93 B48C 83E9 2964

To claim this, I am signing this object:

INFO global: Vagrant version: 1.6.0
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_DEFAULT_PROVIDER="vmware_fusion"
INFO global: VAGRANT_EXECUTABLE="/Applications/Vagrant/bin/../embedded/gems/gems/vagrant-1.6.0/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/Applications/Vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Darwin"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INTERNAL_BUNDLERIZED="1"
-- updated for luvit 2
local ffi = require('ffi')
local bit = require('bit')
local uv = require('uv')
local timer = require('timer')
local Object = require('core').Object
local utils = require('utils')
local libcurl = ffi.load('libcurl')
@rphillips
rphillips / URL
Last active December 27, 2015 17:59
DRAFTS : SEARCH GOOGLE IN GOOGLE CHROME WITH CALLBACK SUPPORT ACTION
drafts://x-callback-url/import_action
?type=URL
&name=Search%20in%20Chrome
&url=googlechrome-x-callback%3A%2F%2Fx-callback-url%2Fopen%2F%3Furl%3Dhttp%253a%252f%252fwww.google.com%252f%2523q%253d%5B%5Bdraft%5D%5D%26x-source%3DDrafts%26x-success%3Ddrafts%253a%252f%252f%26create-new-tab
I've never made the frosting. It's too rich.
Use PAM baking spray.
Milky Way Pound cake
6 (2.15 ounce) Milky Way Bars
1 cup butter, divided
2 cups sugar
4 eggs
#1 0xb7e13c8f in raise () from /lib/i386-linux-gnu/libc.so.6
#2 0xb7e172b5 in abort () from /lib/i386-linux-gnu/libc.so.6
#3 0xb7e55269 in ?? () from /lib/i386-linux-gnu/libc.so.6
#4 0xb7e57f47 in ?? () from /lib/i386-linux-gnu/libc.so.6
#5 0xb7e597f8 in malloc () from /lib/i386-linux-gnu/libc.so.6
#6 0xb7e5d371 in strdup () from /lib/i386-linux-gnu/libc.so.6
#7 0x0810cbd3 in uv_fs_lstat (loop=0x82f4fe0, req=0x8310bf0, path=0xb7de17c0 "/home/ubuntu/luvit/examples/static-file-server.lua", cb=0) at ../deps/uv/src/unix/fs.c:542
#8 0x08084ee5 in luv_fs_lstat (L=0xb7dc41c0) at ../src/luv_fs.c:368
#9 0x080d916a in lj_BC_FUNCC ()
#10 0x080a86dc in lua_call (L=0xb7dc41c0, nargs=1, nresults=1) at ../deps/luajit/src/lj_api.c:1016
cc -std=c89 -g -Wall -Werror -c src/luvit_main.c -o build/luvit_main.o -Ideps/http-parser -Ideps/uv/include -Ideps/luajit/src -Ideps/yajl/src/api -Ideps/yajl/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHTTP_VERSION=\"v1.0-61-g4898606\" -DUV_VERSION=\"g2651273\" -DYAJL_VERSIONISH=\"2.0.4-1-g8b48967\" -DLUVIT_VERSION=\"0.1.5-92-g1ec995f\" -DLUAJIT_VERSION=\"v2.0.0-beta9-5-g248cf2f\"
In file included from deps/uv/include/uv.h:64,
from src/luvit_main.c:28:
deps/uv/include/uv-private/uv-unix.h:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘uv_rwlock_t’
cc1: warnings being treated as errors
In file included from src/luvit_main.c:28:
deps/uv/include/uv.h:262: error: ‘struct addrinfo’ declared inside parameter list
deps/uv/include/uv.h:262: error: its scope is only this definition or declaration, which is probably not what you want
deps/uv/include/uv.h:1334: error: expected ‘)’ before ‘*’ token
deps/uv/include/uv.h:1335: error: expected ‘)’ before ‘*’ token
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000034
0x000000010007fa4c in ev_ref (loop=0x0) at ev.c:2544
2544 ++activecnt;
(gdb) bt
#0 0x000000010007fa4c in ev_ref (loop=0x0) at ev.c:2544
#1 0x000000010007febb in ev_start (loop=0x0, w=0x113f40, active=1) at ev.c:2645
#2 0x0000000100080d68 in ev_signal_start (loop=0x0, w=0x113f40) at ev.c:2906
#3 0x000000010000e6cf in luv_activate_signal_handler (L=0x41378) at luv_misc.c:199
#4 0x0000000100016126 in lj_BC_FUNCC () at buildvm_x86.dasc:732
diff --git a/deps/luajit.gyp b/deps/luajit.gyp
index 3032abc..d81b8d1 100644
--- a/deps/luajit.gyp
+++ b/deps/luajit.gyp
@@ -3,15 +3,15 @@
'conditions': [
['OS == "win"', {
'asm_format': 'peobj',
- 'lj_vm': 'luajit/src/lj_vm.obj',
+ 'lj_vm': '<(INTERMEDIATE_DIR)/luajit/src/lj_vm.obj',
local err = Error.new('Some message');
err.message