Skip to content

Instantly share code, notes, and snippets.

View countown_clock.ino
Udp NTP Client
Get the time from a Network Time Protocol (NTP) time server
Demonstrates use of UDP sendPacket and ReceivePacket
For more on NTP time servers and the messages needed to communicate with them,
created 4 Sep 2010
View gist:9401623
### Keybase proof
I hereby claim:
* I am SeanOC on github.
* I am seanoc ( on keybase.
* I have a public key whose fingerprint is BAC9 770C B661 7F4F 4247 2C0B 5EEB EE58 80A1 95F2
To claim this, I am signing this object:
View gist:4150612
"parameters": [
"name": "GIT_BASE_REPO",
"value": "SeanOC/thing"
"name": "GIT_HEAD_REPO",
"value": "SeanOC/otherThing"
View gist:2697978
Traceback (most recent call last):
File "/srv/quimby/shared/env/local/lib/python2.7/site-packages/celery/execute/", line 192, in trace_task
R = I.handle_error_state(task, eager=eager)
File "/srv/quimby/shared/env/local/lib/python2.7/site-packages/celery/execute/", line 91, in handle_error_state
}[self.state](task, store_errors=store_errors)
File "/srv/quimby/shared/env/local/lib/python2.7/site-packages/celery/execute/", line 114, in handle_failure
task.backend.mark_as_failure(, exc, self.strtb)
File "/srv/quimby/shared/env/local/lib/python2.7/site-packages/celery/backends/", line 96, in mark_as_failure
File "/srv/quimby/shared/env/local/lib/python2.7/site-packages/celery/backends/", line 229, in store_result
View gist:1635939
class NoAuthS3Storage(S3BotoStorage):
def __init__(self, *args, **kwargs):
kwargs['querystring_auth'] = False
super(NoAuthS3Storage, self).__init__(*args, **kwargs)
SeanOC / gist:1174275
Created August 26, 2011 19:54
Shapry Charges Example
View gist:1174275
from sharpy.product import CheddarProduct
product = CheddarProduct(
username = 'NAME',
password = 'PASS',
product_code = 'PRODUCT',
customer = product.get_customer(code='MY-CUSTOMER')
SeanOC /
Created August 17, 2011 14:47
Riak enable_search() problem
>>> import riak
>>> from riak.test_server import TestServer
>>> riak_bin_path = '/usr/local/Cellar/riak/HEAD/bin/'
>>> server = TestServer(bin_dir=riak_bin_path)
>>> server.prepare()
>>> server.start()
>>> client = riak.RiakClient(
SeanOC / gist:1129040
Created August 6, 2011 05:12
riaksearch trigger error
View gist:1129040
=CRASH REPORT==== 6-Aug-2011::05:12:41 ===
initial call: mi_server:init/1
pid: <0.3488.0>
registered_name: []
exception exit: {{badmatch,{error,enoent}},[{mi_buffer,new,1},{mi_server,read_buffers,4},{mi_server,read_buf_and_seg,1},{mi_server,init,1},{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}
in function gen_server:init_it/6
in call from proc_lib:init_p_do_apply/3
ancestors: [<0.3487.0>,riak_core_vnode_sup,riak_core_sup,<0.102.0>]
messages: []
View console session
(vagrant@> {ok, Client} = riak:client_connect('riak@').
(vagrant@> {ok, [R]} = Client:mapred([{<<"groceries">>, <<"mine">>},
(vagrant@> {<<"groceries">>, <<"yours">>}],
(vagrant@> [{'map', {modfun, triggers, count}, 'none', false},
(vagrant@> {'reduce', {modfun, triggers, merge}, 'none', true}]).
** exception error: no match of right hand side value {error,{error,undef,
View gist:1065772
soconnor@ip-10-124-91-129:~$ free -m
total used free shared buffers cached
Mem: 15360 10010 5349 0 117 8929
-/+ buffers/cache: 962 14397
Swap: 0 0 0