These are sample files of what can be done for AWS S3 bucket CORS settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "billing_account_id", | |
"type": "STRING", | |
"mode": "NULLABLE" | |
}, | |
{ | |
"name": "service", | |
"type": "RECORD", | |
"mode": "NULLABLE", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"meta": { | |
"code": 200 | |
}, | |
"data": { | |
"limit": 50, | |
"keyword": "", | |
"slug": "", | |
"origin": [], | |
"destination": [], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"HistoryRecords": [ | |
{ | |
"Timestamp": "2015-06-26T17:54:23.253Z", | |
"EventInformation": { | |
"EventSubType": "submitted" | |
}, | |
"EventType": "fleetRequestChange" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var options = { | |
hostname: 'api.newrelic.com', | |
port: 443, | |
path: '/v2/servers.json', | |
method: 'GET', | |
headers: { | |
'Content-Type': 'application/json', | |
'X-Api-Key': 'API KEY' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var may = { | |
'orange': 1, | |
'apple': 2 | |
}; | |
var john = { | |
'lemon': 2, | |
'apple': 1 | |
}; |
NewerOlder