I hereby claim:
- I am roder on github.
- I am roder (https://keybase.io/roder) on keybase.
- I have a public key whose fingerprint is 811C 6F2C 76FA D983 DE9D A29E 45A4 4308 4142 CD52
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
require 'celluloid/io' | |
require 'json' | |
# require 'celluloid/autostart' | |
class TestServer | |
include Celluloid::IO | |
finalizer :shutdown | |
def initialize(host, port) | |
puts "*** Starting echo server on #{host}:#{port}" |
require 'celluloid/io' | |
require 'json' | |
# require 'celluloid/autostart' | |
class TestServer | |
include Celluloid::IO | |
finalizer :shutdown | |
def initialize(host, port) | |
puts "*** Starting echo server on #{host}:#{port}" |
require 'celluloid/io' | |
require 'json' | |
# require 'celluloid/autostart' | |
class TestServer | |
include Celluloid::IO | |
finalizer :shutdown | |
def initialize(host, port) | |
puts "*** Starting echo server on #{host}:#{port}" |
import porc | |
# Create client with your API key | |
client = porc.Client("YOUR_API_KEY") | |
# Example Data | |
collection = "users" | |
key = "test" | |
data = { | |
"tax_id": "", |
# copy this to ~/.bashrc | |
_complete_ssh_hosts () { | |
COMPREPLY=() | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
comp_ssh_hosts=` | |
grep "^host " ~/.ssh/config | \ | |
awk '{print $2}' | |
` | |
COMPREPLY=( $(compgen -W "${comp_ssh_hosts}" -- $cur)) |
#!/usr/bin/env python | |
import os | |
import feedparser | |
import pprint | |
import subprocess | |
TED_FEED = "http://feeds.feedburner.com/tedtalks_video" | |
def need_to_download(entries): | |
for entry in entries: |
#! /bin/bash | |
### BEGIN INIT INFO | |
# Provides: riak | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Example initscript | |
# Description: This file should be used to construct scripts to be | |
# placed in /etc/init.d. |
def pbcopy(string) | |
pasteBoard = NSPasteboard.generalPasteboard | |
pasteBoard.declareTypes([NSStringPboardType], owner: nil) | |
pasteBoard.setString(string, forType: NSStringPboardType) | |
end |
#!/bin/bash | |
# This utility is useful for extracting the field names from a SQL to CSV export | |
# | |
# csvheadpivot will scan the current working directory for CSV files. When it | |
# encounters a CSV file the utility assumes the CSV file has a header row and | |
# any CSV files with more than one row has data. | |
# | |
# When encountering a CSV with data, the utility will grab the header row and | |
# pivot it to a single column. |