Showing posts with label centos. Show all posts
Showing posts with label centos. Show all posts

Tuesday, December 14, 2010

Pull the alt / title tag from xkcd picture from command line

How to pull the alt (actually the title tag), from xkcd with the command line

[root@queerlikerice ~]# curl xkcd.com | grep -E -oh 'title=".* alt=' | grep 'title' | grep -E -oh '".*?"'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8375 100 8375 0 0 137k 0 --:--:-- --:--:-- --:--:-- 538k
"And if you labeled your axes, I could tell you exactly how MUCH better."



Bash cli:
curl xkcd.com | grep -E -oh 'title=".* alt=' | grep 'title' | grep -E -oh '".*?"'

Friday, December 4, 2009

Script for installing rpmforge repo on CentOS

At work we were battling with out of date packages and packages that just simply weren't in the repos. To solve this we added rpm forge to our centOS boxes.

These are two simple scripts that add based on your architecture.
64 Bit Version of RPMForge on Centos


#!/bin/bash
mkdir repo
cd repo
yum -y install yum-priorities
wget http://apt.sw.be/redhat/el5/en/x86_64/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm
rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm
yum check-update
echo "priority = 99" >> /etc/yum.repos.d/rpmforge.repo


32 Bit Version of RPMForge on Centos

#!/bin/bash
mkdir repo
cd repo
yum -y install yum-priorities
wget http://apt.sw.be/redhat/el5/en/i386/RPMS.dag/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
rpm -K rpmforge-release-0.3.6-1.el5.rf.*.rpm
rpm -i rpmforge-release-0.3.6-1.el5.rf.*.rpm
yum check-update
echo "priority = 99" >> /etc/yum.repos.d/rpmforge.repo

Tuesday, March 3, 2009

memcached installation from source

Had some difficulties with an error like this:
libevent-1.4.so.2: cannot open shared object file
and had them answered:
http://alexle.net/archives/275

Saturday, December 13, 2008

New Job New Title Same Blog New Material

I have recently been hired on as a Perl and PHP programmer for a new start up. It's good to be off the freelance tit. They use CentOS servers so expect some CentOS/Redhat goodness coming your way. Along with perl,php,bash and javascript goodness(so far I have done a lot of javascript/css garbage{that's right, fuck you IE}). Oh and we use the Yahoo User Interface library so that's pretty cool to. So anyways, that being said I am going to try to get a couple technical posts out this weekend, and one during the week, and expect that to kind of be the interim blog schedule.

Oh and a new job, at least in my life, means a new computer, so I am leaning towards getting either a thinkpad or a macbook pro. If anyone wants to weigh in on that I would love to hear it.