- kairosdb - opentsdb fork with cassandra support
- ning/galaxy, airship - deployment system
- leveldb, hawtdb - kv database
- snappy, lzf - compression library
- swift, nifty - thrift
- jcommander, airlift - cli getopt
- async-http-client
- grizzly, netty, atmosphere, vert.x
- lessfs - dedup fs
- eventsourced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| zgrep -h configuration cfgsvc-access* | |
| |awk '{print $4, $11}' | |
| |colrm 1 1 | |
| |perl -MDate::Parse -ane 'print str2time($F[0]) . " $F[1]\n"' | |
| > all.csv | |
| # gnuplot> plot 'all.csv' using 1:2 with points pointtype 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://slackhacker.com/2010/07/21/how-to-set-a-custom-dns-server-with-java-system-properties/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh -e | |
| FILE=$1 | |
| gnuplot << EOF | |
| set noautoscale | |
| set autoscale x | |
| set autoscale ymax | |
| set autoscale y2max | |
| set logscale x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @JsonDeserialize(contentUsing = Foo.class) | |
| private static class Permissions extends HashMap<String, List<String>> { | |
| } | |
| private static class Foo extends StdDeserializer<Collection<String>> { | |
| protected Foo() { | |
| super(Collection.class); | |
| } |
- Excellent idea on returning ldap groups as principals.
- Then we can put all permissions into another realm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local hostname = os.getenv("HOSTNAME") | |
| local package = os.getenv("PACKAGE") | |
| assert(hostname, "HOSTNAME env variable is not set") | |
| assert(package, "PACKAGE env variable is not set") | |
| local privateKey = "/usr/share/" .. package .. "/etc/id_rsa" | |
| settings { | |
| statusFile = "/var/run/" .. package .. "/lsyncd.stat", | |
| statusInterval = 60, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl -w | |
| use Sys::Hostname; | |
| use Date::Parse; | |
| # extract date string and time | |
| # convert date string to epoch | |
| # format string for carbon | |
| # publish | |
| m/\[(.*)\]:.*: (.*)s ;.*/; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| #set -x | |
| SEND="nc -v -v -q2 w3-api3 2003" | |
| #SEND=cat | |
| SED="sed s/[%/]//gI" | |
| SADF="sadf -s $1 /var/log/sysstat/$2 --" | |
| $SADF -d | grep 'dev254-[278]' | $SED | awk '{print "sys.hostmetrics." $1 ".deviceio." $4 "." $5 ".per_min", $6, $3}' | $SEND |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html> | |
| <head> | |
| <style> | |
| #psy { | |
| height: 30px; | |
| width: 20px; | |
| border-bottom: 5px double black; | |
| background: url(logo_dancing_psy-vflsJl9hC.gif) no-repeat -73px 1px; | |
| position: absolute; |