Tracing Redirects with curl
I quite often need to debug rewrites and redirects and with curl this is quite easy.
curl -I -L "http://somewhere.com"
also you can add the -k option to ignore invalid certificate errors
Continue reading
I quite often need to debug rewrites and redirects and with curl this is quite easy.
curl -I -L "http://somewhere.com"
also you can add the -k option to ignore invalid certificate errors
SSH is without doubt my favorite command line tool. Today I needed to transfer a file between two hosts that I could SSH to, but could not SSH to each other. This is really simple with a bit of standard UNIX piping.
ssh hostA cat somescript.sh | ssh hostB "cat …
Ok so apparently ifconfig is either deprecated or old fashioned and your supposed to use the 'ip' command instead. Turns out it's really nice and I prefer it to ifconfig,route,already.
Here's some examples:
ip addr - equivalent to ifconfig
ip addr show eth0 - same as above just show eth0 …
I wanted to run all updates from the RHEL repositories, but not the rpmforge and WAN Disco ones. Easy.
sudo yum check-update --disablerepo=rpmforge --disablerepo=WANdisco-dev
Posted on Sat 17 December 2011 in misc • Tagged with graphics
I've recently been buying allot of digital downloads and it seems a waste that the album art encoded into the track is often 1500x1500 and taking up valuable disk space.
A quick blast with Graphics Magick solves all
gm mogrify -scale 25% Artwork.jpg
I recently got around to setting up a backup of my data. I decided rather than using something like Drop Box (which I'm sure is great) I'd keep things simple and set up a new EBS volume on my EC2 box and rsync my data there.
Here was the initial …
In an effort to make my Dual Core 1.6 Centrino laptop perform abit better I thought I would splash out on a SSD. I picked this up for £75 http://www.ocztechnology.com/ocz-vertex-2-sata-ii-2-5-ssd.html By the way my laptop is only SATA 1.
A quick google of SSD …
I do this at least once a day; open a file in vim, make changes, then get reminded that I didn't do it using sudo.
simple one-liner fixes this.
:w !sudo tee %
Thanks to http://www.cyberciti.biz/faq/vim-vi-text-editor-save-file-without-root-permission/ for that one.
This is such a useful feature of SSH that I wish I had know about before now.
When working remotely from an insecure location, or when only the remote location is trusted by another host, e.g for a firewall login or viewing intranet pages you only have access to …