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
| export JMX_PORT=${JMX_PORT:-9999} | |
| export KAFKA_JMX_OPTS="-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.rmi.port=$JMX_PORT -Dcom.sun.management.jmxremote.port=$JMX_PORT -Dcom.sun.management.jmxremote=true -Djava.rmi.server.hostname=<IP ADDRESS> -Djava.net.preferIPv4Stack=true" | |
| export KAFKA_HEAP_OPTS="-Xmx6G -Xms6G" |
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
| PURGE BINARY LOGS BEFORE '2050-01-01 00:00:00'; |
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
| device { | |
| vendor "IBM " | |
| product "2145" | |
| path_grouping_policy group_by_prio | |
| prio_callout "/sbin/mpath_prio_alua /dev/%n" | |
| features "1 queue_if_no_path" | |
| path_checker tur | |
| } |
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
| goaccess -f haproxy.log --log-format='%^ %^ %^:%^:%^ %^ %^[%^]: %h:%^ [%d:%t.%^] %^ %^ %^/%^/%^/%^/%L %s %b %^ %^ %^ %^/%^/%^/%^/%^ %^/%^ "%r"' --date-format='%d/%b/%Y' --time-format='%H:%M:%S' -q -a > /tmp/ha-output.html |
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
| <VirtualHost *:80> | |
| ServerName www.mywebsite.com | |
| DocumentRoot /home/www/mywebsite | |
| ... | |
| SetEnvIf Request_URI "(.*)foo(.*)" dontlog | |
| CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log vhost_combined env=!dontlog | |
| </VirtualHost> |
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
| [Unit] | |
| Description=A Spring Boot application | |
| After=syslog.target | |
| [Service] | |
| User=baeldung | |
| ExecStart=/path/to/your-app.jar SuccessExitStatus=143 | |
| [Install] | |
| WantedBy=multi-user.target |
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
| var jsonData = JSON.parse(responseBody); | |
| postman.setEnvironmentVariable("session_id", jsonData.session_id); | |
| postman.setEnvironmentVariable("audit", jsonData.audit); |
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
| [mysqld] | |
| ## General | |
| user=mysql | |
| datadir=/var/lib/mysql | |
| pid-file = /var/run/mysqld/mysqld.pid | |
| log_bin_trust_function_creators=1 | |
| # SAFETY # | |
| max-allowed-packet = 16M | |
| max-connect-errors = 1000000 | |
| group_concat_max_len = 10000000 |
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
| # Disable temporarily | |
| echo 0 > /selinux/enforce | |
| # Or | |
| setenforce 0 | |
| # Or | |
| setenforce Permissive | |
| # Disable SELinux Permanently | |
| vim /etc/sysconfig/selinux |
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
| systemctl disable firewalld | |
| systemctl stop firewalld |