xclip is a command-line utility for interacting with the clipboard in Linux systems. It allows you to copy data to the clipboard from the command line or retrieve data from the clipboard into the terminal.

Continue reading...

CLI Screen Guide

linux cli

The screen command in Linux allows users to manage multiple terminal sessions within a single window, facilitating remote access and session persistence.

Using Screen

  1. Start a new screen session:

    screen
  2. Detach from the current screen session: Press Ctrl + A, then Ctrl + D.

  3. ...

Continue reading...

OpenVPN Troubleshooting

Peer certificate verification failure

OpenVPN Connect v3 client using a openvpn configuration for a Synology NAS running OpenVPN VPN Server cannot connect.

Errors: “Connection Failed. There was an error attempting to connect to the selected server"

"Error message: Pe...

Continue reading...

SETUP PROCESS:

INITIAL USER:

adduser myuser
passwd myuser
gpasswd -a myuser wheel
su - myuser
mkdir .ssh
chmod 700 .ssh
vi .ssh/authorized_keys
chmod 600 .ssh/authorized_keys

SSH

Made the following modifications to /etc/ssh/sshd_config:

Port 2222
PermitRootLogin no
MaxAuthTries 6
MaxSe...

Continue reading...

Creating a child theme in Grav CMS

Creating a child theme in Grav CMS is a truly beautiful, simple process.

1.. Create a new folder: user/themes/mytheme to house your new theme. 2.. Create a new theme YAML file: /user/themes/mytheme/mytheme.yaml with the following content:

streams:
 sche...

Continue reading...

These HTML5 skeletons and frameworks are very helpful for starting out new web development projects.

Continue reading...

New features in Javascript ES2015 (ES6)

Arrow Functions

var dostuff = function( arg ) { do stuff }; can be written as var dostuff = ( arg ) => { do stuff };

Let & Const

We nolonger use var, we now use let. Meanwhile, const is used for constants that can NEVER be changed.

Templ

...

Continue reading...

This is the process to completely erase a database and import it again via an SQL file. This is useful for instance to sync up a dev installation of a website with the production site. Download a production database SQL backup, do a quick find/replace to change all production URLs to dev URLs and...

Continue reading...

Rsync and LFTP are wonderful tools for synchronizing files. Here are various examples.

LFTP

NOTE: If certificate errors prevent you from connecting to a trusted server, you can disable these errors permanently: echo “set ssl:verify-certificate false” >> ~/.lftprc

To connect to a server an...

Continue reading...

While attempting to import an .sql file I experienced the following error Unknown collation: 'utf8mb4_unicode_520_ci'. It turns out the CentOS 7 repo only offers MariaDB version 5.5, meanwhile www.mariadb.org currently offers version 10.1 and also states that utf8mb4_unicode_520_ci is a support...

Continue reading...