HOWTO

All posts tagged HOWTO

determine-shell.sh

I’ve been doing some work on a scripting test environment which would automatically run a test suite while I’m editing, triggered when I save.

I’ve already completed a rather complex version of it.. well I’ve completed three versions of it.

  1. Bash
  2. Boo
  3. Zsh

I want to merge all this effort into one mega-script which can be easily adapted to any scripting/programming language. Therein lies the problem. There are some tricks which I want to invoke in a bash and zsh environment in order to do some extra debugging.

Continue Reading

Linux logo - 'Tux'

Software > Search >

(on Wikipedia)
http://www.gnu.org/software/findutils/

“The GNU Find Utilities” is one of those packages that’s installed everywhere. find is one of those programs everyone ends up using and ends up being horrified at.

  • aka GNU Find Utilities

See also:

  • grep – For searching the contents of files.
  • locate maintains a database.



Continue Reading

WordPress >

  • 2017-08-02 — Exporting through the WordPress panel is not reliable and is broken for large blogs.

    • I use PhpMyAdmin and dump the entire table as an SQL file.
  • 2015-12-10 — My concerns are no longer valid.

    • It’s easy enough to FTP-download the images, and re-upload them to a new place.
    • Exporting and importing the “WordPress eXtended RSS” (WXR) file is trivial.
    • A simple XML file is small enough that there should be no file size concerns.

While there are export and import features in /wp-admin/export.php, I did some thinking and research to learn that there some issues with the functionality.

  1. Importing a large database is non-trivial
  2. There is no file/image backup-and-restore
  3. Changing URLs requires setting changes or database editing

Continue Reading

2015-05-10 update – I’ve been using some more complex stuff, which can be found around my shell-random/zsh github repository. See 3-interactive.sh and colours.sh


I’m pleased to announce that I’m the very first user to have ANSI colour in a zsh prompt.  Yep, the very first.  I must be, since there is no example to be found anywhere.  After a serious amount of searching and fist-shaking at vague documentation, I was able to hack it out myself.

My solution is still incomplete though.  Let’s walk through this nonsense..

Continue Reading