Skip to content

Instantly share code, notes, and snippets.

View emdeeeks's full-sized avatar

Gareth Griffiths emdeeeks

View GitHub Profile
<?php
/**
* PHP IRC Server - PHelPsIRCd
* Why? Why not!
* @author Ben Phelps
* @version 2
* @copyright BenPhelps.me, 15 June, 2011
* @package PHelPsIRCd
@emdeeeks
emdeeeks / grill.php
Created April 24, 2017 15:02 — forked from digibart/grill.php
A simple status page of running services, http://spatula.pixelbak.nl/grill.php
<html>
<head>
<title>Grill</title>
<style>
body {
background: #f7f7f7;
width: 500px;
margin: 0 auto;
font-family: Arial, Helvetica, sans-serif;
font-size: 1.1em;
@emdeeeks
emdeeeks / slack_invite.php
Created December 15, 2016 16:12 — forked from Topener/slack_invite.php
Simple PHP script to invite slack users
<?php
/**
* This is a simple script to invite users to your slack
* Replace the subdomain and token in the variables below.
* Upload a logo called "logo.png" to the same directory for your group
* Upload a logo called "slack.png" to the same directory for slack
*/
define('SUBDOMAIN','{YOUR SUBDOMAIN HERE}');
define('TOKEN','{YOUR API TOKEN HERE}');
?>
<?php
/**
* 1. create project at https://console.developers.google.com/project
* 2. enable 'Analytics API' under 'APIs & auth' / APIs
* 3. create 'NEW CLIENT ID' (OAuth client) under 'APIs & auth' / Credentials
* i. select 'Service account'
* ii. save generated key file to 'key.p12'
* iii. remember CLIENT ID
* 4. under GA account add 'Read & Analyze' access to newly generated email (access to GA Account not Property nor View)
@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
@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;
<?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 / 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
@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 / 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