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
ArmedGuy / webedge.py
Created Nov 16, 2015
Script for running a Nginx edge server that reverse proxies to internal servers.
View webedge.py
#!/usr/bin/env python
import sys
import os
import os.path
import subprocess
nginx_conf = """
server {
server_name %s;
@ArmedGuy
ArmedGuy / huffman.py
Created Jan 11, 2015
Implementation of huffman encoding with no regards to performance. Only idiots would use this
View huffman.py
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):
View data14.py
from university import LTU
class data14(LTU):
def __init__(self, tits):
if tits == True:
self.welcome()
else:
self.gtfo()
#JOMO #geFanI #KKKK
@ArmedGuy
ArmedGuy / commandos3.txt
Created Dec 29, 2013
Fixes for Commands 3
View commandos3.txt
http://steamcommunity.com/app/6840/discussions/0/864973760877927926/
https://sites.google.com/site/xbootx/home/commandos3
@ArmedGuy
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(
{
host: options.host,
port: options.port
@ArmedGuy
ArmedGuy / clean-shit-up.sh
Created Sep 12, 2013
RamNode Installation Script
View clean-shit-up.sh
#!/bin/sh
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
ArmedGuy / poke.js
Created Apr 22, 2013
Poke-delen av koden
View poke.js
setInterval(function() {
a=document.getElementsByTagName("a");
for(i in a){if(a[i].className == "uiIconText")
{
if(a[i].getAttribute("ajaxify").indexOf("pokeback=1") !== -1) {
a[i].click();
}
}
}
}, 500);
@ArmedGuy
ArmedGuy / poke.md
Last active Dec 16, 2015
Autopoke till Facebook
View poke.md
You can’t perform that action at this time.