I needed to get some quick random numbers that would represent a time on the form HH:SS. In my case the time should be between 10:00 and 12:55. I did this in bash with: #!/bin/bash # If the random number is 1, then LAST-number is set to 0. # Else it would be set to

We have a Postgresql server open to many different people at our organization. In order to add a ldap authentication you can add these 3 lines to your current pg_hba.conf file: host all username    127.0.0.1/32       ldap ldapserver=”ourserver.uib.no” ldapbasedn=”ou=people,dc=uib,dc=no” host all username    129.177.XXX.YYY/32 ldap ldapserver=”ourserver.uib.no” ldapbasedn=”ou=people,dc=uib,dc=no” local all username                      ldap ldapserver=”ourserver.uib.no” ldapbasedn=”ou=people,dc=uib,dc=no”

I wanted to know how many A4 pages I would have to print on a printer, if I wanted to print all the articles in a Mediawiki installation. We have a Mediawiki installation with a total number of 1,418 content pages. I already managed to export all the articles to their respective PDF files. This

We had to rewrite some specific domain names in our WordPress multisite. Most of our domains are on this form: something.w.uib.no In our case that is nice, because we also have a valid ssl certificate which supports *.w.uib.no. But in addition we have other domain names on the form: something.uib.no which we don’t have a