Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jd-war-eagle on github.
  • I am jd_war_eagle (https://keybase.io/jd_war_eagle) on keybase.
  • I have a public key whose fingerprint is E551 22C7 E4AD C91E 33B9 6A00 E15C 25C3 3177 2795

To claim this, I am signing this object:

@jd-war-eagle
jd-war-eagle / yaml_dump.py
Created November 9, 2016 19:03
Parse and dump a YAML file's variables
#!/usr/bin/env python3
import sys
from yaml import load, dump
if not len(sys.argv) > 1:
raise Exception('Must pass path to yaml file')
print('Dumping parsed YAML values from {}\n'.format(sys.argv[1]))
@jd-war-eagle
jd-war-eagle / s3_bucket_most_recent.php
Created October 14, 2016 16:56
PHP - Get most recently modified file from s3 bucket
<?php
require './aws.phar';
use Aws\S3\S3Client;
$s3 = S3Client::factory(array(
'key' => 'YOUR_KEY',
'secret' => 'YOUR_SECRET',
'region' => 'YOUR_REGION',
@jd-war-eagle
jd-war-eagle / codename.py
Created October 12, 2016 04:55
Generate a secret codename in python
import random
import requests
def codename():
length = random.randint(2, 3)
words = []
for i in range(length):

Keybase proof

I hereby claim:

  • I am daileyjl on github.
  • I am jd_war_eagle (https://keybase.io/jd_war_eagle) on keybase.
  • I have a public key whose fingerprint is E551 22C7 E4AD C91E 33B9 6A00 E15C 25C3 3177 2795

To claim this, I am signing this object: