This file contains hidden or 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 | |
cd /home/ec2-user/ingest | |
./run.sh | |
aws --region=us-east-1 autoscaling terminate-instance-in-auto-scaling-group --instance-id $(curl http://169.254.169.254/latest/meta-data/instance-id) --should-decrement-desired-capacity |
This file contains hidden or 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
redisconfig_1 | _._ | |
redisconfig_1 | _.-``__ ''-._ | |
redisconfig_1 | _.-`` `. `_. ''-._ Redis 3.0.3 (00000000/0) 64 bit | |
redisconfig_1 | .-`` .-```. ```\/ _.,_ ''-._ | |
redisconfig_1 | ( ' , .-` | `, ) Running in standalone mode | |
redisauth_1 | _._ | |
redisconfig_1 | |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 | |
redisauth_1 | _.-``__ ''-._ | |
redisconfig_1 | | `-._ `._ / _.-' | PID: 1 | |
redisauth_1 | _.-`` `. `_. ''-._ Redis 3.0.3 (00000000/0) 64 bit |
This file contains hidden or 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
const express = require("express"); | |
const userRouter = express.Router(); | |
const groupRouter = express.Router(); | |
const app = express(); | |
userRouter.get("/user", (req, res) => res.end("user")); | |
groupRouter.get("/group", (req, res) => res.end("group")); | |
app.use("/api", userRouter); | |
app.use("/api", groupRouter); |
This file contains hidden or 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
angular.module('starter', ['ionic']) | |
.run(["LocationService", async LocationService => { | |
const coords = await LocationService.getPosition(); | |
console.log(coords); | |
}]) | |
.service("LocationService", ["$window", "$q", ($window, $q) => ( | |
{ | |
getPosition() { | |
const dfd = $q.defer(); |
This file contains hidden or 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
function authenticateUser(details, callback) { | |
if (details) { | |
return callback.onSuccess(); | |
} | |
return callback.onFailure(); | |
} | |
new Promise((onSuccess, onFailure) => { | |
authenticateUser(true, { | |
onSuccess, |
This file contains hidden or 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
const Promise = require("bluebird"); | |
const docClient = { | |
put(x, cb) { | |
setTimeout(() => { | |
if (1 == x) { | |
cb(null, "good"); | |
} | |
else { | |
cb(new Error("bad")); | |
} |
This file contains hidden or 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
sns.createPlatformEndpointAsync({ | |
PlatformApplicationArn: applicationArn, | |
Token: deviceId, | |
}); | |
/* send the notification (not needed) */ | |
sns.publishAsync({ | |
MessageStructure: "json", | |
Message: JSON.stringify({ | |
APNS: JSON.stringify({ |
This file contains hidden or 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
BPromise.all(friendIdList.filter(Boolean).map(obsId => docClient.queryAsync(params))) | |
.then(feedList => _.sortBy(_.flatten(feedList), 'timestamp').reverse()); |
This file contains hidden or 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
* Error running command 'PREFIX=acrites provision/subtf': exit status 1. Output: MANPATH=/Users/acrites/.nvm/versions/node/v6.3.1/share/man:/usr/share/man:/usr/local/share/man:/Library/Developer/[45/1215] | |
neTools/usr/share/man | |
TERM_PROGRAM=iTerm.app | |
AWS_HOME=/Users/acrites/.aws | |
NVM_CD_FLAGS=-q | |
SHELL=/bin/zsh | |
TERM=screen-256color | |
TMPDIR=/var/folders/cl/zx36gcds2yb4b2h6hc6djdz00000gp/T/ | |
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.IF8k6j0KcI/Render | |
NVM_PATH=/Users/acrites/.nvm/versions/node/v6.3.1/lib/node |
This file contains hidden or 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
tfplanJˇôPlanˇö Diffˇú Moduleˇ™ Stateˇ¨ Varsˇä Targetsˇà ˇõDiffˇú Modulesˇ® &ˇß[]*terraform.ModuleDiffˇ® ˇû 1ˇùˇû Pathˇà Resourcesˇ¶ Destroy ˇá[]stringˇà 3ˇ•"map[string]*terraform.InstanceDiffˇ¶ ˇ† ;ˇüˇ† | |
Attributesˇ§ Destroy DestroyTainted 7ˇ£&map[string]*terraform.ResourceAttrDiffˇ§ ˇ¢ oˇ°ˇ¢ Old New NewComputed | |
NewRemoved NewExtra RequiresNew Sensitive Type | |
ˇ©ˇæ ]ˇ´Stateˇ¨ Version TFVersion Serial Lineage RemoteˇÆ Modulesˇº .ˇ≠RemoteStateˇÆ Type Configˇñ !ˇïmap[string]stringˇñ 'ˇª[]*terraform.ModuleStateˇº ˇ∞ DˇØˇ∞ Pathˇà Outputsˇ¥ Resourcesˇ∫ Dependenciesˇà 2ˇ≥!map[string]*terraform.OutputStateˇ¥ ˇ≤ -ˇ±ˇ≤ Sensitive Type Value 4ˇπ#map[string]*terraform.ResourceStateˇ∫ ˇ∂ Nˇµˇ∂ Type Dependenciesˇà Primaryˇî Deposedˇ∏ Provide |