Mauriat Miranda     mjmwired

Migrate from Perforce to Git

I had been using Perforce for revision control mostly for Windows and binary files (excel, PDF, etc.). It worked amazingly well and had a powerful GUI! However I finally decided to consolidate on Git. Primary instructions are from git scm In CentOS you will need the helper package: $ sudo yum install git-p4 The following steps worked perfectly for me. My Git projects are in ~/git (where the converted project will end up) My Perforce server is on atlas I use ~/work as my working directory (where I clone, checkout, etc.

Migrate from Mercurial Hg to Git

I had one last Mercurial project that I still actively developed. Everything new I’ve completed restarted with Git but this was a last hold out. I blindly followed this Stack Overflow answer which says to use fast-export. However I ran into the following problem, and the Stack Overflow answer didn’t help much. $ git push origin master remote: error: refusing to update checked out branch: refs/heads/master ... ! [remote rejected] master -> master (branch is currently checked out) error: failed to push some refs to '/home/mirandam/git/project' After some trial and error, the following steps worked exactly how I expected.

Legacy Man

Legacy Man by Mauriat Miranda (with apologies to Billy Joel) It’s nine o’clock on a Wednesday The regular files are looking neat There’s an old dev sitting next to me Trackin' bugs in his Excel spreadsheet He says, “Son, can you debug this memory I’m not really sure how it works But it’s bad and discrete and I knew it complete When I wrote a younger man’s code.” La la la, di da da La la, di di da da dum

Automated FTP Script

I’ve been doing some development for some embedded Linux devices which only support ftp and telnet. In order to automate transfer of binaries from my Fedora development host to the target embedded device I’m using this handy ftp script: pushftp.sh #!/bin/bash # arg1 = dest hostname # arg2 = local file # arg3 = dest dir HOST=$1 SRCFILE=$2 USER=root PASSWD=password #DESTDIR=/usr/local/data DESTDIR=$3 ftp -inv $HOST<<ENDFTP user $USER $PASSWD cd $DESTDIR bin put $SRCFILE chmod 755 $SRCFILE bye ENDFTP Then I added something like this to my Makefile after cross-compiling:

Downside to Enterprise Linux

(Note: For the purpose of this post CentOS is equivalent to RHEL) It has been about 2 and 1/2 years since I built a dedicated server and chose CentOS instead of Fedora. Since I installed CentOS 5.1 I have used the upgrade process 4 times with no problems bringing me to version 5.5 with practically no re-installation, re-configuration or troubleshooting upgrade issues. This is the goal of enterprise linux. A long term stable solution with no major changes to preserve compatibility with every piece of software that was provided since it was released (in this case April 2007).