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
#!/bin/bash
#
# freebsdman - manpage fetcher from www.freebsd.org
#
# Author: Mohan Raman
# License: Whatever license FreeBSD is telling to access
# their servers.
#
print_values()
# Screenshot http://trovao.droplinegnome.org/stuff/mutt-zenburnt.png
#
# This is a zenburn-based muttrc color scheme that is not (even by far)
# complete. There's no copyright involved. Do whatever you want with it.
# Just be aware that I won't be held responsible if the current color-scheme
# explodes your mutt.
#
# Please remember that this color scheme requires a 256 color
# terminal-emulator. Any modern X terminal emulator should have support for
# that and you can enable it by calling mutt as "TERM=xterm-256color mutt", or
@rphillips
rphillips / 256-colors
Created October 19, 2010 16:39
.tmux.conf
# Key Default Action
# h,| % Split window horizontally
# v,- " Split window vertically
# C-s o Go to next pane
# x x Kill the active pane
# q q Show pane numbers
# A-Arrow Key Resize the active pane
# C-Arrow Key Resize the active pane by one line or on character
#
unbind C-b
@rphillips
rphillips / gist:635823
Created October 20, 2010 05:28
hacky irc
import select
import socket
import sys
import fcntl
import os
EPOLLIN = select.EPOLLIN
EPOLLOUT = select.EPOLLOUT
epoll = select.epoll(60000)
@rphillips
rphillips / irc.py
Created October 28, 2010 05:38
256 Color IRC Template
# License: Apache 2
# Author: Ryan Phillips <ryan @ trolocsis.com>
import curses
import time
class Line:
def __init__(self, attr, data, timestamp=False):
self.attr = attr
self.data = data
self.timestamp = None
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