Skip to content

Instantly share code, notes, and snippets.

View lukebrady's full-sized avatar
Coffee Time

Luke Brady lukebrady

Coffee Time
View GitHub Profile
@lukebrady
lukebrady / port_forward_to_container.sh
Created January 19, 2016 22:01
Forwards any request to port 80 into the specified container.
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to [DestinationIP:PORT]
@lukebrady
lukebrady / ArrayGenerator.java
Created January 13, 2016 14:51
This method generates integer arrays that can be used in various operations.
//On the fly array generation.
//Luke Brady 2016
import java.util.*;
public class ArrayGenerator
{
private ArrayList<Integer> list = new ArrayList<Integer>();
int arrayLength;
ArrayGenerator(int arrayLength)
{
@lukebrady
lukebrady / list_daemon.sh
Created January 12, 2016 00:44
Lists all running Linux Daemon's.
#Lists all running Linux Daemon's
ps -eo 'tty,pid,comm' | grep ^?
@lukebrady
lukebrady / Portfolio.rb
Created January 12, 2016 00:30
Portfolio in the form of a Ruby Key-Value store.
#Skills and Experience
Luke_Brady = {
Systems_Engineering => true,
Programming_Languages => "Java, Python, C, HTML5, CSS, JavaScript, PowerShell, Bash, and Ruby",
Linux_and_Windows => true,
Distros => "Ubuntu, Fedora, Debian, CentOS, and CoreOS",
Coffee_Lover => true
}