I hereby claim:
- I am tolleiv on github.
- I am tolleiv (https://keybase.io/tolleiv) on keybase.
- I have a public key ASAhYrggSYUZyL__mexfVzK1c5YE7nVPf1GbW4NZZ-tzJQo
To claim this, I am signing this object:
# | |
# Configure php error log filtering | |
# | |
filter { | |
if [type] == "php-error" { | |
multiline { | |
pattern => "%{SYSLOG5424SD:timestamp} PHP (?:%{LOGLEVEL:loglevel})" | |
negate => true | |
what => "previous" | |
} |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
FILE=$1 | |
function remove_comments { | |
sed -e 's/#.*$//' | |
} | |
OPEN_BRACES=$(cat $FILE | remove_comments | fgrep -o \{ | wc -l) |
#!/bin/bash | |
docker network create --driver bridge es_nw | |
docker run -d --name es_master --network=es_nw -p 9200:9200 tolleiv/misc:elaticsearch_w_hq | |
docker run -d --name es_node1 --network=es_nw tolleiv/misc:elaticsearch_w_hq elasticsearch --discovery.zen.ping.unicast.hosts=es_master | |
docker run -d --name es_node2 --network=es_nw tolleiv/misc:elaticsearch_w_hq elasticsearch --discovery.zen.ping.unicast.hosts=es_master | |
docker run --rm -e ES_URL=es_master:9200 --network=es_nw tolleiv/misc:es_sampledata |
begin remote | |
name pacman | |
bits 16 | |
flags SPACE_ENC | |
eps 30 | |
aeps 100 | |
header 9101 4482 |
ESP8266 with DHT22 temperature and humidity readings, connected to the local wifi, readings sent to the local mqtt server which is discovered with Multicast DNS.
Realted: https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266WiFi/examples/WiFiClient/WiFiClient.ino https://github.com/knolleary/pubsubclient https://sgsmarthomeblog.blogspot.de/2017/01/auto-discover-mqtt-server-using-arduino.html?showComment=1492546691374#c3187617439741375862
#!/bin/sh | |
while read -r line ; do | |
DIR=$(dirname $line) | |
ORIG_IFS=$IFS | |
IFS='/' | |
subpath="" | |
for i in $DIR; do | |
subpath+="$i/" | |
echo "$subpath" | |
done |
kubectl create serviceaccount --namespace kube-system tiller | |
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller | |
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}' | |
helm init --service-account tiller --upgrade | |
helm list |
set -e # Fail fast | |
DISTRIBUTION_ID=xxxxxxxxxxxxxxxx | |
BUCKET_NAME=xxxxxxxxxxxxxx | |
aws s3 sync --acl "public-read" --sse "AES256" public/ s3://$BUCKET_NAME --exclude 'post' | |
aws cloudfront create-invalidation --distribution-id $DISTRIBUTION_ID --paths /index.html / /page/* |
Jenkins.instance.getItemByFullName("JobName").getBuildByNumber(JobNumber).finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build")); |