Skip to content

Instantly share code, notes, and snippets.

chrisrasco / 00_nginx_https_rw.config
Created Oct 3, 2017
Elastic Beanstalk Extension for forcing https to Docker
View 00_nginx_https_rw.config
owner: root
group: root
mode: "000644"
content: |
#! /bin/bash
CONFIGURED=`grep -c "return 301 https" /etc/nginx/sites-enabled/elasticbeanstalk-nginx-docker-proxy.conf`
chrisrasco /
Last active Dec 9, 2016 — forked from askulkarni2/
Links to YouTube recordings of AWS re:Invent sessions and slides
Prefix Name
ALX Alexa
ARC Architecture
BAP Business Apps
BDA Big Data & Analytics
BDM Big Data Miniconference
CMP Compute
CON Containers Miniconference
CTD Content Delivery
View get_youtube_duration.php
// Call set_include_path() as needed to point to your client library.
require_once 'src/Google/Client.php';
require_once 'src/Google/Service/YouTube.php';
* You can acquire an OAuth 2.0 client ID and client secret from the
* {{ Google Cloud Console }} <{{ }}>
chrisrasco / cf_upload_remote_file.php
Created Nov 20, 2013
An example using php-opencloud 1.7 to upload a remote image to a Cloud Files container
View cf_upload_remote_file.php
require 'vendor/autoload.php';
$username = '<YOUR USERNAME>';
$api_key = '<YOUR API KEY>';
$my_container = '<CONTAINER NAME>';
$cf_region = '<CF REGION>';
$authURL = '';
$credentials = array(
chrisrasco /
Created Nov 13, 2013
Set CORS Headers for Cloud Files
import json, sys, requests, string, random
auth_endpoints = {
"US": "",
"UK": ""
username = "XXXX"