Skip to content

Instantly share code, notes, and snippets.

📈
bigger on the inside

C J Silverio ceejbot

📈
bigger on the inside
Block or report user

Report or block ceejbot

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am ceejbot on github.
  • I am ceej (https://keybase.io/ceej) on keybase.
  • I have a public key whose fingerprint is E89C 39C9 4390 77BF 93CA 0B83 C50C CAB0 EC67 50DF

To claim this, I am signing this object:

@ceejbot
ceejbot / npm-client-log
Created Mar 25, 2014
typical publish failure
View npm-client-log
opsbot|master ⇒ npm publish
npm http PUT https://registry.npmjs.org/opsbot
npm http 400 https://registry.npmjs.org/opsbot
npm ERR! publish Failed PUT 400
npm ERR! Error: illegal_database_name Name: 'error.html'. Only lowercase characters (a-z), digits (0-9), and any of the characters _, $, (, ), +, -, and / are allowed. Must begin with a letter.: opsbot
npm ERR! at RegClient.<anonymous> (/usr/local/Cellar/node/0.10.26/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:237:14)
npm ERR! at Request.self.callback (/usr/local/Cellar/node/0.10.26/lib/node_modules/npm/node_modules/request/request.js:123:22)
npm ERR! at Request.EventEmitter.emit (events.js:98:17)
npm ERR! at Request.<anonymous> (/usr/local/Cellar/node/0.10.26/lib/node_modules/npm/node_modules/request/request.js:893:14)
npm ERR! at Request.EventEmitter.emit (events.js:117:20)
@ceejbot
ceejbot / 503-lylog.log
Created Mar 25, 2014
503 log segment, 5:51am PDT 3/25/2014
View 503-lylog.log
[root@npm-lylog-1 ~]# tail -f `svcs -L npm-lylog` | grep 5032014-03-25T12:46:21Z 62.168.11.51 "-" "PUT /more-fs" 503 "node/v0.10.26 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-fra1222-FRA"
2014-03-25T12:46:31Z 62.168.11.51 "-" "PUT /more-fs" 503 "node/v0.10.26 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-fra1233-FRA"
2014-03-25T12:46:49Z 42.120.74.198 "-" "PUT /xtpl" 503 "node/v0.10.21 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-ty67-TYO"
2014-03-25T12:46:54Z 101.119.17.213 "-" "PUT /stylus-test-runner" 503 "node/v0.10.20 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-lcy1131-LCY"
2014-03-25T12:47:11Z 101.119.17.213 "-" "PUT /stylus-test-runner" 503 "node/v0.10.26 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-lcy1122-LCY"
2014-03-25T12:47:21Z 106.187.97.235 "-" "PUT /xtpl" 503 "node/v0.10.21 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-ty68-TYO"
2014-03-25T12:47:31Z 195.162.89.170 "-" "PUT /image-set-polyfill" 503 "
@ceejbot
ceejbot / put-lylog.log
Last active Aug 29, 2015
all puts from lylog 3/26/2013
View put-lylog.log
[root@npm-lylog-1 ~]# cat `svcs -L npm-lylog` | grep PUT2014-03-25T12:10:01Z 188.134.78.99 "-" "PUT /mincer" 503 "node/v0.10.25 linux x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-fra1233-FRA"
2014-03-25T12:10:03Z 101.119.17.213 "-" "PUT /stylus-test-runner" 503 "node/v0.10.20 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-lo80-LHR"
2014-03-25T12:10:05Z 95.31.23.72 "-" "PUT /grunt-user-story" 503 "node/v0.10.26 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-am72-AMS"
2014-03-25T12:10:08Z 77.12.36.81 "-" "PUT /lake" 503 "node/v0.10.15 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-fra1223-FRA"
2014-03-25T12:10:12Z 188.134.78.99 "-" "PUT /mincer" 503 "node/v0.10.25 linux x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-fra1235-FRA"
2014-03-25T12:10:15Z 101.119.17.213 "-" "PUT /stylus-test-runner" 503 "node/v0.10.20 darwin x64" "MISS" "74oXFmUymQt07TkgNctGkn--F_SkimDB" "cache-lo83-LHR"
2014-03-25T12:10:21Z 212.88.6.196 "-" "PUT /staticcharge" 503 "node/v0.10
@ceejbot
ceejbot / strace_example
Created Apr 2, 2014
output of `strace ls`
View strace_example
ubuntu@ip-172-31-40-117:~$ strace ls
execve("/bin/ls", ["ls"], [/* 19 vars */]) = 0
brk(0) = 0x67c000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f525ac75000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=22763, ...}) = 0
mmap(NULL, 22763, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f525ac6f000
close(3) = 0
@ceejbot
ceejbot / gist:11231518
Last active Aug 29, 2015
installations of mime-1.2.11.tgz at 18:59
View gist:11231518
[root@npm-lylog-1 /var/svc/log]# grep mime site-npm-lylog\:default.log.1 | grep "1.2.11" | grep 18:59
2014-04-23T18:59:00Z 71.185.69.210 "-" "GET /npm/public/registry/mime/_attachments/mime-1.2.11.tgz" 200 "node/v0.10.26 darwin x64" "HIT" "aws_" "cache-v42-ASH"
2014-04-23T18:59:00Z 66.151.247.12 "-" "GET /mime/1.2.11" 304 "node/v0.10.26 win32 x64" "HIT" "shield__cache_c31_CHI__chi_il_us" "cache-c31-CHI"
2014-04-23T18:59:00Z 66.151.247.12 "-" "GET /mime/1.2.11" 304 "node/v0.10.26 win32 x64" "HIT" "shield__cache_v36_ASH__ashburn_va_us" "cache-v36-ASH"
2014-04-23T18:59:00Z 8.12.41.197 "-" "GET /mime/1.2.11" 304 "node/v0.10.26 sunos x64" "HIT" "shield__cache_lax1430_LAX__lax_ca_us" "cache-lax1430-LAX"
2014-04-23T18:59:00Z 8.12.41.197 "-" "GET /mime/1.2.11" 304 "node/v0.10.26 sunos x64" "HIT" "shield__cache_v41_ASH__ashburn_va_us" "cache-v41-ASH"
2014-04-23T18:59:03Z 222.127.159.33 "-" "GET /npm/public/registry/mime/_attachments/mime-1.2.11.tgz" 200 "node/v0.10.26 win32 ia32" "HIT" "aws_" "cache-hk93-HKG"
2014-04-
View uselessd.md

uselessd :: information system Edit RecentChanges Preferences Discussion logo

uselessd -- what it says on the tin, plus a complementary kitchen sink and flat tire

So, what is it?

uselessd (the useless daemon, or the daemon that uses less... depending on your viewpoint) is a project which aims to reduce systemd to a base initd, process supervisor and transactional dependency system, while minimizing intrusiveness and isolationism. Basically, it’s systemd with the superfluous stuff cut out, a (relatively) coherent idea of what it wants to be, support for non-glibc platforms and an approach that aims to minimize complicated design.

@ceejbot
ceejbot / beam.js
Created Feb 23, 2012
ICanHaz rewritten to use mote.js & ender/jquery/zepto.
View beam.js
var beam = ((typeof module !== 'undefined') && module.exports) || {};
(function(exports)
{
function trim(input)
{
if (''.trim) return input.trim();
else return input.replace(/^\s+/, '').replace(/\s+$/, '');
}
beam = {
@ceejbot
ceejbot / majordomo.js
Created Jun 9, 2012
ZeroMQ router/dealer example for node.js
View majordomo.js
var zmq = require('zmq');
function Majordomo(options)
{
this.requests = zmq.socket('router');
this.requests.identity = 'majordomo:incoming:' + process.pid;
this.responders = zmq.socket('dealer');
this.responders.identity = 'majordomo:outgoing:' + process.pid;
if (options)
this.configure(options);
@ceejbot
ceejbot / responder.js
Created Jun 9, 2012
ZeroMQ rep socket example for node.js
View responder.js
var zmq = require('zmq');
var responder = zmq.socket('rep');
responder.on('message', function(payload)
{
var data = JSON.parse(payload);
var response = {};
var keys = Object.keys(data);
for (var i = 0; i < keys.length; i++)
You can’t perform that action at this time.