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/bash -eu | |
| help() { | |
| echo ' | |
| A cli to interact with the Marathon API | |
| Usage: | |
| ma-cli.sh [command] | |
| Available Commands: |
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/bash | |
| # | |
| # Gather statistics from Linux systems | |
| # | |
| # Forked from https://github.com/reyjrar/graphite-scripts/blob/master/bin/linux_basic_performance_data.sh. | |
| # | |
| # sys.sh https://login:password@opentsdb.com/api/put | |
| LANGUAGE=en_US |
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
| com.sun.management:type=DiagnosticCommand | |
| com.sun.management:type=HotSpotDiagnostic | |
| java.lang:name=CodeCacheManager,type=MemoryManager | |
| java.lang:name=Code Cache,type=MemoryPool | |
| java.lang:name=Compressed Class Space,type=MemoryPool | |
| java.lang:name=G1 Eden Space,type=MemoryPool | |
| java.lang:name=G1 Old Generation,type=GarbageCollector | |
| java.lang:name=G1 Old Gen,type=MemoryPool | |
| java.lang:name=G1 Survivor Space,type=MemoryPool | |
| java.lang:name=G1 Young Generation,type=GarbageCollector |
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 | |
| CA_CERT=ca.pem | |
| CA_KEY=ca-key.pem | |
| CLIENT_CERT=cert.pem | |
| CLIENT_KEY=key.pem | |
| SERVER_CERT=server.pem | |
| SERVER_KEY=server-key.pem | |
| STATE=FR |
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/bash -eu | |
| # | |
| # Simple Swift HTTP API wrapper | |
| # | |
| AUTH_TOKEN=?? | |
| CONTAINER_URL=https://?? | |
| CONTAINER_NAME=?? | |
| help() { |
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
| input { | |
| tcp { | |
| port => 6514 | |
| } | |
| } | |
| filter { | |
| # Match docker services | |
| grok { | |
| break_on_match => true |
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
| ee() { | |
| if [[ $NO_COLOR == "" ]]; then | |
| declare cyan="\e[36m" | |
| declare green="\e[32m" | |
| declare purple="\e[35m" | |
| declare red="\e[31m" | |
| declare reset="\e[39m" | |
| else | |
| declare cyan= | |
| declare green= |
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
| ~ thb@io | |
| > echo toto > toto | |
| ~ thb@io | |
| > chmod 400 toto | |
| ~ thb@io | |
| > cat toto | |
| toto | |
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
| version: '2' | |
| services: | |
| telegraf: | |
| image: krkr/telegraf | |
| network_mode: host | |
| env_file: | |
| - telegraf.env | |
| volumes: |
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
| DOMAIN := xxxxx | |
| all: get concat | |
| get: | |
| sudo /home/admin/.local/share/letsencrypt/bin/letsencrypt \ | |
| certonly --standalone -d $(DOMAIN) | |
| concat: | |
| DOMAIN=$(DOMAIN) \ |