Author: Gavin Simpson
WordPress Basic Plugin
Below is a very simple working example of a plugin. Create a directory in your plugins directory, create a php file and copy the below into it. Then from the wordpress plugins menu simply activate it. Just know that this plugin does absolutely nothing other than to show the basic setup, including public and protected…
Ubuntu Must Have Apps
As Open Office is part of the standard Ubuntu install, like other software installed as default, I have not listed it. There are a number of must have applications needed to get the most out of Uubuntu 18.04, but first thing to do is change the deskop. Ubuntu’s standard is way too slow and reminds…
Linux miscellaneous
Pertains mostly to Ubuntu 18.04.4 and Apache 2.4.29 Get Ubuntu version Get Apache version Get MySql version Find Files and hide all permission denied messages Copy file with ssh from server to localhost Copy file from localhost to server with ssh Copy directory from server recursively with ssh Copy directory to server from localhost recursively…
Exporting/Importing Woocommerce Orders with SQL 2020
Covers WordPress version 5.3.2 No matter how you use the SQL, be it on the command line, PhpMyAdmin or PHP, These are just the SQL commands needed. There are 4 tables invlovled not counting the variable product data. I’ll be adding that as soon as a get a free moment. wp_posts wp_postmeta wp_woocommerce_order_items wp_woocommerce_order_itemmeta wp_posts…
Sharing a Viynl Cutter over the Network in Linux
This setup works for a cheap Chinese no name brand Cutting Plotter I use. On the host PC add a new printer and set the printer model to “Raw Queue“ Set the device URI to, for example, serial:/dev/ttyUSB0?baud=9600. This assumes the servial device is attached to USB port 0. Make sure it is shared. On…
Setting up Inkscape for use with a Vinyl Cutter using Inkcut
Step 1 Download and install the InkCut Extension from the InkCut sourceforge page. Step 2 Install the following linux libraries : sudo apt-get install python-gtk2-dev sudo apt-get install python-cups sudo apt-get install python-serial Using InkCut to perform the cut Step 1 Select the objects you wish to cut Step 2 Ungroup the selected objects Step…
Raspberry PI Setup
use GParted to format SD to win32. sudo dd bs=4M status=progress if=~/Downloads/2018-06-27-raspbian-stretch.img of=/dev/sdc; sync NB note /dev/sdc, not /dev/sdb1. i.e. Must point to physical device, not partition. Edit config.txt on the SD to set hdmi hot plug support. put sd in the pi, plug in kb and monitor and boot. after install and upgrade process…