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
diff --git a/Classes/Library/AsyncSocketExtensions.m b/Classes/Library/AsyncSock
index 66d7c09..b18cdfa 100644
--- a/Classes/Library/AsyncSocketExtensions.m
+++ b/Classes/Library/AsyncSocketExtensions.m
@@ -18,13 +18,13 @@ static NSString *txCFStreamErrorDomainSSL = @"txCFStreamErro
[settings setObject:CFItemRefToID(kCFStreamSocketSecurityLevelNegotiated
[settings setObject:CFItemRefToID(kCFNull)
+ [settings setObject:CFItemRefToID(kCFBooleanFalse) forKey:CFItemRef
local err = Error.new('Some message');
err.message
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',
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
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
#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
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
@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
-- 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 / gcrgc.sh
Created June 22, 2017 16:24 — forked from ahmetb/gcrgc.sh
Script to clean up Google Container Registry images pushed before a particular date
#!/bin/bash
# Copyright © 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software