Skip to content

Instantly share code, notes, and snippets.

View emdeeeks's full-sized avatar

Gareth Griffiths emdeeeks

View GitHub Profile
@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
@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 / 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 / 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 / tpb.sh
Created December 27, 2015 23:07 — forked from cirrusUK/tpb.sh
shell script for use with transmission-cli to search the pirate bay torrents via TUI.
#!/bin/sh
#
# by Sairon Istyar, 2012
# distributed under the GPLv3 license
# http://www.opensource.org/licenses/gpl-3.0.html
#
### CONFIGURATION ###
# program to use for torrent download
# magnet link to torrent will be appended
@emdeeeks
emdeeeks / auto-follow-twitter.js
Created January 23, 2016 16:55 — forked from underdown/auto-follow-twitter.js
auto follow twitter
a = setInterval(function () {
window.scrollTo(0,document.body.scrollHeight);
$('.not-following .user-actions-follow-button.js-follow-btn').click();
}, 4000);
/* changed setinterval to 4k ms - original source here https://medium.com/@karanjthakkar/how-i-grew-from-300-to-5k-followers-in-just-3-weeks-2436528da845
Just browse to someones follower list, hit F12 on chrome and plug this snippet into the console tab and hit enter
@emdeeeks
emdeeeks / pop.php
Created March 24, 2016 17:11 — forked from xeoncross/pop.php
POP email server in PHP
<?php
/*
http://stackoverflow.com/a/11973533/99923
Well, just to show that it is in fact possible to write a POP3 server in PHP, here it is. The server does no authentication--or pretty much anything else. It just keep sending the same message over and over. But it works. Thunderbird was able to retrieve messages from it. Totally useless, but sort of cool.
My setup is Apache 2 on Windows with PHP 5.2.
*/
// echo something so fopen() would return
<?php
if(!class_exists('Rhaco')) require_once 'rhaco/Rhaco.php';
Rhaco::import('network.http.Browser');
class AmazonReport
{
var $base_url = 'https://affiliate.amazon.co.jp';
var $browser;
function AmazonReport($email, $password){
@emdeeeks
emdeeeks / index.php
Created May 17, 2016 19:08 — forked from oriolrivera/index.php
Simple Chat Using WebSocket and PHP Socket
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8' />
<style type="text/css">
<!--
.chat_wrapper {
width: 500px;
margin-right: auto;
margin-left: auto;
@emdeeeks
emdeeeks / seoreport.php
Created August 31, 2016 15:17 — forked from neo22s/seoreport.php
seo report php
<?php
/**
*
* SEO report for different metrics
*
* @category SEO
* @author Chema <[email protected]>
* @copyright (c) 2009-2012 Open Classifieds Team
* @license GPL v3
* Based on seo report script http://www.phpeasycode.com && PHP class SEOstats