This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <md5.h> |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <netdb.h> | |
#include <ortp/ortp.h> |
This file contains hidden or 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
#include <stdio.h> | |
#include <json/json.h> | |
int main(int argc, char **argv) { | |
json_object *o, *url; | |
MC_SET_DEBUG(1); | |
o = json_tokener_parse("{\"url\":\"http://i.minus.com/i52DkrwgNalFF.gif\",\"created\":1346426580}"); |
This file contains hidden or 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 bash | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
exec $SHELL -l | |
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build |
This file contains hidden or 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 ruby | |
# - @oogali | |
require 'rubygems' | |
require 'socket' | |
require 'ipaddr' | |
require 'getoptlong' | |
MAX_RUNTIME_DURATION = 30 # seconds |
This file contains hidden or 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 ruby | |
require 'rubygems' | |
require 'socket' | |
require 'ipaddr' | |
MCAST_GROUP = { | |
:addr => '224.5.6.7', | |
:port => 12345, | |
:bindaddr => '192.168.1.2' |
This file contains hidden or 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 ruby | |
require 'rubygems' | |
require 'eventmachine' | |
class DammitSocket < EM::Connection | |
def initialize(dammit) | |
@dammit = dammit | |
@buffer = '' |
This file contains hidden or 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
diff --git a/Gemfile b/Gemfile | |
index ae735c6..0c19644 100644 | |
--- a/Gemfile | |
+++ b/Gemfile | |
@@ -2,10 +2,11 @@ source :rubygems | |
gem 'SystemTimer', :platforms => :ruby_18 | |
gem 'eventmachine' | |
gem 'thin' | |
+gem 'puma', :git => 'git://github.com/puma/puma.git' | |
gem 'hiredis' |
This file contains hidden or 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
# append this to your .bash_profile | |
start_agent() { eval `ssh-agent` >/dev/null; echo "${SSH_AGENT_PID}:${SSH_AUTH_SOCK}" > "${HOME}/.ssh/agent"; } | |
use_existing_agent() { export SSH_AGENT_PID=`head -1 ${HOME}/.ssh/agent | awk -F ':' '{ print $1 }'`; export SSH_AUTH_SOCK=`head -1 ${HOME}/.ssh/agent | awk -F ':' '{ print $2 }'`; } | |
if [ ! -f "${HOME}/.ssh/agent" ]; then | |
start_agent | |
else | |
use_existing_agent | |
if [ -z "${SSH_AUTH_SOCK}" ] || [ ! -S "${SSH_AUTH_SOCK}" ]; then | |
start_agent |
This file contains hidden or 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
grammar MozillaCKA | |
rule document | |
( comment / newline / cvsid / beginning / root / certificates / trusts )* | |
end | |
# LOL! | |
rule cvsid | |
'CVS_ID' text newline | |
end |