Updated: 30 August 2023
:help ins-completion
Most common
:help i_CTRL-P
:help i_CTRL-N
Complete an entire line
CTRL-X CTRL-L
Guernsey & Jersey, Channel Islands, UK.
Updated: 30 August 2023
:help ins-completion
Most common
:help i_CTRL-P
:help i_CTRL-N
Complete an entire line
CTRL-X CTRL-L
Updated: 07 October 2022
Keyboard shortcuts
https://support.mozilla.org/en-US/kb/keyboard-shortcuts-thunderbird
Updated: 10 September 2022
Updated: 16 November 2023
What’s ssh port forwarding and what’s the difference between ssh local and remote port forwarding
-R |
Specifies that connections to the given TCP port or Unix socket on the remote (server) host are to be forwarded to the local side. |
-L |
Specifies that connections to the given TCP port or Unix socket on the local (client) host are to be forwarded to the given host and port, or Unix socket, on the remote side. |
Updated: 02 January 2024
Diagnose problems with SSL certificates.
Updated: 21 July 2023
Bash guide for beginners
Bash reference manual
Bash reference manual
Shorten prompt in current terminal
PS1='\u:\W\$ '
Exit status of last command
echo $?
Repeat a command n times
for run in {1..100}; do command; sleep 5; done
Run A and then B, regardless of success of A
A; B
Run B if and only if A succeeded
A && B
Run B if and only if A failed
A || B
Run A in background.
A &
Updated: 09 June 2023
Two scripts: phpcs and phpcbf
https://github.com/squizlabs/PHP_CodeSniffer
A set of rules for Squizlabs PHP_CodeSniffer
https://github.com/WordPress/WordPress-Coding-Standards
https://cs.symfony.com/
https://github.com/PHP-CS-Fixer/PHP-CS-Fixer
Updated: 16 January 2022
A visual web log analyzer.
https://goaccess.io/
Connect to your webserver via ssh and pipe the access log to goaccess running locally. Create a report in html format.
ssh user@\ 'cat /var/log/apache2/example.com-le-ssl.conf/access.log' | \ goaccess -a -o /home/chris/report.html --log-format=COMBINED --html-report-title="example.com logs" -
Updated: 10 May 2023
Query for information on all DNS records
dig your_domain_name.com ANY
Query for A records
dig your_domain_name.com A
host
, nslookup
and dig
share similar functionality.
Return information about a domain name registration, including the name servers it is configured to work with
whois your_domain_name.com
Updated: 06 May 2024
Generate php documentation with phpdoc tool and Docker
docker pull phpdoc/phpdoc
cd path/to/my-php-project
docker run --rm -v $(pwd):/data phpdoc/phpdoc -d src -t doc
Display cli manual
docker run --rm phpdoc/phpdoc --help