Skip to content

Instantly share code, notes, and snippets.

View tlherr's full-sized avatar

Thomas Herr tlherr

View GitHub Profile
@tlherr
tlherr / gist:56c1d905683ca1ecc462e5ab78792453
Created September 13, 2021 00:55
SQL Injection Payload Examples
'
"
#
-
--
'%20--
--';
'%20;
=%20'
=%20;
@tlherr
tlherr / iptables-setup.sh
Created September 9, 2021 02:27 — forked from josephdpurcell/iptables-setup.sh
iptables setup
#!/bin/bash
# This is my script for setting up firewall rules. It's a work in progress and
# I'm not 100% convinced this is the best setup for me. But, it's a start.
# Also, many thanks to Digital Ocean from which I drew a few hints:
# https://www.digitalocean.com/community/articles/how-to-setup-a-basic-ip-tables-configuration-on-centos-6
#
# I don't like the idea of anything on the machine being able to use a port
# that isn't an application port I explicitly allow. For example, I know that I
# only want mail, DNS, HTTP(S), and SSH. But, alas! I had to allow ports
# sourced from the machine (see b) and default output policy to accept (see i)
@tlherr
tlherr / Assignment 3
Last active March 28, 2018 01:01
Cisco VPN Setup
Config for Router: Router 1
## Enable Security Package
enable
config terminal
license boot module c2900 technology-package securityk9
### PHASE 1:
enable
@tlherr
tlherr / Drupal 7 #attached js
Created December 4, 2013 16:11
Using #attached to add javascript to a block/form element in drupal.
$block['content'] = array(
'#markup' => some_markup_function(),
'#attached' => array(
'js' => array('data' => drupal_add_js(drupal_get_path('theme', 'some_theme') . '/js/misc/somescript.js')),
),
);
import os
import re
import glob
from mobi import Mobi
for fn in glob.glob('/Users/Tom/Desktop/Ebooks/*'):
print "Renaming {}".format(fn)
if os.path.isfile(fn):
book = Mobi(fn);

Project

Description: What does this project do and who does it serve?

Project Setup

How do I, as a developer, start working on the project?

  1. What dependencies does it have (where are they expressed) and how do I install them?
  2. How can I see the project working before I change anything?