The actual code (bash script) is very specific to what I was doing, but I'm putting it here so I can find it if I want to do something similar again. Or maybe it will help someone else!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
ini_set('date.default_timezone', 'America/Denver'); | |
?> | |
<!DOCTYPE NETSCAPE-Bookmark-file-1> | |
<!-- This is an automatically generated file. | |
It will be read and overwritten. | |
DO NOT EDIT! --> | |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> | |
<TITLE>Bookmarks</TITLE> | |
<H1>Bookmarks</H1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# the number of files, including any duplicates, is: ls -l | wc -l | |
sha256sum * | cut -d ' ' -f 1 | sort -u | wc -l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Color Guesser</title> | |
<script type="application/javascript"> | |
var colors = ['maroon','red','orange','yellow','olive','purple','fuchsia','lime','green','navy','blue','aqua','teal','black','silver','gray']; | |
var bit = 1; | |
var total = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// configure the ECC lib | |
if (!defined('USE_EXT')) { | |
if (extension_loaded('gmp')) { | |
define('USE_EXT', 'GMP'); | |
} else if(extension_loaded('bcmath')) { | |
define('USE_EXT', 'BCMATH'); | |
} else { | |
die('GMP or bcmath required. (GMP is faster).'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- Mode: Python -*- | |
# OpenSSL wrapper | |
# https://github.com/joric/brutus/blob/master/ecdsa_ssl.py | |
import ctypes | |
import ctypes.util | |
ssl = ctypes.cdll.LoadLibrary (ctypes.util.find_library ('ssl') or 'libeay32') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" This attempts to replicate Powerline with the solarized256 colorscheme and the default theme. | |
" It was generated from the Powerline colorscheme struct and a script attempting to match powerline | |
" items to the Airline layout. | |
<?php | |
// TODO filename bold - accent? | |
$json = file_get_contents('solarized256.vimv'); | |
$json = str_replace("'", '"', $json); | |
$powerlinedata = json_decode($json, true); | |
$palette = array(); |
OlderNewer