Skip to content

Instantly share code, notes, and snippets.

View ivarprudnikov's full-sized avatar
🌍
Vivamus, moriendum est.

Ivar (aɪvɑr) ivarprudnikov

🌍
Vivamus, moriendum est.
View GitHub Profile
#! /bin/bash
#chkconfig: 2345 95 20
#description: iptables rules to prevent communication on unused ports.
IPT=/sbin/iptables
#Reset all rules (F) and chains (X), necessary if have already defined iptables rules
$IPT -F
#Start by blocking all traffic, this will allow secured, fine grained filtering
@ivarprudnikov
ivarprudnikov / node.conf
Last active December 14, 2015 13:38
upstart node.conf for launching node app with npm and installing dependencies on amazon ubuntu ami
# /etc/init/node.conf
description 'node.js app production'
author 'ivarprudnikov.com'
env NAME=app-name
env ENV=production
env PORT=8080
env LOG_FILE=/var/log/app-name.log
env USER=ubuntu
env NPM_BIN=/usr/bin/npm
env APP_LOCATION=/var/www/thisismyapp