Skip to content

Instantly share code, notes, and snippets.

@oko
oko / gist:6987219
Last active December 25, 2015 13:58
Install VMWare tools on PFSense
#!/bin/sh
# configure package download environment
export PACKAGEROOT="ftp://ftp.freebsd.org"
export PACKAGESITE="ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-8.3-release/Latest/"
# install perl to run the installer script
pkg_add -r perl
# install compat6x-amd64 (or compat6x-i386 if you're on 32-bit)
@oko
oko / apache-nginx-uwsgi-proxy-config.md
Created October 9, 2013 16:51
Apache-to-Nginx-to-uWSGI proxy configuration with path prefix

Apache

<LocationMatch "/theproxypath">
  ProxyPass http://[hostname]:[port]/theproxypath
  ProxyPassReverse http://[hostname]:[port]/theproxypath
</LocationMatch>

Nginx

server {
    listen       [port] default_server;

server_name [origin-hostname];

@oko
oko / mail-server-notes.md
Last active December 17, 2015 11:59
Notes on mail server configuration.

WORK IN PROGRESS

Mail Server Configuration with Virtual Domains

Security Basics

  • Use SSL. You're passing credentials and private communications over the wire, so you'd better encrypt it.
  • Don't be an open relay. Forwarding spammers' mail is a good way to get your IP blacklisted and receive some nastygrams from other webmasters
  • chroot if possible.