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| build: | |
| docker run -it --rm -v "$(shell pwd)":/usr/src/app -w /usr/src/app maven:3-jdk-8-openj9 mvn clean package | |
| test: | |
| docker run -it --rm -v "$(shell pwd)":/usr/src/app -w /usr/src/app maven:3-jdk-8-openj9 mvn test | |
| run: | |
| docker run -it --rm -v "$(shell pwd)":/usr/src/app -w /usr/src/app maven:3-jdk-8-openj9 java -jar target/*.jar | |
| .PHONY: build test run |
| class SQS { | |
| getQueueAttributes() { | |
| return this; | |
| } | |
| async promise() { | |
| return; | |
| } | |
| } | |
| module.exports = { |
| 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" | |
| ], |