Skip to content

Instantly share code, notes, and snippets.

[
{
"name": "billing_account_id",
"type": "STRING",
"mode": "NULLABLE"
},
{
"name": "service",
"type": "RECORD",
"mode": "NULLABLE",
@teddychan
teddychan / _aws_cors_sample_overview.md
Created December 30, 2015 16:01 — forked from iansheridan/_aws_cors_sample_overview.md
AWS CORS sample xml files, solution for Firefox JS/Font access issues

AWS CORS sample xml files

Overview

These are sample files of what can be done for AWS S3 bucket CORS settings

{
"meta": {
"code": 200
},
"data": {
"limit": 50,
"keyword": "",
"slug": "",
"origin": [],
"destination": [],
@teddychan
teddychan / Dockerfile
Created October 10, 2015 16:01 — forked from markthethomas/Dockerfile
Example node dockerfile
#using debian:jessie for it's smaller size over ubuntu
FROM debian:jessie
# Replace shell with bash so we can source files
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
# Set environment variables
ENV appDir /var/www/app/current
# Run updates and install deps
{
"HistoryRecords": [
{
"Timestamp": "2015-06-26T17:54:23.253Z",
"EventInformation": {
"EventSubType": "submitted"
},
"EventType": "fleetRequestChange"
},
{
#!/bin/bash
INSTANCE_ID=$(curl http://169.254.169.254/latest/meta-data/instance-id)
aws elb register-instances-with-load-balancer --load-balancer-name demo --instances ${INSTANCE_ID}
/log/mongod.log {
daily
rotate 20
missingok
compress
delaycompress
notifempty
dateformat .%Y-%m-%dT%s
create 640 mongod mongod
sharedscripts

My team send this IQ test to me:

Albert and Bernard just became friends with Cheryl, and they want to know when her birthday is. Cheryl gives them a list of 10 possible dates. 
May 15, May 16, May 19 
June 17, June 18 
July 14, July 16 
August 14, August 15, August 17 

Cheryl then tells Albert and Bernard separately the month and the day of her birthday respectively. 
@teddychan
teddychan / nodejs.http.request.js
Last active August 29, 2015 14:16
newrelic Raw nodejs http GET request
var options = {
hostname: 'api.newrelic.com',
port: 443,
path: '/v2/servers.json',
method: 'GET',
headers: {
'Content-Type': 'application/json',
'X-Api-Key': 'API KEY'
}
var may = {
'orange': 1,
'apple': 2
};
var john = {
'lemon': 2,
'apple': 1
};