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”