Enable http/2 in Apache

Technical
Directadmin update httpd to support http/2 su - # yum update # cd /usr/local/directadmin/custombuild # ./build update # ./build update_versions # ./build set php1_mode php-fpm # ./build php n #…
Read More

MySQL Shell 8.x

mysql
MySQL Shell – Create and Restore a MySQL backup MySQL Shell is an advanced client and code editor for MySQL. In addition to the SQL functionality, similar to mysql client,…
Read More

vi/vim tricks

CentOS, CentOS 8
vi or vim is a powerful text editor that comes installed by default in most Linux and Unix systems. You’ll find many tutorials online that’s get you started quickly. There’s also the command vimtutor that…
Read More

SELinux on CentOS

CentOS, CentOS 8
What is SELinux Security Enhanced Linux (SELinux) is a Linux Security Module (LSM) that is built into the Linux kernel. SELinux provides an additional layer of system security. The standard…
Read More

ssh-copy-id (password less ssh login)

ssh
If your OS does not support “ssh-copy-id” command, you can use the following instead. cat ~/.ssh/id_rsa.pub | ssh <REMOTE_MACHINE_IP> [-p SSH_PORT] [-l USERNAME] 'mkdir .ssh; chmod 0700 .ssh; cat >>…
Read More

Using UUID as a Primary Key

mysql
MySQL UUIDs A UUID is a 128-bit number represented by a utf8 string of five hexadecimal numbers separated by dashes. A UUID value looks like: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee There are 5 different versions. MySQL uses UUID version 1. mysql> SELECT…
Read More
Menu