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
@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 / 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 / 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-
@ceejbot
ceejbot / monitoring.md
Last active Nov 17, 2018
monitoring manifesto
View monitoring.md

monitoring: what I want

I've recently shifted from a straight engineering job to a job with a "dev/ops" title. What I have discovered in operations land depresses me. The shoemaker's children are going unshod. Operations software is terrible.

What's driving me craziest right now is my monitoring system.

what I have right now

What I have right now is Nagios.

@ceejbot
ceejbot / proposal.md
Last active Nov 25, 2015
monitoring proposal
View proposal.md

Go here for the latest + some code.

numbat

An alerting engine for a metrics & monitoring system.

This is the same approach I wanted in my initial spike, only instead of writing a custom collector & using an existing alerting engine (riemann), I'm proposing using an existing collector (hekad) and writing the alerting engine.

The system

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 / curl-test.shell
Created Jul 6, 2016
Curling a file with a negative mtime
View curl-test.shell
$ touch -t 196508231405.14 ./test.tgz"
$ stat ./test.tgz
File: ‘test.tgz’
Size: 6012 Blocks: 16 IO Block: 4096 regular file
Device: 900h/2304d Inode: 127402426 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ ubuntu) Gid: ( 1000/ ubuntu)
Access: 1965-08-23 14:05:14.000000000 +0000
Modify: 1965-08-23 14:05:14.000000000 +0000
Change: 2016-07-06 17:35:26.871223783 +0000
@ceejbot
ceejbot / README.md
Last active Apr 7, 2017
How I set up a mastodon instance on AWS with ansible on ubuntu trusty
View README.md
You can’t perform that action at this time.