www.pokeroconnor.com

chm Files on MAC

April8

For reading .chm files on MAC OS, get CHMOX! It’s free and dead cool.

Random Useful Linux Information

March3

Verify SHA1 checksums

Handy little checker on the above page:
#! /bin/bash

hash=$(openssl sha1 $1)
if [ "SHA1(${1})= $2" = "${hash}" ]; then echo "Key is valid."; else echo "Key is _not_ valid!!!"; fi

Great resource for awk examples, and at the bottom of this page some useful greps.

And the classic SSH public keys. Handy starter for crontabs here.

To create a tarball use this syntax: tar -cf [name of tarball].tar [list of files or directories] To gzip it, do:  gzip -9 [file].tar.

Then to unpack the tarball, do: gzip -d file.gz for zip files, and tar -xvf file.tar for .tar files. If you’ve got a .tgz file, just do tar -xvzf file.tgz.

a2 hosting guide

February15

A2 Hosting are by far the best web hosts I’ve come across, in terms of value for money, quality, reliability and customer support. So I’ll be adding some reference material here as I have time, more or less for my own benefit too.

Will be adding more here but for now here is the guide to installing TRAC.

SMTP and IMAP details for google apps mail. Vid tutorial of the same.

curl for response code

February11

This is handy, you can use:

curl -w %{http_code} url

to retrieve the http response code for a given url.

Bash script for parsing my lotto results:

#!/bin/bash

count=0;
var1=0;

exec<"lotto.txt"

while read line

do

if [ $[$count % 2] -eq "0" ];
then
var1=$(echo $line | awk '{ print $1 $2 $3}');
echo $line;
else
var2=$(echo $line[-1] | awk '{ print $1 $2 $3}');
echo $var1 $line;
#echo $date1
fi
let "count+=1";

done

Old Welcome…

February9

…to my non-poker related blog. This is really just a handy way for me to keep track of my web dev adventures, so it’s not really for public consumption, but you’re more than welcome!!