Skip to content

Instantly share code, notes, and snippets.

Johan Jatko ArmedGuy

Block or report user

Report or block ArmedGuy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ArmedGuy /
Created Nov 16, 2015
Script for running a Nginx edge server that reverse proxies to internal servers.
#!/usr/bin/env python
import sys
import os
import os.path
import subprocess
nginx_conf = """
server {
server_name %s;
ArmedGuy /
Created Jan 11, 2015
Implementation of huffman encoding with no regards to performance. Only idiots would use this
class BinaryTree:
def __init__(self, rootNode):
self.root = rootNode
def __getNodes(self):
return [self.root] + self.root.nodes
nodes = property(__getNodes)
class BinaryNode:
def __init__(self, name, value):
from university import LTU
class data14(LTU):
def __init__(self, tits):
if tits == True:
ArmedGuy / commandos3.txt
Created Dec 29, 2013
Fixes for Commands 3
View commandos3.txt
ArmedGuy / bf2rcon.js
Created Oct 21, 2013
Battlefield 2 RCon module
View bf2rcon.js
var net = require('net');
var crypto = require('crypto');
var util = require('util');
var events = require('events');
function rcon(options) {
$rcon = this;
this.client = net.connect(
port: options.port
ArmedGuy /
Created Sep 12, 2013
RamNode Installation Script
apt-get update
apt-get upgrade
apt-get remove --purge apache2*
apt-get remove --purge bind9*
apt-get remove --purge xinetd*
apt-get install nano
ArmedGuy / poke.js
Created Apr 22, 2013
Poke-delen av koden
View poke.js
setInterval(function() {
for(i in a){if(a[i].className == "uiIconText")
if(a[i].getAttribute("ajaxify").indexOf("pokeback=1") !== -1) {
}, 500);
ArmedGuy /
Last active Dec 16, 2015
Autopoke till Facebook
You can’t perform that action at this time.