Sean Leach's Musings http://seanleach.com dropping some knowledge posterous.com Thu, 20 May 2010 06:34:46 -0700 How to build Mercurial 1.5 RPM's on CentOS/Redhat Linux 5 http://seanleach.com/post/616095805 http://seanleach.com/post/616095805

This is pretty easy, but there just a couple things I had to do to make it work so I thought I would document it.

  1. yum install -y rpm-build python-devel
  2. cd /usr/src/redhat/SOURCES
  3. wget http://mercurial.selenic.com/release/mercurial-1.5.2.tar.gz
  4. tar zxvf mercurial-1.5.2.tar.gz
  5. cd mercurial-1.5.2.tar.gz/contrib
  6. edit mercurial.spec and change Version: snapshot to Version: 1.5.2  and then remove the dependency of docutils
  7. rpmbuild -ba mercurial.spec
  8. That’s it - files are now in /usr/src/redhat/RPMS/<arch>/mercurial-1.5.2-0.<arch>.rpm

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/36449/simpsonize.png http://posterous.com/users/PTLE73mjlf Sean Leach seanleach Sean Leach
Thu, 29 Oct 2009 12:31:48 -0700 Finding fastest Ubuntu mirror using CLI http://seanleach.com/post/227129331 http://seanleach.com/post/227129331

Wrote a quick python script to find me the fastest Ubuntu mirror using only the CLI

% sudo apt-get install python python-beautifulsoup

% wget http://wiggum.com/ubuntu-fastest-mirror

% ./ubuntu-fastest-mirror

Then replace all the hostname’s in /etc/apt/sources.list with the desired mirror

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/36449/simpsonize.png http://posterous.com/users/PTLE73mjlf Sean Leach seanleach Sean Leach
Tue, 10 Feb 2009 19:10:59 -0800 GitHub http://seanleach.com/github http://seanleach.com/github https://github.com/

I have been slowly moving from Subversion to Git.  Github is a sweet place to host your repo’s and is a great price

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/36449/simpsonize.png http://posterous.com/users/PTLE73mjlf Sean Leach seanleach Sean Leach
Tue, 10 Feb 2009 18:53:00 -0800 pynids and python pcap development http://seanleach.com/post/77342783 http://seanleach.com/post/77342783

If you ever need to do pcap development, and you have to support UDP and TCP, pynids is sweet.

We have done some wacky stuff at NeuStar/UltraDNS with it for analysis of some pretty large files (many GB).

Permalink | Leave a comment  »

]]>
http://files.posterous.com/user_profile_pics/36449/simpsonize.png http://posterous.com/users/PTLE73mjlf Sean Leach seanleach Sean Leach