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
kubectl get — no-headers secret | awk '{print $1}' | \ | |
xargs -I{} sh -c 'kubectl get secret -o yaml "$1" > "$1.yaml"' — {} |
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
const letters = 'abcdefghijklmnopqrstuvxyzæøå' | |
const numbers = '0123456789' | |
const list = (letters + numbers).split('') | |
exports.generate = function* generate(length) { | |
function* gen(length) { | |
for(var i = 0; i < list.length; i++) { | |
if(length > 1) { | |
for (const val of gen(length - 1)) { |
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
if ('serviceWorker' in navigator) { | |
navigator.serviceWorker.getRegistrations().then(function(registrations) { | |
for(let registration of registrations) { | |
registration.unregister() | |
} | |
}) | |
} |
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
FROM alpine:latest | |
LABEL caddy_version="dev" architecture="amd64" | |
ENV GOPATH="/go" | |
EXPOSE 80 443 2015 | |
ENTRYPOINT [ "/usr/bin/caddy" ] |
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
0xD6Ab0A0f94C5E276051145F3C009C6E7CD75624A |
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
ps -eo rss,comm | grep Slack | awk '{print $1}' | paste -s -d '+' - | bc | awk '{printf( "%0.2f GiB\n", $1/1024^2 )}' |
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
ab -c 100 -n 100000 -T application/json -p data.json http://localhost:9000/collector |
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
docker run -d --name elastic -p 9200:9200 elasticsearch | |
Check port 9200 | |
docker run -d --name logstash -v $PWD/logstash:/etc/logstash/conf.d -v $PWD/test.log:/host/var/log/test.log --link elastic logstash logstash -f /etc/logstash/conf.d --debug | |
docker run -d --name kibana -p 5601:5601 --link elastic -e ELASTICSEARCH_URL=http://elastic:9200 kibana | |
test.log: | |
example |
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
You need to run every command with Ctrl+b | |
## Split panes | |
Split horizontal: % | |
Split vertical: " | |
Close pane: x | |
## Pane navigation | |
Show numbers: q | |
Go to next pane: o |
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
brew info hyper | |
hyper: stable 1.10 (bottled), HEAD | |
Client for the Hyper_ cloud service | |
https://hyper.sh | |
/usr/local/Cellar/hyper/1.10 (7 files, 11.3M) * | |
Poured from bottle on 2016-08-12 at 13:00:27 | |
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/hyper.rb | |
==> Dependencies | |
Build: go ✘ | |
kevinsimper@MacBook-Pro:[~/Projects/hyper-loadbalancer]: |