Geekality - geekality.net - Geekality

Latest News:

Unix users and groups 27 Aug 2013 | 02:04 pm

Just a note to self on how to administer users and groups on Unix systems, and some related tasks. # Add group groupadd -g <n> foobar # Add user useradd -G foobar -d /path/to/home -m -s /usr/bin/b...

Unix command search 7 Aug 2013 | 04:23 pm

In a Unix Bash shell we can scroll through previous commands by using the up and down arrow keys, but we can also search for previous commands. I keep forgetting how, so time to write it down Ctrl+r ...

PHP: How to use IntlDateFormatter for local month names 3 Aug 2013 | 10:51 pm

Here’s how to get PHP to output a date with a full local month name. setlocale(LC_ALL, 'no_NB.utf-8', 'nor'); // For other stuff Locale::setDefault('no_NB.utf-8'); // For IntlDateFormatter $f = new...

Bat: Some simple things to make batch scripts more helpful 11 Jul 2013 | 02:55 pm

Tried to make a helpful batch script for something at work and learned some new things I thought I’d write down here so I know where to find it later. Turn off echoing Should be known by everyone re...

Unix: Useful and pretty prompt 2 Jul 2013 | 01:49 pm

Some servers at work has varying degrees of useful prompts when I connect to them through SSH. Usually they are quite annoying and for example showing the shell type and version, which I frankly don’t...

MediaWiki: Disable anonymous edits 20 Jun 2013 | 03:58 pm

Using a MediaWiki installation to document internal systems where i’m currently at, and although we all have users it’s easy to forget to login before making edits. This results in a history full of I...

MediaWiki: Allow tel: protocol hyperlinks 17 Jun 2013 | 02:00 pm

In MediaWiki you can already make email hyperlinks ([mailto:[email protected] Mail someone]), but telephone number hyperlinks aren’t allowed for some reason by default ([tel:0123456789 Call someone]...

PHP: Catch all exceptions and errors in a normalized and consistent matter 4 Jun 2013 | 11:50 am

For my small website myhymnal.net I wanted a nice error handler that caught all errors and presented them as nice error pages. The problem is that you have at least three kinds of errors which you hav...

External tool definitions for mRemoteNG 23 May 2013 | 05:36 pm

Here are some external tool definitions I have defined in mRemoteNG. WinSCP Display name WinSCP (sftp) Filename C:\Program Files (x86)\WinSCP\WinSCP.exe Arguments sftp://%username%:%password%@%...

MediaWiki: Promote user to sysop when sysops are gone 21 May 2013 | 07:26 pm

Working for a client which has documentation on a MediaWiki installation which was set up before we got there. Was able to create users for ourselves through the regular site, but certain things like ...

Recently parsed news:

Recent searches: