Skip to content

Instantly share code, notes, and snippets.

Avatar

Christopher Davis chrisguitarguy

View GitHub Profile
View aws-csv-streamwrapper.php
<?php
require __DIR__ . '/vendor/autoload.php';
$s3 = Aws\S3\S3Client::factory($config);
$s3->registerStreamWrapper();
$url = 's3://{$bucket}/{$key}';
// Read CSV with fopen
View pycon2012-downloader.py
#!/usr/bin/env python
"""
Download PyCon US 2012 videos in a multithreaded way.
Requirement: youtube-dl script.
written by Jabba Laci, 2013 (jabba.laci@gmail.com)
http://pythonadventures.wordpress.com/
PyCon US 2012 videos: http://pyvideo.org/category/17
@chrisguitarguy
chrisguitarguy / current_admin_info.php
Created Sep 14, 2012 — forked from franz-josef-kaiser/current_admin_info.php
Collect & display data from current admin screens contextual hooks and from which hook on some globals are available.
View current_admin_info.php
<?php
! defined( 'ABSPATH' ) AND exit;
/**
* Plugin Name: Current admin screen info
* Description: Show information about contextual hooks and availability of globals in the admin UI.
* Version: 2012-09-13.0317
* Author: Franz Josef Kaiser <wecodemore@gmail.com>
* Author URI: http://unserkaiser.com
* License: The MIT License (MIT)
*