Justin Jacobs

I'm gonna become ROBON-GAR X!

About Me

Oh hi, my name is Justin. This page is for showcasing my various programming projects and bash scripts. Although, you should check out my Github page for a more complete overview of my programming stuff.

Also, I like Japanese anime and manga. If you're interested, I keep track of the anime I've watched on MyAnimeList.

Espada

Title Screen Gameplay

This is a simple space shooter that I made with C and SDL. It's not complete yet, but it's certainly playable. You can grab the source code here. You'll need SDL, SDL_image, SDL_ttf, and SDL_mixer to compile it.

Controls:
Arrow keys or WASD = Movement
Space or Right Control = Fire
Enter = Continue on Game Over
Escape = Quit

Newsbeuter Notify Script

This is a short script that reloads newsbeuter, and then displays a desktop notification (using notify-send) if there are unread articles. I have this set to run every 10 minutes in my crontab.

#!/bin/bash if [ -s ~/.newsbeuter/urls ]; then newsbeuter -x reload query=$(newsbeuter -x print-unread | grep -w "unread articles") if echo $query | grep -wq "0 unread articles"; then echo "No new articles." exit else echo "New articles found" DISPLAY=:0.0 XAUTHORITY=~/.Xauthority \ notify-send "Newsbeuter" "$query" -i liferea fi fi

Image Download Script

This script will download a web page (using lynx) and save all of the linked images. Great for imageboards.

#!/bin/bash savedir=~/Scripts/downloaded_images if [ $# -lt 1 ] then echo "Error: No arguments given." exit 1 fi if ! echo $1 | grep "^http://" then echo "Error: Argument was not a url." exit 1 fi url=$1 mkdir -p $savedir cd $savedir lynx --dump $url >> urls.txt cat urls.txt | awk '/http/{print $2}' | grep png >> images.txt cat urls.txt | awk '/http/{print $2}' | grep jpg >> images.txt cat urls.txt | awk '/http/{print $2}' | grep gif >> images.txt for i in $(cat images.txt); do wget -nc -nv $i; done rm ./images.txt rm ./urls.txt rm -f ./*.html* echo "Scrape Completed." exit 0

Vectors

These are just some anime-related vector traces I've done in Inkscape.

Kuwahara Sakurai Suzu