echo 255|sudo tee /proc/sys/net/netfilter/nf_conntrack_log_invalid
echo ipt_LOG|sudo tee /proc/sys/net/netfilter/nf_log/2
See https://home.regit.org/2014/02/nftables-and-netfilter-logging-framework/
echo 255|sudo tee /proc/sys/net/netfilter/nf_conntrack_log_invalid
echo ipt_LOG|sudo tee /proc/sys/net/netfilter/nf_log/2
See https://home.regit.org/2014/02/nftables-and-netfilter-logging-framework/
// ssh -D 1080 remotehost | |
// save this file as something like /usr/local/etc/proxy.pac | |
// point your browser auto proxy config to this as file:///usr/local/etc/proxy.pac | |
function FindProxyForURL(url, host) { | |
PROXY = "SOCKS localhost; DIRECT" | |
// Apple.com via proxy | |
if (shExpMatch(host,"10.0.*")) { | |
return PROXY; | |
} |
#!/bin/bash -e | |
/usr/share/fk-3p-kafka/bin/kafka-topics.sh $ZOOKEEPER --describe --topic $1 \ | |
| grep Leader \ | |
| awk '{print $4,$8}' | sed 's/,/ /' \ | |
| awk '{ | |
for(i=1;i<7;++i){a[i]=0}; | |
sum[$2]++; sum[$3]++; | |
a[$2]=1; a[$3]=1; | |
printf "%3d ",$1; | |
for (i=1;i<7;++i) {printf "%3d ",a[i]}; printf "\n"; |
SheevaPlug JTAGKey FT2232D B:
Product ID: 0x9e8f
Vendor ID: 0x9e88
Download and install FTDI VCP driver from http://www.ftdichip.com/Drivers/VCP.htm
to identify our device
#!/bin/bash -e | |
set -x | |
NAME=steelman | |
BOOTDISK=boot-steelman | |
if ! ./gcutil getinstance --zone=us-central1-a ${NAME}; then | |
./gcutil addinstance \ | |
--zone=us-central1-a \ | |
--disk=${BOOTDISK},boot \ |
# all could be a single apt-get install of course. Broken down only for clarity. | |
apt-get install build-essential | |
apt-get install libicu-dev | |
apt-get install libmozjs185-dev | |
apt-get install libcurl4-openssl-dev | |
apt-get install erlang-dev erlang-eunit erlang-manpages erlang-nox | |
@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; |
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"); | |
}); |
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 { |