$ passenger-status
Version : 5.2.0
$ sudo apt-get update
$ apt list --upgradable
$ sudo apt-get install --only-upgrade passenger
| sudo tail -f /var/log/mail.log | grep -Ei "ATTR35|from=|$" |
| \c coach_in_a_box_production | |
| select relname, idx_tup_fetch + seq_tup_read as totalreads, idx_tup_fetch, seq_tup_read | |
| from pg_stat_all_tables | |
| where schemaname = 'public' | |
| order by totalreads desc; | |
| https://www.tutorialspoint.com/postgresql/postgresql_indexes.htm | |
| https://shoaibmir.wordpress.com/2009/09/13/finding-top-read-tables-in-the-database/ |
$ passenger-status
Version : 5.2.0
$ sudo apt-get update
$ apt list --upgradable
$ sudo apt-get install --only-upgrade passenger
| #!/bin/bash | |
| LOOPS=93 | |
| LINES=5 | |
| TESTS=0 | |
| FAILS=0 | |
| CERRORS=0 | |
| PASSES=0 |
| alias poop="~/poop.sh" | |
| alias c="clear" | |
| alias cls="clear" | |
| alias gits="git status" | |
| alias gita="git add ." | |
| alias gitb="git branch -a" | |
| alias gitd="git diff" | |
| alias gitdw="git diff --word-diff" |
| #!/bin/bash | |
| # Script to check the versions of TLS clients are connecting to our Nginx proxy with. Written by Paul Vaughan [gist.]github.com/vaughany | |
| # https://gist.github.com/vaughany/48e12cfc0c645cf95eb630fbda34df22 | |
| # Many thanks to: https://misc.flogisoft.com/bash/tip_colors_and_formatting | |
| # | |
| # Copy this script to the proxy server and make it executable. | |
| # ssh to the remote server and type: `sudo ./nginx-tls.sh` or run locally via ssh: `ssh 10.10.9.10 sudo ./nginx-tls.sh` | |
| if [[ $EUID -ne 0 ]]; then |
| log_format main '$remote_addr - $ssl_protocol/$ssl_cipher - $remote_user [$time_local] "$request" ' | |
| '$status $body_bytes_sent "$http_referer" ' | |
| '"$http_user_agent" "$http_x_forwarded_for"'; |
| # A basic apache server with PHP. To use either add or bind mount content under /var/www | |
| # https://docs.docker.com/engine/reference/builder/ | |
| FROM ubuntu:16.04 | |
| # Use bash instead of sh. | |
| SHELL ["/bin/bash", "-c"] | |
| WORKDIR /app | |
| ADD . /app |
| #!/bin/bash | |
| IPS="10.10.10.10 10.10.10.11 10.10.10.12" | |
| for s in $IPS; do | |
| echo -en "\n\e[7;49m $s - " && echo -n $(ssh -q -F /dev/null $s "hostname") && echo -e ": \e[0m" | |
| RESULT=$(ssh -q -F /dev/null $s "lsb_release -r") | |
| if [[ $RESULT = *"14.04"* ]] | |
| then | |
| ssh -q -F /dev/null $s "free -h" | |
| else |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "ubuntu/xenial64" | |
| config.vm.box_check_update = true | |
| config.vm.define "redis", primary: true do |web| | |
| config.vm.network "forwarded_port", guest: 6379, host: 6379 | |
| config.vm.network "private_network", ip: "10.10.10.10" | |
| # config.vm.synced_folder "../data", "/vagrant_data" | |
| config.vm.provider "virtualbox" do |vb| |