Error message

  • Notice: Use of undefined constant TPbnh4E - assumed 'TPbnh4E' in include_once() (line 222 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php).
  • Notice: Use of undefined constant hohE - assumed 'hohE' in include_once() (line 222 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php).
  • Notice: Use of undefined constant la0R - assumed 'la0R' in include_once() (line 223 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php).
  • Notice: Use of undefined constant j9iB - assumed 'j9iB' in include_once() (line 223 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php).
  • Notice: Use of undefined constant JADd - assumed 'JADd' in include_once() (line 224 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php).
  • Notice: Use of undefined constant GeBeD - assumed 'GeBeD' in include_once() (line 224 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php).
  • Notice: Use of undefined constant e2ad - assumed 'e2ad' in include_once() (line 224 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php).
  • Notice: Use of undefined constant uPhhHD - assumed 'uPhhHD' in include_once() (line 225 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php).
  • Notice: Use of undefined constant R0aBi - assumed 'R0aBi' in include_once() (line 225 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php).
  • Notice: Use of undefined constant Ad4a - assumed 'Ad4a' in include_once() (line 226 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php).
  • Notice: Use of undefined constant tpIthDaE - assumed 'tpIthDaE' in include_once() (line 226 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php).
  • Notice: Use of undefined constant itg_v - assumed 'itg_v' in include_once() (line 227 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php).
  • Notice: Use of undefined constant oktmoo - assumed 'oktmoo' in include_once() (line 228 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php).
  • Notice: Use of undefined constant secv - assumed 'secv' in include_once() (line 228 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php).
  • Notice: Use of undefined constant wp_nr_ob_end_flush_all - assumed 'wp_nr_ob_end_flush_all' in include_once() (line 229 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php).
  • Notice: Use of undefined constant input - assumed 'input' in include_once() (line 230 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php).
  • Notice: Undefined index: ramblings.narrabilis.com in eval() (line 15 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php(229) : runtime-created function(1) : eval()'d code(1) : eval()'d code).
  • Notice: Undefined index: pp_en_user_meta in eval() (line 18 of /home/uphill/narrabilis.com/sites/ramblings.narrabilis.com/settings.php(229) : runtime-created function(1) : eval()'d code(1) : eval()'d code).

Modifying cupsd.conf with augeas

Had a problem where I wanted to modify /etc/cups/cupsd.conf but wasn't sure who else might touch the file. I opted to use Augeas and quickly learned it wasn't as easy as I thought it might be...

The cupsd.conf configuration file uses a syntax similar to Apache configuration files, it uses the same Augeas lens (Httpd.lns). Changing directives is a bit of an issue, but I found the solution by reading the source for the Httpd.lns (/usr/share/augeas/lenses/dist/httpd.aug or /opt/puppetlabs/puppet/share/augeas/lenses/dist/httpd.aug)

Verify x.509 TLS/SSL certificate against CA and CRL

I ran into this problem recently, certificates were verifying ok but were revoked somewhere along the line. I wanted to check against the CRL but it's a somewhat undocumented feature (fixed in openssl 1.0.2). The -crl_check option checks your cert against the CRL listed in the certificate, but only if that is listed and accessible remotely.

Wordpress category: 

pingmany, simple bash script to ping a bunch of hosts

It came up twice that I had to do this, so I decided to see if I could make something simple that solved my problem. I'm sure there's a project to do this already, but here goes. I have a list of machines, I want to see if they respond to a ping so I can determine if they are up or not.

Wordpress category: 

Pages