Skip to content

Instantly share code, notes, and snippets.

View deffjay's full-sized avatar

Jeff Day deffjay

View GitHub Profile
@deffjay
deffjay / AutoGrunt.py
Last active October 4, 2020 23:59
AutoGrunt
# Jeff Day - 2013
# Sublime plugin that invokes Grunt whenever the user saves a file within the current project.
# call to RSYNC project to remote server via RSync
#
# October 27, 2013 - Updated this to work using Sublime Text 3 (Jeff)
# November 10, 2013 - Now compatible with OSX Mavericks (Jeff)
# January 2, 2014 - Switched over to Grunt (Tom)
import sublime, sublime_plugin
import json, os, subprocess, functools
@deffjay
deffjay / CentOS Web Server Firewall Config
Last active December 20, 2015 18:59
How to open up the firewall to allow port 80 (HTTP), 443 (HTTPS) and port 22 (SSH) for CentOS
# vim /etc/sysconfig/iptables
#
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT