This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
nc -kl 8080 < /tmp/socks_proxy.fifo | tee /dev/stderr | nc localhost 80 | tee /tmp/socks_proxy.sock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is redundant with the new implementation | |
mkfifo /tmp/socks_proxy.fifo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inputmode.cpp | |
src/mode/inputmode.cpp: In member function 'std::string Ui::InputMode::SearchHistory(Ui::InputMode::Direction, const std::string&)':src/mode/inputmode.cpp:216: error: no match for 'operator==' in 'historyIterator == std::vector<_Tp, _Alloc>::rend() [with _Tp = std::string, _Alloc = std::allocator<std::string>]()' | |
src/mode/inputmode.cpp:223: error: no match for 'operator<' in 'historyIterator < std::vector<_Tp, _Alloc>::rend() [with _Tp = std::string, _Alloc = std::allocator<std::string>]()' | |
src/mode/inputmode.cpp:228: error: no match for 'operator==' in 'historyIterator == std::vector<_Tp, _Alloc>::rend() [with _Tp = std::string, _Alloc = std::allocator<std::string>]()' | |
src/mode/inputmode.cpp:232: error: no match for 'operator>=' in 'historyIterator >= std::vector<_Tp, _Alloc>::rbegin() [with _Tp = std::string, _Alloc = std::allocator<std::string>]()' | |
src/mode/inputmode.cpp:237: error: no match for 'operator<' in 'historyIterator < std::vector<_Tp, _Alloc>::rbegin() [with _Tp = std::string, _All |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Iter(object): | |
def __init__(self): | |
self.count = 0 | |
self.final = 10 | |
def __iter__(self): | |
return self | |
def next(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<keybind key="W-Escape"> | |
<keybind key="q"> | |
<action name="Close"/> | |
</keybind> | |
<!-- Keybindings for resizing, ala divvy --> | |
<!-- 30% --> | |
<keybind key="C-h"> | |
<action name="MoveResizeTo"> | |
<x>0</x> | |
<height>98%</height> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
function __richo_pwd() | |
{ | |
local current=$PWD | |
richo_prompt=no | |
if [ -e ".svn" ]; then | |
export richo_prompt="⚡" | |
fi | |
while [ "$current" != '/' -a $richo_prompt = "no" ]; do | |
# for n in n; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Wed, 21 Mar 2012 17:34:42 -0700] INFO: Processing php_pear[imagick] action install (99designs::cont | |
ests line 28) | |
[Wed, 21 Mar 2012 17:34:46 -0700] INFO: Installing php_pear[imagick] version 2.3.0 | |
[Wed, 21 Mar 2012 17:34:59 -0700] INFO: Processing php_pear[geoip] action install (99designs::contes | |
ts line 28) | |
[Wed, 21 Mar 2012 17:35:00 -0700] INFO: Installing php_pear[geoip] version 1.0.8 | |
[Wed, 21 Mar 2012 17:35:06 -0700] ERROR: php_pear[geoip] (99designs::contests line 28) has had an er | |
ror | |
[Wed, 21 Mar 2012 17:35:06 -0700] ERROR: php_pear[geoip] (/home/richo/vmconfig/cookbooks/99designs/r | |
ecipes/contests.rb:28:in `from_file') had an error: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'twat' | |
require 'mocha' | |
require 'pry' | |
describe Twat do | |
# before(:each) do | |
# end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyString(str): | |
def processed(self): | |
half1 = self[0:10].rstrip(' ') | |
half2 = self[11:].rstrip('\n') | |
return [half1, half2] | |
def reflect_statement(sentence): | |
elements = [] | |
sensplit = [] |