I hereby claim:
- I am jandudulski on github.
- I am jandudulski (https://keybase.io/jandudulski) on keybase.
- I have a public key ASCMUj1umlk4cmxYS3AMLvC1WCW1UurVNvZwhngx7IswVAo
To claim this, I am signing this object:
# Example based on https://github.com/thinkbeforecoding/dddeu-2023-deciders/blob/main/run.fsx | |
require "bundler/inline" | |
gemfile do | |
source "https://rubygems.org" | |
gem "minitest" | |
gem "decide.rb", "~> 0.4.1" | |
end |
# gruvbox-light colorscheme for kitty | |
foreground #3C3836 | |
background #FBF1C7 | |
selection_foreground #FBF1C7 | |
selection_background #3C3836 | |
color0 #FBF1C7 | |
color8 #928374 |
# config/application.rb | |
module MyApp | |
class Application < Rails::Application | |
config.my_setting = "prod value" | |
end | |
end |
I hereby claim:
To claim this, I am signing this object:
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
# this won't work | |
terraform { | |
backend "s3" { | |
bucket = "${var.bucket}" | |
dynamodb_table = "${var.dynamodb_table}" | |
# reminder of the config... | |
} | |
} |
server { | |
listen 80; | |
server_name es.example.com; | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443 ssl http2; |
#!/bin/bash -e | |
if [ ! -f .phantomjs/2.1.1/x86_64-linux/bin/phantomjs ]; then | |
curl -k -L -o phantomjs.tar.bz2 http://ci.monterail.io/files/phantomjs-2.1.1-linux-x86_64.tar.bz2 | |
tar -jxf phantomjs.tar.bz2 | |
mkdir -p .phantomjs/2.1.1/x86_64-linux/bin | |
mv phantomjs-2.1.1-linux-x86_64/bin .phantomjs/2.1.1/x86_64-linux/ | |
else | |
echo "Phantomjs 2.1.1 is already installed" | |
fi |
So you want to restart your passenger standalone app
cd path/to/app && ./bin/passenger-config restart-app .
This works until you have multiple passenger apps...
./bin/passenger-config restart-app .
location /faye { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header Host $http_host; | |
proxy_redirect off; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
proxy_http_version 1.1; |