Skip to content

Instantly share code, notes, and snippets.

View andrewmd5's full-sized avatar
💭
🖤

andrew andrewmd5

💭
🖤
View GitHub Profile
@andrewmd5
andrewmd5 / gist:92818fd7a0da398f0809
Created March 24, 2015 15:24
API v2 Info Preview
{
"results":2,
"statuscode":200,
"responsetime":0.0039,
"torrents":[
{
"torrent_hash":"156B69B8643BD11849A5D8F2122E13FBB61BD041",
"torrent_title":"Slackware 14.1 x86_64 DVD ISO",
"torrent_category":"Applications",
"sub_category":"",
@andrewmd5
andrewmd5 / gist:91f0cba6e741753fe49a
Last active August 29, 2015 14:17
Strike API v2 changes
Fixed download endpoint to not return 200 even when a file was 404'd
Fixed download endpoint to all access origin *
Info structure has been cleaned up - https://gist.github.com/Codeusa/92818fd7a0da398f0809
File sizes are now in bytes rather than a string of their total size.
Added endpoint for descriptions
Added sub category filtering to top 100, increased speeds up to 150%
Removed download link from top 100, replaced with magnet.
Removed download link from info, replaced with magnet
Max excution time set to 5 seconds, should never be more than this; ever.
Filter out strings by adding a - in front of them. (may increase search times)
@andrewmd5
andrewmd5 / dad.js
Created December 25, 2014 20:28
iizzzzy
[][(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(!![]+[])[+!![]]+(!![]+[])[+[]]][([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+{})[!+[]+!![]+!![]+!![]+!![]]+(!![]+[])[+[]]+([]+{})[+!![]]+(!![]+[])[+!![]]](([][[]]+[])[!+[]+!![]+!![]+!![]+!![]]+([]+{})[!+[]+!![]+!![]+!![]+!![]+!![]+!![]]+[][(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(!![]+[])[+!![]]+(!![]+[])[+[]]][([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+{})[!+[]+!![]+!![]+!![]+!![]]+(!![]+[])[+[]]+([]+{})[+!![]]+(!![]+[])[+!![]]]((!![]+[])[+!![]]+([][[]]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+!![]]+([]+{})[!+[]+!![]+!![]+!![]+!![]+!![]+!![]]+([][[]]+[])[+[]]+([][[]]+[])[+!![]]+([][[]]+[])[!+[]+!![]+!![]]+(![]+[])[!+[]+!![]+!![]]+([]+{})[!+[]+!![]+!![]+!![]+!![]]+(+{}+[])[+!![]]+([]+[][(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]
@andrewmd5
andrewmd5 / fizzbuzz.js
Last active August 29, 2015 14:11
fizz buzz without the letter f
i = 0;
letter = 15;
do console.log(++i % 15 ? i % 3 ? i % 5 ? i : 'buzz' : letter.toString(16) + 'izz' : letter.toString(16) + 'izzbuzz'); while (i < 100)
[][(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(!![]+[])[+!![]]+(!![]+[])[+[]]][([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+{})[!+[]+!![]+!![]+!![]+!![]]+(!![]+[])[+[]]+([]+{})[+!![]]+(!![]+[])[+!![]]](([][[]]+[])[!+[]+!![]+!![]+!![]]+([]+{})[+!![]]+(!![]+[])[+!![]]+[][(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(!![]+[])[+!![]]+(!![]+[])[+[]]][([]+{})[!+[]+!![]+!![]+!![]+!![]]+([]+{})[+!![]]+([][[]]+[])[+!![]]+(![]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+{})[!+[]+!![]+!![]+!![]+!![]]+(!![]+[])[+[]]+([]+{})[+!![]]+(!![]+[])[+!![]]]((!![]+[])[+!![]]+([][[]]+[])[!+[]+!![]+!![]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+!![]]+([]+{})[!+[]+!![]+!![]+!![]+!![]+!![]+!![]]+([][[]]+[])[+[]]+([][[]]+[])[+!![]]+([][[]]+[])[!+[]+!![]+!![]]+(![]+[])[!+[]+!![]+!![]]+([]+{})[!+[]+!![]+!![]+!![]+!![]]+(+{}+[])[+!![]]+([]+[][(![]+[])[!+[]+!![]+!![]]+([]+{})[+!![]]+(!![]+[])[+!![]]
package org.saleen.util;
import java.io.IOException;
import java.net.InetAddress;
import net.sbbi.upnp.impls.InternetGatewayDevice;
import net.sbbi.upnp.messages.UPNPResponseException;
/**
* A simple UPNP Portforwarding implementation
000GamerGate000
000mightGinofam
0080F0
00neko
01_racheal
0ckham
0komi
0LD_B0NES
0perationZer0
0uttaS1TE
@andrewmd5
andrewmd5 / redditmusic.py
Last active August 29, 2015 14:03
Getting Reddits Summer GOTO Music
import urllib2
import re
import HTMLParser
html_parser = HTMLParser.HTMLParser()
text_file = open("music.txt", "a")
def get_between(source, start, stop):
@andrewmd5
andrewmd5 / CVSFormatter.java
Last active August 29, 2015 13:57
Cleans out a paypal cvs document to only leave what you received
public class CVSFormat {
public static void main(String[]args)throws IOException {
// construct temporary file
File inputFile = new File("statements.csv");
File tempFile = new File(inputFile + "temp.csv");
BufferedReader bufferReader = new BufferedReader (new FileReader("statements.csv"));
PrintWriter printWriter = new PrintWriter(new FileWriter (tempFile));
@andrewmd5
andrewmd5 / IntegerToEnglish.java
Created February 3, 2014 07:34
Translate an standard arabic integer into an english word
import java.util.Scanner;
import java.util.logging.Logger;
public class IntegerToEnglish {
private static final String[] LARGE = { "", "", " Hundred", " Thousand",
" Million", " Billion" };
private static String length;
private static final Logger logger = Logger
.getLogger(IntegerToEnglish.class.getName());
private static int number;