Skip to content

Instantly share code, notes, and snippets.

View cpanxaoc's full-sized avatar

Brian Manning cpanxaoc

View GitHub Profile
@cpanxaoc
cpanxaoc / gist:6178556dd4426becd9b7
Last active August 29, 2015 14:21
Rex iptables DSL example
iptables table => q(filter),
append => q(INPUT),
protocol => q(tcp),
match => q(state),
state => q(NEW),
dport => 22,
jump => q(ACCEPT);
iptables table => q(filter),
append => q(INPUT),
protocol => q(tcp),
#!/usr/bin/perl
#
# The GtkListStore is used to store data in list form, to be used
# later on by a GtkTreeView to display it. This demo builds a
# simple GtkListStore and displays it. See the Stock Browser
# demo for a more advanced example.
#
# Perl version by Dave M <dave.nerd@gmail.com>
use strict;