Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am tarnacious on github.
  • I am tarnacious (https://keybase.io/tarnacious) on keybase.
  • I have a public key ASA9h55GfuPJFf5iHgJutAMECbPW5r3ga84rlcL5Y108hgo

To claim this, I am signing this object:

@tarnacious
tarnacious / german
Created October 10, 2016 00:38
German learning
bieten etwas an - are offering, offer, bid
Gebot - offer, bid, precept
Aktien - shares, stocks, share
Beschreibung - description
Verlag - publishing house, publishing company, publisher
Zustimmung - consent, approval, agreement
Bericht - report
Meldungen - announcements, messages, reports
Mitteilung - message, note, announcement
Meinung - opinion, view
Wheel circumference = 2136mm (700x28C)
Peak confortable speed = 35km/h
Front sprocket teeth = 48
Brack sprocket teeth = 17
Wheel revolutions per hour = 35 * 1000 * 1000 / 2136
= 16385.7677903
Pedal revolutions per hour = 16385.7677903 / (48 / 17)
5803.29275906
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.33.10 (be patient)
Server Software: nginx/1.6.2
Server Hostname: 192.168.33.10
Server Port: 9100
bootable/newinstaller/Android.mk | 4
bootable/newinstaller/boot/efi/boot/grub.cfg | 27
bootable/newinstaller/boot/isolinux/isolinux.cfg | 14
bootable/newinstaller/install/scripts/1-install | 36
device/consoleos/asus_t100ta/AndroidProducts.mk | 18
device/consoleos/asus_t100ta/BoardConfig.mk | 104
device/consoleos/asus_t100ta/asus_t100ta.mk | 34
device/consoleos/asus_t100ta/overlay/frameworks/base/core/res/res/values/config.xml
@tarnacious
tarnacious / actual output
Last active December 18, 2015 12:58
Strange elasticsearch search behaviour?
{"acknowledged":true}
{"acknowledged":true}
{"_index":"text-index","_type":"user","_id":"AVG0hasF-Z9PaJz0rP2W","_version":1,"created":true}
{"took":1,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0},"hits":{"total":1,"max_score":0.30685282,"hits":[{"_index":"text-index","_type":"user","_id":"AVG0hasF-Z9PaJz0rP2W","_score":0.30685282,"_source":
{
"address":
{
"description": "Walked"
}
@tarnacious
tarnacious / make_maildir.py
Created December 3, 2015 18:49
All mail clients suck. This one just sucks less.
import mailbox
import random
import os
# sample messages from my mail archive
sample_maildir = mailbox.Maildir('~/MailDir/private/archive')
sample_messages = sample_maildir.values()
# create a new maildir with two mailboxes
os.mkdir("./TestMaildir")
@tarnacious
tarnacious / Dockerfile
Last active November 16, 2015 15:34 — forked from anonymous/stdin
stdin
# Dockerfile
FROM debian:stretch
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
build-essential \
make \
curl \
boxer \
cpio \
@tarnacious
tarnacious / custom_datetype.py
Last active August 29, 2015 14:23
Schematics Custom Datetime Type
from dateutil.parser import parse
from schematics.exceptions import ConversionError
from schematics.types import BaseType
import datetime
class CustomDateTimeType(BaseType):
""" Uses dateutil to parse date string and a serialized format to
strftime it back
import redis
r = redis.StrictRedis(host='localhost', port=6379, db=0)
r.publish('tweets',tweet_json)