Welcome

Pacific Simplicity is the home to my tech blog of sorts, aiming to assist and provide information easily to other Linux users and Open Source hackers out there.  It contains articles on Linux, system admin hints, scripting, programming embedded systems, OpenWRT and of course Drupal . Check it out and don't forget to comment!

Posted: Wed, 01/11/2017 - 08:41

Here is a simple epoll example for polling keyboard events:

Posted: Sun, 01/08/2017 - 12:33

Create the signing keys

openssl req -nodes -x509 -sha256 -newkey rsa:4096 -keyout "signing.key" \
-out "signingKey.crt" -days 365 -subj "/C=NL/ST=QC CA/L=Montreal/O=PacificSimplicity \
/OU=Dev/CN=Dev Signing Key"

Then sign the file with the following command

Posted: Thu, 11/03/2016 - 12:46

Here is a simple BASH script to bring down/up an interface randomly. Note there is no error checking or states... it will work if it can work. e.g if the interface is up, and the script calls up - it will be up.

Posted: Fri, 09/23/2016 - 12:06

Here is part 2 of the previous explanation app.

Posted: Fri, 09/23/2016 - 06:47

Here is a simple libudev example that performs the following:

  • Enumerates static plugged in USB storage devices
  • Using epoll, polls for USB and block device changes

To compile:

gcc -Wall -g -o udev_example usbtest2.c -ludev

The code: