Skip to content

Instantly share code, notes, and snippets.

View scintill's full-sized avatar

Joey Hewitt scintill

View GitHub Profile
@scintill
scintill / imap-count.php
Created March 4, 2012 02:52
Dump message count from IMAP server
<?php
$host = '{imap.gmail.com:993/imap/ssl}';
$user = '';
$pass = '';
$imap = imap_open($host, $user, $pass, OP_READONLY | OP_HALFOPEN) or die("Can't connect: ".imap_last_error());
header('Content-Type: application/json');
echo json_encode(getCounts($imap, $host));
@scintill
scintill / amazonbitcoins.user.js
Created January 7, 2012 08:22
Amazon Bitcoins
// ==UserScript==
// @name Amazon Bitcoins
// @namespace joeyhewitt
// @description Show prices on Amazon in Bitcoin
// @match http://www.amazon.com/*
// @match https://www.amazon.com/*
// ==/UserScript==
// https://gist.github.com/437513