Skip to content

Instantly share code, notes, and snippets.

@jdevoo
jdevoo / tg2p.st
Last active February 19, 2024 22:12
Not so Terse Guide to Pharo
"**************************************************************************
* Allowable characters: *
* - a-z *
* - A-Z *
* - 0-9 *
* - .+/\*~<>@%|&? *
* - blank, tab, cr, ff, lf *
* *
* Variables: *
* - variables must be declared before use *
@larsyencken
larsyencken / fetch_and_combine.py
Created November 15, 2012 03:09
Aggregating CloudFront logs
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# fetch_and_combine.py
#
"""
Scans CloudFront logs in an S3 bucket for any that are new. Combines log files
into a single local file per hour. If logs for multiple CloudFront
distributions are present, combines them all.
@khomenko
khomenko / rabbitmq_firehose.py
Created April 30, 2012 19:53
simple rabbitmq debug firehose consumer
#!/usr/bin/env python
import pika
import sys
"""
turn firehose on with "rabbitmqctl trace_on"
"""
if __name__ == "__main__":