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
| #user nobody | |
| worker_processes 4; | |
| error_log /var/log/nginx/error.log warn; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { |
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
| ---------------------------------------------------------------------------------------------------- | |
| tcpdump -s 0 #capture entire etherner header and IP packet | |
| tcpdump -ni tap55ec3c7f-91 ip6 #locate the ICMPv6 packets | |
| tcpdump -s0 -n -i any -w /tmp/$(hostname)-smbtrace.pcap #if the SMB client or SMB server is a Unix host,Troubleshooting Server Message Block (SMB) | |
| tcpdump -D #Print the list of the network interfaces available on the system and on which tcpdump can capture packet | |
| tcpdump -X -vvv -n -i eth0 |
SHOW ENGINE INNODB STATUS \G
Look for the Section -
TRANSACTIONS
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: '3' | |
| services: | |
| nginx-web: | |
| image: nginx | |
| labels: | |
| com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true" | |
| container_name: ${NGINX_WEB:-nginx-web} | |
| restart: always | |
| ports: | |
| - "${IP:-0.0.0.0}:80:80" |
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
| # use a certain pyenv version | |
| use_python() { | |
| if [ -n "$(which pyenv)" ]; then | |
| local pyversion=$1 | |
| pyenv local ${pyversion} | |
| fi | |
| } | |
| layout_virtualenv() { | |
| local pyversion=$1 |
- Install
ipset:
apt-get install ipset- Create new ipset:
ipset create tor iphash
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
| Server 2 sockets,6 cores each, 2.4ghz | |
| # Set ixgbe options | |
| # Limit RSS queues to the number of physical cores per cpu | |
| # Disable offload | |
| # When you change this, you need to run the command and reboot for it to take. | |
| echo "options ixgbe LRO=0,0 MQ=1,1 RSS=6,6 VMDQ=0,0 vxlan_rx=0,0" > /etc/modprobe.d/ixgbe.conf | |
| # Shut down HT cores | |
| for i in $(seq 1 2 23); do |






