I hereby claim:
- I am tylerhall on github.
- I am tylerhall (https://keybase.io/tylerhall) on keybase.
- I have a public key whose fingerprint is 6A6A CE7D E268 8F9A 9E97 E2B6 14C1 60A4 6D68 61A9
To claim this, I am signing this object:
| Add these rules: | |
| .cardlytics-transaction-offer { display:none; } | |
| .cardlytics_reset { display:none; } | |
| to your favorite CSS injection browser extension. I use Stylish (http://userstyles.org/stylish/) for Chrome and Firefox. | |
| <?PHP | |
| $html = file_get_contents('https://developer.apple.com/wwdc/'); | |
| if($html === false) | |
| { | |
| send_script_failure(); | |
| exit; | |
| } | |
| preg_match_all('/2012/', $html, $mentions2012); |
| <?php | |
| /** | |
| * Front to the WordPress application. This file doesn't do anything, but loads | |
| * wp-blog-header.php which does and tells WordPress to load the theme. | |
| * | |
| * @package WordPress | |
| */ | |
| /** | |
| * Tells WordPress to load the WordPress theme and output it. |
| <html> | |
| <head> | |
| <style type="text/css"> | |
| /* Basic Markup Styles */ | |
| * { margin: 0; padding: 0; } | |
| img { border: none; } | |
| body { | |
| font: 68.75% Arial, Tahoma, Helvetica, sans-serif; |
| <?PHP | |
| require '/path/to/markdown-extra.php'; | |
| $db = mysql_connect('localhost', 'root', 'password') or die(mysql_error()); | |
| mysql_select_db('tylerio', $db) or die(mysql_error()); | |
| $files = scandir('posts'); | |
| array_shift($files); // . | |
| array_shift($files); // .. |
I hereby claim:
To claim this, I am signing this object:
| <?PHP | |
| $journal_fn = $argv[1]; | |
| $entries_dir = $journal_fn . '/entries/'; | |
| $entries = scandir($entries_dir); | |
| print_r($entries); | |
| $total_words = 0; | |
| #!/bin/bash | |
| # You need a GitHub token with repo access for your account. You can create one here... | |
| # https://github.com/settings/tokens | |
| GITHUB_TOKEN=abc123 | |
| cd ~ | |
| mkdir github | |
| cd github |
| <?PHP | |
| $post = trim(file_get_contents('php://input')); | |
| $dict = json_decode($post); | |
| // Only process emails starting with our kids' names since they're the ones with photos/videos. All other service emails should be ignored... | |
| if(substr($dict->Subject, 0, strlen("Kid #1's Name")) == "Kid #1's Name" || substr($dict->Subject, 0, strlen("Kid #2's Name")) == "Kid #2's Name") { | |
| $html = $dict->HtmlBody; | |
| if(preg_match('!href=[\'"](https?://www.domain.com/m/p/[a-zA-Z0-9]+)[\'"]!', $html, $matches) == 1) { | |
| $img_url = $matches[1] . '?d=t'; | |
| $img_data = file_get_contents($img_url); |
| <?PHP | |
| // Note: This script relies on Postmark to parse the email's contents into JSON. | |
| // More info here: https://postmarkapp.com/ | |
| $post = trim(file_get_contents('php://input')); | |
| $email = json_decode($post); | |
| if(is_null($email)) { | |
| exit; | |
| } |