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
| [ | |
| { | |
| "id": 114255956, | |
| "name": "react-i18n", | |
| "full_name": "connectedcars/react-i18n", | |
| "owner": { | |
| "login": "connectedcars", | |
| "id": 23233019, | |
| "avatar_url": "https://avatars1.githubusercontent.com/u/23233019?v=4", | |
| "gravatar_id": "", |
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 |