Author Archives

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 “LC2″. If [...]

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 script installed: gs [...]

Auto SSH Key

This small script (basically a one-liner) will transfer your public ssh key (if in standard ~/.ssh/id_dsa.pb) and properly set permissions to the host passed as the first argument. This makes it so the only time you need your password (if using a passphrase-less ssh-key) will be when running this script. After that, you will have [...]

FTP Sync

This script is useful to mirror a directory over FTP. I find this useful when I am working on web changes on an account I do not have SSH access or VIM. I have plans to add getopt support for more functionality. As of now, most of it is controlled via the environment variables found [...]