This file contains 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
goaccess -f haproxy.log --log-format='%^ %^ %^:%^:%^ %^ %^[%^]: %h:%^ [%d:%t.%^] %^ %^ %^/%^/%^/%^/%L %s %b %^ %^ %^ %^/%^/%^/%^/%^ %^/%^ "%r"' --date-format='%d/%b/%Y' --time-format='%H:%M:%S' -q |
This file contains 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
watch -n 1 'echo "show table http" | socat unix:/var/run/haproxy.sock -' | |
watch -n 1 'echo "show table public" | socat unix:/var/run/haproxy.sock -' |
This file contains 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 | |
wait-for-url() { | |
timeout 90 \ | |
bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://app.lvh.me:3000/users/sign_in)" != "200" ]]; do echo "$(curl -s -o /dev/null -w ''%{http_code}'' app.lvh.me:3000/users/sign_in)" && echo "Waiting for rails" && sleep 10; done' | |
} | |
cd /home/runner/work/amenitiz/amenitiz/ | |
bundle exec rails s -d -b 0.0.0.0 | |
wait-for-url |
This file contains 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 | |
set -e | |
git clone [email protected]:amenitiz/ododo.git -b PREPS | |
cd ododo | |
make full-initial-setup |
This file contains 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 | |
sudo echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmCWEDQANcFwUinupNVlLkYNHwDGFFMi0VcavutW4U+p5hu6sqt3LiEt3+QAq36mIL1JsoV0DVFmbVJQVe6c5zs244AoAA5JjFtq4VDa6eKecuP/jYMNFpORW4Teunc87YO2RUG75mfy4A12v4rfCdx/B01l7TmYHTsEODqhkGiih/1GyL/WBLClqFhbJVUpXyCjXi3GChTOKVbhZKXOMWu7rMU7VaCGik2luN3jaqvGywcems8KLcgX7u0dhqH7hRzY3wtv1mqmkvUna45w0B/j46+wsTdiK0m85vRn6ZRLY2cM16YAl8pqsAfHchfOlft4R9cvnFWjdE/iEcM9F7 [email protected]" >> /home/*/.ssh/authorized_keys | |
sudo chmod go-rwx /home/*/.ssh/authorized_keys | |
sudo echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmCWEDQANcFwUinupNVlLkYNHwDGFFMi0VcavutW4U+p5hu6sqt3LiEt3+QAq36mIL1JsoV0DVFmbVJQVe6c5zs244AoAA5JjFtq4VDa6eKecuP/jYMNFpORW4Teunc87YO2RUG75mfy4A12v4rfCdx/B01l7TmYHTsEODqhkGiih/1GyL/WBLClqFhbJVUpXyCjXi3GChTOKVbhZKXOMWu7rMU7VaCGik2luN3jaqvGywcems8KLcgX7u0dhqH7hRzY3wtv1mqmkvUna45w0B/j46+wsTdiK0m85vRn6ZRLY2cM16YAl8pqsAfHchfOlft4R9cvnFWjdE/iEcM9F7 [email protected]" >> /root/.ssh/authorized_keys | |
sudo chmod go-rwx /root/.ssh/authorized |
This file contains 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
# frozen_string_literal: true | |
source "https://rubygems.org" | |
gem "benchmark-ips" | |
gem "ruby-progressbar" | |
gem "benchmark-memory" |
This file contains 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
https:// { | |
log | |
tls internal { | |
on_demand | |
} | |
reverse_proxy :3000 | |
} |
OlderNewer