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
@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
@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 / 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
# 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
#!/bin/bash
#
# freebsdman - manpage fetcher from www.freebsd.org
#
# Author: Mohan Raman
# License: Whatever license FreeBSD is telling to access
# their servers.
#
print_values()