Skip to content

Instantly share code, notes, and snippets.

View lukespragg's full-sized avatar

Luke Spragg lukespragg

View GitHub Profile
@lukespragg
lukespragg / botnet.html
Created August 12, 2014 20:19
Bob's botnet
<style type="text/css">
#console {
width: 800px;
height: 500px;
background-color: #000;
color: #00FF00;
font-family: 'lucida console', arial;
font-size: 12px;
font-weight: bold;
padding: 5px;

Keybase proof

I hereby claim:

  • I am lukespragg on github.
  • I am lukespragg (https://keybase.io/lukespragg) on keybase.
  • I have a public key whose fingerprint is CA52 D124 60B7 776E 98A3 185F B87C 537F 95CD 260B

To claim this, I am signing this object:

@lukespragg
lukespragg / nginx.conf
Created May 14, 2014 23:09
Vanilla Forums traditional layout rewrites for NGINX
# Vanilla Forums: traditional vs flat
location = /discussions {
rewrite ^ $scheme://$server_name permanent;
}
location = /discussions/ {
rewrite ^ $scheme://$server_name permanent;
}
location = /categories/discussions {
rewrite ^ $scheme://$server_name permanent;
}
#!/bin/bash
clear
prompt="Pick select a task: "
options=("Generate Certificate Signing Request" "Generate Chained Certificate" "Decrypt Private Key")
PS3="$prompt "
select opt in "${options[@]}" "Quit"; do
case "$REPLY" in
1 ) echo "You picked \"$opt\""
@lukespragg
lukespragg / maven-proguard.xml
Created May 9, 2014 19:31
ProGuard obfuscation configuration for Maven
<!-- ProGuard obfuscation plugin -->
<plugin>
<groupId>com.github.wvengen</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<version>2.0.6</version>
<executions>
<execution>
<configuration>
<proguardVersion>4.9</proguardVersion>
<options>
<!-- Site generation plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
<dependencies>
<dependency>
<groupId>lt.velykis.maven.skins</groupId>
<artifactId>reflow-velocity-tools</artifactId>
<version>1.0.0</version>
@lukespragg
lukespragg / maven-github-deploy.xml
Created April 26, 2014 02:44
Javadocs GitHub deployment for Maven
<!-- Javadocs GitHub deployment -->
<plugin>
<groupId>com.github.github</groupId>
<artifactId>site-maven-plugin</artifactId>
<version>0.7</version>
<executions>
<execution>
<configuration>
<server>github-deploy</server>
<repositoryName>${project.name}</repositoryName>
@lukespragg
lukespragg / .travis.yml
Created April 26, 2014 01:18
Maven and Travis-CI with SonarQube - http://www.sonarqube.org/
# Check if today is Sunday, if commit is not a pull request, if git repo is official, and if branch is master. If checks pass, run Sonar reports
- "[[ $(date +%u) -gt 5 ]] && [[ $TRAVIS_PULL_REQUEST == false ]] && [[ $TRAVIS_REPO_SLUG == RepoOrg/RepoName ]] && [[ $TRAVIS_BRANCH == master ]] && mvn sonar:sonar"
@lukespragg
lukespragg / auto-smile.js
Created December 2, 2013 21:14
Automatically redirect www.amazon.com to smile.amazon.com to support your selected charity.
// ==UserScript==
// @name Amazon Auto-Smile
// @namespace
// @version 0.1
// @description Automatically redirects all www.amazon.com URLs to their smile.amazon.com equivalent.
// @match http://www.amazon.com/*
// @match https://www.amazon.com/*
// @run-at document-start
// @copyright 2013
// ==/UserScript==
#!/bin/bash
MCP_VERSION="721"
FORGE_VERSION="latest"
MCP_URL="https://dl.dropbox.com/s/dao8itysfwuhj9q/mcp$MCP_VERSION.zip?dl=1"
FORGE_URL="http://files.minecraftforge.net/minecraftforge-src-$FORGE_VERSION.zip"
mkdir -p forge
cd forge