Ruby one-liners I have found handy lately: 
- convert hex data to hex string
- convert file contents to base64
- super useful, machine sortable, but still human-readable time stamps
- mash two arrays into a hash where one array is  hash keys (esp CSV parsing)