Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
let mock = { mock: true }; | |
const client = { | |
set: function() { | |
}, | |
get: function() { | |
return JSON.stringify(mock) | |
}, | |
quit: function() { | |
} |
const pg = require('pg'); | |
const asyncRedis = require("async-redis"); | |
const key = "HEALTH_CHECK"; | |
async function check_redis() { | |
const client = asyncRedis.createClient(); | |
client.on("error", (err) => { | |
throw err | |
}); |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
aws --endpoint-url http://localhost:9324 \ | |
sqs create-queue \ | |
--queue-name "test" | |
aws --endpoint-url http://localhost:9324 \ | |
sqs send-message \ | |
--queue-url http://localhost:9324/queue/test \ | |
--message-body "Hola!" |
curl https://ui-avatars.com/api/?name=G%20B&size=512&rounded=true&color=FCD116&background=0038A8 |
get $(npm view @gbalbuena/aws-node-simple-http-endpoint dist.tarball) | |
tar xzf aws-node-simple-http-endpoint-1.0.2.tgz && \\ | |
zip aws-node-simple-http-endpoint-1.0.2.zip $(tar tf aws-node-simple-http-endpoint-1.0.2.tgz) && \\ | |
rm -r -f -- $(tar tf aws-node-simple-http-endpoint-1.0.2.tgz) && \\ | |
aws-node-simple-http-endpoint-1.0.2.tgz |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "0", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:PutObject", | |
"s3:GetObject" | |
], |
FROM alpine:edge | |
RUN apk add --update | |
RUN apk add ca-certificates | |
RUN apk add terraform | |
RUN apk add aws-cli --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted | |
ADD . /app | |
WORKDIR /app |
llet mockDelay; | |
let mockError; | |
let mockResponse = { | |
get: jest.fn(), | |
ok: true, | |
status: 200, | |
toError: jest.fn(), | |
}; | |
let mockResponseBodies; |