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
| haproxy.cnf | |
| acl acl_oauth_path path_beg /oauth | |
| acl acl_4xx_status status 400 401 403 | |
| acl acl_5xx_status status 500 501 502 503 504 505 506 507 508 509 510 511 598 599 | |
| http-request track-sc0 src table oauth_4xx_table if acl_oauth_path | |
| http-request track-sc1 src table oauth_5xx_table if acl_oauth_path | |
| http-response sc-inc-gpc0(0) if acl_4xx_status |
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
| iptables -P INPUT ACCEPT | |
| iptables -P FORWARD ACCEPT | |
| iptables -P OUTPUT ACCEPT | |
| iptables -t nat -F | |
| iptables -t mangle -F | |
| iptables -F | |
| iptables -X |
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
| certbot certonly -d *.domain.com -m hostmaster@domain.com --server https://acme-v02.api.letsencrypt.org/directory --manual |
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
| https://wiki.mikrotik.com/wiki/Manual:Scripting | |
| https://wiki.mikrotik.com/wiki/Manual:Scripting-examples#Detect_new_log_entry | |
| Prepare | |
| 1. Create bot via botfather and get token | |
| 2. Add bot to chat | |
| 3. Get chat id | |
| On device |
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
| wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb | |
| sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb | |
| sudo apt-get update | |
| sudo apt-get install percona-xtrabackup-24 | |
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
| Enable millisecond resolution for java log4j for all .xml files with backup: | |
| find . -name "*xml" -print0 | xargs -0 sed -i.no_milliseconds 's/:ss/:ss\.SSS/g' |
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
| elasticsearch — FORBIDDEN/12/index read-only / allow delete (api) | |
| PUT qa-gidra-filebeat-2019.03.21/_settings | |
| { | |
| "index": { | |
| "blocks": { | |
| "read_only_allow_delete": "false" | |
| } | |
| } | |
| } |
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
| https://docs.datastax.com/en/cassandra/3.0/cassandra/operations/opsReplaceNode.html | |
| nodetool removenode ID | |
| delete from snitch | |
| restart live nodes | |
| delete data dir on false node | |
| enable bootstrap | |
| start |
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
| openssl pkcs12 -info -in keyStore.p12 |
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
| ALTER TABLE tablename MODIFY columnname VARCHAR(20) ; |
NewerOlder