Skip to content

Instantly share code, notes, and snippets.

@edencorbin
edencorbin / gist:b4c10f24b4a7d05062895fcad8dc9742
Created October 30, 2017 12:48
Sails 1.0 Winston Daily Rotate File
var winston = require('winston');
require('winston-daily-rotate-file');
var logger = new (winston.Logger)({
transports: [
new (winston.transports.Console)({
level: 'verbose',
colorize: false,
json: false
}),
@edencorbin
edencorbin / gist:10bf8f53bdde45a0d758
Last active February 9, 2016 21:40
iptables_configuration
flush
iptables -F
drop all input (note this will end an ssh session, further commands need to be run as root from console)
iptables -P INPUT DROP
block null packets