As configured in my dotfiles.
start new:
tmux
start new with session name:
| #!/sbin/runscript | |
| [[ -z "${PIDFILE}" ]] && PIDFILE="/var/run/gunicorn/${SVCNAME}.pid" | |
| [[ -z "${BINARY}" ]] && BINARY="/usr/bin/gunicorn" | |
| depend() { | |
| need net | |
| use dns logger netmount | |
| } |
| fs.file-max = 65535 | |
| fs.inode-max = 32768 | |
| fs.suid_dumpable = 0 | |
| kernel.core_uses_pid = 1 | |
| kernel.exec-shield = 1 | |
| kernel.maps_protect = 1 | |
| kernel.msgmax = 65536 | |
| kernel.msgmnb = 65536 | |
| kernel.panic = 30 | |
| kernel.panic_on_oops = 30 |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| auth_basic "Restricted"; | |
| auth_basic_user_file /etc/nginx/htpasswd; |
| #!/bin/sh | |
| set -o xtrace | |
| . /lib/svc/share/smf_include.sh | |
| cd / | |
| PATH=/usr/sbin:/usr/bin:/opt/custom/bin:/opt/custom/sbin; export PATH | |
| case "$1" in |
| #!/bin/bash | |
| if [[ -f /tmp/aliases.old ]]; then | |
| rm -f /tmp/aliases.old | |
| fi | |
| if [[ -f /tmp/aliases.txt ]]; then | |
| mv /tmp/aliases.txt /tmp/aliases.old | |
| fi |
| ## | |
| ## This nginx.conf servers as the main config file for webflow reverse proxy | |
| ## | |
| ## RCS: | |
| ## https://gist.github.com/sansmischevia/5617402 | |
| ## | |
| ## Hardening tips: | |
| ## http://www.cyberciti.biz/tips/linux-unix-bsd-nginx-webserver-security.html | |
| ## |
These are my notes basically. At first i created this gist just as a reminder for myself. But feel free to use this for your project as a starting point. If you have questions you can find me on twitter @thomasf https://twitter.com/thomasf This is how i used it on a Debian Wheezy testing (https://www.debian.org/releases/testing/)
Discuss, ask questions, etc. here https://news.ycombinator.com/item?id=7445545
| input { | |
| file { | |
| path => "/path/to/exim/mainlog" | |
| start_position => 'beginning' | |
| sincedb_path => "/dev/null" | |
| } | |
| # udp { | |
| # port => 5000 | |
| # type => syslog | |
| # } |