This file contains 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://gist.github.com/gretel/f458cfcfc63850c3d3f5 | |
# | |
# $OpenBSD: sysctl.conf,v 1.58 2014/07/11 16:43:07 henning Exp $ | |
# | |
# This file contains a list of sysctl options the user wants set at | |
# boot time. See sysctl(3) and sysctl(8) for more information on | |
# the many available variables. | |
# | |
net.inet.ip.forwarding=1 # 1=Permit forwarding (routing) of IPv4 packets | |
#net.inet.ip.mforwarding=1 # 1=Permit forwarding (routing) of IPv4 multicast packets |
This file contains 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 | |
#must be url where i get it (thanks to Author) | |
# Info | |
# --- | |
# script can run with the domain as a command line input | |
# `sudo ./nginx_domain.sh my_domain.com` or without and | |
# the script will prompt the user for input | |
#config | |
web_root='/usr/share/nginx/' |
This file contains 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$ | |
#title :/etc/nginx/common/wpcommon.conf | |
#description :ftmon cluster nginx common configurations for Wordpress. | |
#author :Danny W Sheehan | |
#date :July 2014 | |
#website :ftmon.org | |
# | |
# This is a work in progress. A lot of trial and error and man hours have | |
# gone into this configuration. I have referenced sources that have been |
This file contains 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$ | |
#title :/etc/nginx/common/nginx.conf | |
#description :ftmon cluster nginx common config for all sites. | |
#author :Danny W Sheehan | |
#date :July 2014 | |
#website :ftmon.org | |
# | |
# This is a work in progress. A lot of trial and error and man hours have | |
# gone into this configuration. I have referenced sources that have been |
This file contains 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$ | |
#title :/etc/haproxy/haproxy.cfg | |
#description :ftmon cluster haproxy config. NGINX and XtraDB Cluster backend | |
#author :Danny W Sheehan | |
#date :July 2014 | |
#website :ftmon.org | |
# | |
# This is a work in progress. A lot of trial and error and man hours have | |
# gone into this configuration. I have referenced sources that have been |
This file contains 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
lsof -n -p {procpid} |
This file contains 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
ss -4t -p -e -m -p |
This file contains 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
startup_message off | |
vbell off | |
defutf8 on | |
nonblock on | |
# Window numbering starts at 1, not 0. | |
bind c screen 1 | |
bind ^c screen 1 | |
bind 0 select 10 | |
screen 1 | |
altscreen on |
This file contains 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
netstat -ntaoep |
This file contains 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.mozilla.org/SecurityEngineering/x509Certs (read it) | |
#openssl minimum version 1.0.1 | |
export somedomainname="example.com" | |
#cat > openssl.ss.cnf << EOF | |
#basicConstraints = CA:FALSE | |
#subjectAltName =DNS:$somedomainname | |
#extendedKeyUsage =serverAuth | |
#EOF | |
#generate Elliptic Curve Cryptography Self Signed Key | |
openssl req -new -x509 -sha256 -nodes \ |