Skip to content

Instantly share code, notes, and snippets.

View emdeeeks's full-sized avatar

Gareth Griffiths emdeeeks

View GitHub Profile
@emdeeeks
emdeeeks / getMagnet.php
Created December 27, 2015 23:06 — forked from koenhendriks/getMagnet.php
Pirate Bay Movie Fetcher
<?php
/**
* Small little function to read out The Pirate Bay.
* This will look make a search on The Pirate Bay
* and return the first result it gets from the HD - Movies category
*
* Example:
* $magnetUrl = getMagnet('Fight Club', 'YIFY');
*
* @author Koen Hendriks <[email protected]>
@emdeeeks
emdeeeks / themeview.sh
Created December 18, 2015 09:36 — forked from jsks/themeview.sh
Script to preview terminal color schemes
#!/bin/bash
# Preview a Xdefaults color scheme
# Usage: themeview.sh [FILE]
####
if [[ ! -f "$1" ]]; then
echo "Invalid file, $1"
exit 1
fi
@emdeeeks
emdeeeks / pre-commit
Created November 24, 2015 14:04 — forked from zushane/pre-commit
A git pre-commit hook to run phpunit tests, written in bash. Features pretty colours, and slightly individualized output.
#!/bin/bash
# Locate our phpunit.
phpunit=`which phpunit`
# Any extra arguments to phpunit should go here.
phpunit_args=""
# Define a location to save the output.
outputlog="/tmp/phpunit_output_`date +%s`.log"
@emdeeeks
emdeeeks / SpamTwooUsers.py
Last active August 29, 2015 14:27 — forked from dhilipsiva/SpamTwooUsers.coffee
Spam Twoo Users
#! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# vim: fenc=utf-8
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
#
"""
File name: twoo.py