{ Josh Rendek }

<3 Go & Kubernetes · honeypots · homelab · leadership

Sep 5, 2010 · 4 min

CentOS GCC not found + other weird errors after hdd cloned

A week or so ago the HDD started failing on my web server, so I had the DC clone the HDD for me. Some files however got lost in transit (bad sectors) and when I was trying to install nginx to get some testing done, I kept getting this error:

./configure
C compiler not found

Apparently it wasn’t finding GCC, even though it was definitely installed. After looking around a bit at the system and talking with a few people on IRC #linux, found out that some header files and other files were missing from /usr/include. Here is an example of some of the errors I got with a simple hello world C++ program:

read more

Sep 4, 2010 · 2 min

StarCraft II: Terran & Zerg Build Order

Here are the two build orders I’ve been able to glean from watching replays and trying them out myself. The first is the Terran Barracks FE (fast expand) tactic:

The terran build is a 3M (Marine / Marauder / Medvac ) tactic, the idea is to quickly secure your natural expansion, and then just build up defenses using the 3M’s to ward off any attacks. Once your opponent has thrown their forces at you (and been destroyed, dont forget to use stim packs!), you can make a quick counter and wipe them out.

read more

Sep 4, 2010 · 1 min

Ruby: 4 chan download script

I wrote a quick little ruby script to download images off of 4 chan (the mecha channel for instance, although it could be changed to download nature/animal for wallpaper rotator or something else interesting):

read more

Sep 4, 2010 · 1 min

Windows 7: Installing CodeWarrior on 64 bit windows

We’re working with micro-controllers this semester and were told we needed CodeWarrior - the version we use in the lab was version 5.0 so I went ahead and downloaded that for home use (they have a Special free edition for students). BAM. Problem, the wizard would unpack everything then after the copying files step it would say : “The wizard was interupted while installing….” etc. I tried several fixes, one of them involved installing the Windows XP virtual machine, installing it in there, and then copying the files over. No dice, as the DLL’s weren’t registering and the regserv.bat file they used wasn’t working either to install them.

read more

Sep 4, 2010 · 2 min

Mac Pro: Windows 7 64 Bit Boot camp

After about 3 hours yesterday of banging my head on the desk, and re burning copies of my windows 7 disk thinking it had scratches, it ended up being the boot records that were FUBAR’d. I would go through all the steps, install everything, enter my user information and then it would go into its final and fourth reboot sequence, but would then stop at a black/blank screen with a blinking cursor. If I still had the DVD in it would say “Press any key to boot from the CD or DVD…._” where _ is the blinking cursor that appeared when Windows was really supposed to boot up.

read more

Sep 4, 2010 · 2 min

Mac Pro: Improving Performance with SSD and disabling SWAP usage

If you have an SSD and plenty of available memory you should see a significant increase in performance when using this. I have 2x Core i7 - 8GB RAM, ATI Radeon HD 4800 series and a 128GB SSD. I first noticed some issues when a few apps started to slow down (if you can call it that when running with a solid state ;) ) - anyways, the memory management portion of Mac OS X is “special” in the sense that it’s horrible.

read more

Aug 26, 2010 · 1 min

Quickly compress git repository folders to save space

I keep all my Rails stuff in one folder (called apps) and I needed to clean up some disk space to keep my SSD sane, so I wrote this quick little ruby snippet to go through each directory and compress it:

#!/usr/bin/env ruby

files = Dir.glob("*")

for f in files
   if File.directory?(f) then
       p `cd #{f}; /usr/local/bin/git gc`
   end
end

read more

Aug 25, 2010 · 1 min

StarCraft II Login screen not showing up

Couldn’t figure out why my Starcraft II wasn’t letting me login (or show up) on my desktop (but was on laptop): Go ~ Documents / Blizzard / Starcraft II

Make a new folder called tmp (or just move it all to the trash) and move the folders and everything in there inside that folder. Load the game and all your settings should be reset and the login screen should show up again.

read more

Aug 22, 2010 · 1 min

MAC: Syncing Calendars between mac's

I work when I’m at home on my mac pro, but when I have to go places I want to use my mac book pro but make sure all my calendar information is up to date. After Google’ing around a bit, i found some applications but they were $50+ so here are few easy steps to sync from one computer to another for iCal:

Step 1: Get your other computer’s IP address, and make sure SSH login is enabled

read more