Postpostmodern » Downloadable http://postpostmodern.com Speaking of web development. Wed, 11 Jan 2012 00:21:50 +0000 http://wordpress.org/?v=2.9.1 en hourly 1 Gitup! http://postpostmodern.com/2009/02/01/gitup/ http://postpostmodern.com/2009/02/01/gitup/#comments Sun, 01 Feb 2009 18:49:34 +0000 Jason Johnson http://postpostmodern.com/?p=296 Gitup + Transmit = Really Simple Publishing

Deploy vs Publish

There are many ways to deploy a new version of a web site. If it’s a web app, you normally want to use a complete deployment solution like Capistrano or Moonshine. But if you need to update a static HTML site or a simple PHP site, you usually just need to upload the changed files. This is often referred to as publishing as opposed to deployment. There are obviously several ways of doing this. Many file transfer apps have synchronization features. Publishing features can also be found in many editors/IDEs.

The Pain of Publishing

I’m a simple man. All those fancy publish/sync features always seem to be a hassle or else they’re built-in to a less-than-ideal coding environment (I’m looking at you, Coda and Espresso). Editing in Textmate and dock-sending to Transmit is about as fancy as I get. No sync. Just uploading files. The problem is, it’s hard sometimes to keep track of all the updated files that need to be uploaded once a new page is added, feature is complete, etc. Git knows what’s changed (if you’re not using Git or some other SCM, you should be), but going through the logs is a pain.

Gitup and Go

So, yesterday, I wrote a Ruby script to do simple publishing. It’s called Gitup. You tell Gitup which Git commits you want to publish, and it finds all of the changed files and sends them to Transmit. If you have Transmit’s dock send feature set up, Transmit will upload the files to the appropriate server and directory. Gitup will even let you preview the list of files that it plans on uploading.

It’s super-simple and quick. Much quicker than any ‘publish’ feature I’ve seen.

Examples

Send files modified in the last commit to Transmit (Gitup will let you know how many files will be sent and offer you the option to view a list of the files or abort.):

gitup

Send files modified in the last 3 commits to Transmit:

gitup -3

Send files modified in the last 3 commits to Transmit immediately (no prompting or anything):

gitup -s -3

Send files modified since yesterday to Transmit:

gitup --since=yesterday

Send files modified since Monday to Transmit (quotes are required):

gitup --since="last monday"

Send files since the specified commit to Transmit:

gitup dcd2c68..

Open files added/updated between the two specified commits in Textmate:

gitup --application=Textmate dcd2c68..bf75dd6

Disclaimer

Please note that Gitup is brand new. It could be buggy. I’m just sayin’.

]]>
http://postpostmodern.com/2009/02/01/gitup/feed/ 0
Leopard-Style iTerm Icon, Take 2 http://postpostmodern.com/2008/12/18/leopard-style-iterm-icon-take-2/ http://postpostmodern.com/2008/12/18/leopard-style-iterm-icon-take-2/#comments Fri, 19 Dec 2008 01:56:11 +0000 Jason Johnson http://postpostmodern.com/?p=279 Several days ago, I posted a suggestion for a new icon for iTerm, a terminal app that many developers prefer over the standard Terminal app. The first version was just a few standard Leopard icons thrown together. A few days later, I updated the icon with a more balanced, albeit less-colorful, version featuring a vectory globe.

At the developers’ request, I have updated it once again. The color has been brought back to the globe, and the smaller versions (32px and 16px) have been simplified a bit for a cleaner appearance. I encourage you to try the new version. You can click it to download the .icns file, which may be placed inside iTerm.app/Contents/Resources. Enjoy.

iTerm Icon

]]>
http://postpostmodern.com/2008/12/18/leopard-style-iterm-icon-take-2/feed/ 8
Leopard-Style iTerm Icon http://postpostmodern.com/2008/12/05/leopard-style-iterm-icon/ http://postpostmodern.com/2008/12/05/leopard-style-iterm-icon/#comments Sat, 06 Dec 2008 03:28:12 +0000 Jason Johnson http://postpostmodern.com/?p=251 This article has been superceded. See here.

Speaking of iTerm, isn’t it about time we had an updated icon? I’ve cobbled one together using bits of the Terminal icon with elements from the previous iTerm icons. Not exactly original. Same concept as the old icon. It’s just more Leopardy now. Click it to download the .icns file. I recommend downloading the revised version below.

iTerm Icon

Let me know what you think.

Update – Dec 7

Here is an updated version that’s a little more balanced, and looks better at small sizes. Click it to download the .icns file.

Gray iTerm Icon
]]>
http://postpostmodern.com/2008/12/05/leopard-style-iterm-icon/feed/ 6
Quick Email Aliases on Media Temple http://postpostmodern.com/2006/11/29/quick-email-aliases-on-media-temple/ http://postpostmodern.com/2006/11/29/quick-email-aliases-on-media-temple/#comments Wed, 29 Nov 2006 05:17:41 +0000 Jason Johnson http://blog.postpostmodern.com/2006/11/29/adding-email-aliases-on-a-media-temple-dv-server/ The Short Story:

If you have a Media Temple (dv) vps server account with Ruby1 installed and root/sudo access, you can use my handy-dandy script to create instant email aliases for any of your hosted domains.

Usage2:

sudo ./alias.rb email_alias@hosted-domain.com recipient@anydomain.com

That’s it. 5 seconds and you have a new email alias. No Plesky mess involved.

I even aliased my alias script in my .bashrc file:

alias ealias='sudo ~/alias.rb'

The Backstory (and how the script works):

I use a lot of email aliases. I rarely give out my real email address. I usually create an alias that forwards to my real address. For example, if Amazon.com thinks my email address is amazon (@ my domain.com). That way, if I ever start getting spam, I know who gave away my address, and I can just delete the alias.

I use Media Temple’s Dedicated Virtual (dv) hosting plan. The Plesk control panel is kinda limited (and a pain) when it comes to creating lots of email aliases. I’ve yet to find a way to create an alias that forwards to an external email address, and any alias creation takes a crapload of mouse clicks. So, I decided to figure out a simpler way. After looking under hood, I discovered qmail. I didn’t know a thing about qmail, but I was willing to do some research to get to a solution for my alias thing. It turns out, qmail has kind of a neat way of dealing with aliases: for each domain, there is a directory. Each file in this directory represents an email alias3. The files are named thusly: ‘.qmail-alias’ where alias is the actual name part of the alias address. The contents of the file consist of the actual recipient addresses (prefixed by & and separated by newlines). So, a file called .qmail-amazon in /var/qmail/mailnames/postpostmodern.com that contains my real email address, prefixed by an ampersand, would be all that is needed for a functioning alias. All my script does is parse the input to figure out the name of the file, the contents of the file and where to put the file. Then, of course, it just creates the file.

The nice thing about qmail’s system is that the files are utilized instantly. There is no reloading of alias info or anything. It just works.

Oh, and adding a bash alias like this:

alias emails='sudo ls -a /var/qmail/mailnames/hosteddomain.com/'

will give you a list of existing aliases.

  1. Yes, I could have used Bash or something, but I’m more comfortable with Ruby, okay? ↑ back up there
  2. Please adjust the shebang line for your ruby installation. And don’t forget to chmod the script so it’s executable (755)! ↑ back up there
  3. There are also subdirectories for each real email account. ↑ back up there
]]>
http://postpostmodern.com/2006/11/29/quick-email-aliases-on-media-temple/feed/ 7
Enhanced Unit Converter http://postpostmodern.com/2006/01/14/enhanced-unit-converter/ http://postpostmodern.com/2006/01/14/enhanced-unit-converter/#comments Sat, 14 Jan 2006 18:05:55 +0000 Jason Johnson http://www.postpostmodern.com/2006/01/14/enhanced-unit-converter/ is a shit load of garbage?" or "Just how heavy is an ass ton of papers?"]]> If you have a Mac with Dashboard, you might have discovered the usefulness of the Unit Converter widget. It can convert all sorts of measurements: length, weight, mass, even currency using the latest exchange rates. But sometimes, you need more. Sometimes, you may find yourself asking, “How many cubic feet is a shit load of garbage?” or “Just how heavy is an ass ton of papers?”

Well, wonder no more, my friends! I offer to you, the Enhanced Unit Converter Widget! It has all of the functions of the stock Unit Converter plus four extra units to really make this widget useful. Click on the link below to download.

Download Enhanced Unit Converter Widget 1.0

If anyone has any other units of measure they’d like to see added, just post a comment with the unit and the conversion factor. I’ll post updates as necessary.

]]>
http://postpostmodern.com/2006/01/14/enhanced-unit-converter/feed/ 3