PHP code example that demonstrates how to connect to and query a PostgreSQL database using […]
Kubernetes Cheat Sheet
Basic Commands Command Description kubectl get pods List all pods kubectl get deployments List all […]
LDAP Cheat Sheet
Basic Commands Command Description ldapsearch -x Search the LDAP directory using simple authentication ldapadd -x […]
Ansible Cheat Sheet
Basic Commands Command Description ansible <hostname> -m ping Test connectivity to a host ansible-playbook <playbook>.yml […]
MySQL Cheat Sheet
Basic Commands Command Description mysql -u username -p Start the MySQL command-line interface CREATE DATABASE […]
PostgreSQL Cheat Sheet
Basic Commands Command Description psql [OPTION]… [DBNAME [USERNAME]]psql -h <host> DBNAME USERNAME Start the PostgreSQL […]
Using OpenSSL to base64 encode/decode
Base64 encoding is a standard method for converting 8-bit binary information into a limited subset […]
How To Redirect A User To Another Web Page If They Are Not Logged In Using WordPress
here’s an example of how to redirect a user to another web page if they […]
ansible.builtin.command to Execute Two Commands
You can use the ansible.builtin.command module to execute multiple commands by chaining them together using […]
How To Query All Columns in a MySQL Database Table for a Value Using PHP With The mysqli Function
To query all columns for a specific value in MySQL, you can use the SELECT […]