Ensure IntegrationHttpMethod
is set to POST
even if you want to use a GET
(or whatever)
e.g.
rootMethod:
Type: AWS::ApiGateway::Method
generators = [] | |
puts 'Spinning up a new app, captain!' | |
run 'rm public/index.html' | |
run 'rm public/images/rails.png' | |
run 'rm README' | |
run 'touch README' | |
gsub_file 'public/robots.txt', /# User-Agent/, 'User-Agent' | |
gsub_file 'public/robots.txt', /# Disallow/, 'Disallow' |
// export json from trello board | |
const board = require('./path/to/trelloboard.json') | |
for(let list of board.lists){ | |
let listcards = board.cards.filter(c => c.idList === list.id ) | |
console.log(list.name) | |
for(let card of listcards){ | |
console.log(`\t${card.name} [${card.desc}]`) | |
} | |
} |
ffprobe -v quiet -show_format -show_streams -pretty -print_format json ./video_file.mp4
Will output some lovely JSON to the console. Dump to a file with > json_file.json
or what-have-you.
-d=postgresql | |
-T | |
--skip-coffee | |
provider "heroku" { | |
email = "test@example.com" | |
api_key = "call heroku auth:token" | |
} | |
resource "heroku_app" "default" { | |
name = "herokutest" | |
region = "us" | |
config_vars { |
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
Remove all non running containers: docker rm $(docker ps -a -f="status=exited" -q)
see also Docker filtering
Remove unused images docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
(but check link for more)
Get list IP of all running containers docker inspect -f '{{.Name}} - {{.NetworkSettings.IPAddress }}' $(docker ps -aq)
(StackOverflow answer)
One liner to stop / remove all of Docker containers:
Review ports:
sudo semanage port -l | grep http_port_t
Add port:
sudo semanage port -a -t http_port_t -p tcp 8024