Skip to content

Instantly share code, notes, and snippets.

@nickjones
nickjones / curl_timing_trace.log
Created September 28, 2011 14:41
Example outputs from strace and curl with timing on
09:31:08.771995 == Info: About to connect() to localhost port 3000 (#0)
09:31:08.772321 == Info: Trying 127.0.0.1... 09:31:08.772470 == Info: connected
09:31:08.772500 == Info: Connected to localhost (127.0.0.1) port 3000 (#0)
09:31:08.772635 => Send header, 155 bytes (0x9b)
0000: GET / HTTP/1.1
0010: User-Agent: curl/7.21.3 (x86_64-pc-linux-gnu) libcurl/7.21.3 Ope
0050: nSSL/0.9.8o zlib/1.2.3.4 libidn/1.18
0076: Host: localhost:3000
008c: Accept: */*
0099:
@nickjones
nickjones / oozie-site.xml
Created December 1, 2011 16:54
oozie-site.xml trying to automatically include streaming jar for all jobs
...
<property>
<name>oozie.service.WorkflowAppService.system.libpath</name>
<value>/user/oozie/share/lib</value>
<description>
System library path to use for workflow applications.
This path is added to workflow application if their job properties sets
the property 'oozie.use.system.libpath' to true.
</description>
</property>
@nickjones
nickjones / syntax2html_ex.html
Created January 13, 2012 17:29
Vim syntax to html example (my .vimrc)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>~/.vimrc</title>
<meta name="Generator" content="Vim/7.3">
<meta name="plugin-version" content="vim7.3_v8">
<meta name="syntax" content="vim">
<meta name="settings" content="number_lines,use_css,expand_tabs">
<style type="text/css">
@nickjones
nickjones / brewstatus2beersmith.py
Created January 9, 2021 15:11
Convert exported CSV from www.brewstat.us into a format suitable to import into BeerSmith3 using the normal "Import CSV" feature, not the Tilt one.
#!/usr/bin/env python3
import argparse
import csv
import time
argparser = argparse.ArgumentParser()
argparser.add_argument('--input', help='Input CSV from BrewStatus')
argparser.add_argument('--output', help='Output CSV filename to write')
args = argparser.parse_args()