Category Archives: etc

Mirror Checking using a “live” md5sum

If you’ve “mirrored” some files and want to do an md5sum check recursively without an intermediate file (md5sum > file; md5sum -c file) you can do it in one easy step using this from the relative path where you are mirroring:

ssh ${HOST} find ${DIR} -type f -exec md5sum {} \\\; | sed sF${DIR}FF | md5sum [...]

Metallica – One-liner

I use Metallica one-word song titles as hostnames on my PCs, so to easily look through my MP3s to find 1-word song titles, I used this gem:
ls * | sed -n ’s/^.. – \([^ ]*\).mp3$/\1/p’ | sort -u

Assembly (UCR CS61)

It’s been a while since I’ve actually done anything with assembly code, but going through some old directories from UCR, I found some of my old assembly code. I feel like posting it to get something on the site, so here’s some of the assignments. It’s assembly for the artificial architecture called the [...]

Combining PDFs in Linux

A while back I had a series of PDF documents that were in chapter forms. If my memory serves me correctly, it was the teacher book which included answers in college. I didn’t want 20 pdfs, I wanted only one. Here’s how to combine them all on the command line with ghost [...]