Someone recently asked me if I knew of a web based uploader that returned the Akamai CDN URL of the file. I looked around and found this site but it wasn’t quite what was wanted. I decided to edit the code in the example from that site and came up with this.
Read more »
Category Archives: Code
Uploading to Rackspace Cloud Files with PHP
Using Rackspace DNSaaS with curl (part 1)
With the release of Rackspace DNSaaS (blog post here), I thought I would put together some examples of using curl with the service. With this release, you now have programmatic access to DNS via the API where you can set TTLs, create and delete various record types, and create and delete domains.
Read more »
Edge Purge Content from Rackspace Cloud Files via curl
When the Rackspace Cloud Files product received Edge Purge functionality via the API, I didn’t give it much thought as I didn’t use the CDN functionality for any of my personal projects. That changed recently and I started doing some work with the CDN (powered by Akamai). All was fine until I realized I had set the TTL for the objects too high for my testing and wasn’t receiving the right content. Below you’ll find the appropriate methods for doing an edge purge of an object and container via curl using the API.
Read more »
Putting subject & from in mail from command line
I couldn’t figure out how to send an email with both the subject and from set from the command line.
-
mail -s "my subject" example@foo.bar
worked with mail but would only set the subject.
-
sendmail -f "sender@foo.bar" receiver@foo.bar
worked with sendmail but would only set the “from”. With a little help from Google I put this together:
Read more »
Postfix mailq search
I couldn’t find a script to search the Postfix mail queue so I wrote one. It’s a bash script and can be downloaded here (or just copy and paste it to file of your choice). I call it ssubject.sh. It ends up just spitting out the queue id’s of messages that match. Usage: “ssubject.sh “some words to look for”
Read more »
