- 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
| @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); | |
| } |
- 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
| #!/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
| 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
| 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
| import com.yammer.dropwizard.util.Duration; | |
| import com.google.common.cache.*; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import java.util.concurrent.*; | |
| import static com.google.common.base.Throwables.propagateIfInstanceOf; | |
| public class LocalAppConfigStorage implements AppConfigStorage { |
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
| var r = require('redis'); | |
| r.debug_mode = true; | |
| var redis = r.createClient(), | |
| allRows = [], | |
| migrated = 0; | |
| redis.on("end", function(){ | |
| console.log("we should be done here"); | |
| }); |
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
| @import url(http://fonts.googleapis.com/css?family=Open+Sans:300); | |
| body { | |
| font-family: helvetica,arial,freesans,clean,sans-serif; | |
| } | |
| #head h1, | |
| .markdown-body h2, | |
| .markdown-body h1 { | |
| font-weight: 300; | |
| font-family: 'Open Sans', helvetica, sans-serif; |