Fork me on GitHub

Tag: script

Tag Archives: script

curl’ing a URL in TextMate

Ok, sorry, I can’t let all the BBEdit users think that they’ve discovered something new 😉 In case you’ve noticed the amazement lately on blogs and twitter where BBEdit users have discovered a way to open a curl’d url in BBEdit to view its source you may be wondering “how do I do this in […]

August 18, 2011 | TextMate | 1 comment

View man files as PDF

Sometimes viewing man pages on the command line is less than convenient. Ok, its always inconvenient. But there’s a better way: convert the man page to pdf and view it with Preview. Add this to a file, I named mine manv, put it in a safe place (I keep a /bin folder in my home […]

January 18, 2011 | Computers | 1 comment

WordPress TextMate Bundle Updated

I just updated the WordPress TexMate Bundle with some new features. Cron/Scheduled Events I’ve never really worked with the built in Cron in WordPress but have heard others talk about how much of a pain it is. After recently reading a Sitepoint.com article on scheduling events I was able to get the jist of it. […]

July 22, 2010 | Plugins, TextMate | 1 comment

Automatically download Chromium nightly builds

Updated July 7, 2012: Fixed an issue on Lion where moving old version of Chromium to the trash would fail. Also now opens Chromium after the update is complete. Updated June 9, 2011: The nightlies moved again. The script below has been updated for that change. Updated Oct. 28, 2010: Sometime recently the Chromium nightlies […]

May 29, 2010 | Web Design & Development | 5 comments

Client side pre- and post-svn hooks with Unix Aliases

Its probably nothing new but I came up with a way to do client side post- or pre-svn actions. Its nothing revolutionary but has already come in handy. The script is *nix only (though I don’t see why the same process wouldn’t work on Windows if it supports command line aliases like *nix does). I […]

April 23, 2009 | Code, Computers | 1 comment

SSH Connect Script, Hax, Whatever…

I work with many different servers at work. Most tedious part is that I need to ssh in to them on a regular basis. Not all of them can I, nor do I feel should I, be adding SSH keys on to. So I finally got around to writing a little script to hold onto […]

June 26, 2008 | Computers | Comments Off on SSH Connect Script, Hax, Whatever…

tmbundle update

I’ve been making incremental updates to my TextMate bundle updater for a while now and can finally publish the updated script. It now properly handles updating installed bundles and adds the ability to update only a single bundle and to list installed bundles. Read on for the nitty gritty.

January 17, 2008 | Computers | Comments Off on tmbundle update

File upload class – it is fixed!

After a long time of knowing there was an issue with the script I finally got around to checking it out. Its a little embarrassing to say, but, here’s the dish: I wrote all the functionality to check the file type, but forgot to actually implement it… oops. The file is correct now, so to […]

August 30, 2007 | PHP Scripting | Comments Off on File upload class – it is fixed!

Easily install and update TextMate bundles from SVN

This script has been updated This script was updated on 2008/01/17. Since the version released here had a fatal flaw I have replaced the file linked below. Click here to see the details on the latest version of this script. I’m lazy. I’ll admit it. It comes at weird expenses though. I’m too lazy to […]

May 31, 2007 | Computers | 2 comments

Case Insensitivity and a bite in the ass

I made a disturbing discovery lately and I can’t believe that it has taken me this long to run across it. Case insensitivity in OS X can play havoc with a website, like completely bring it down, if any capitalization errors are made and not caught before moving to a case-sensitive server, like a unix […]

March 16, 2007 | PHP Scripting | 4 comments

Classes for file uploading in PHP

Surprisingly, I still get a lot of referrals from The Stickman for his work on a multi-file javascript upload helper on which I briefly assisted on Safari compatibility. The script adds and removes file upload form elements as requested by the user. So a form can be designed to handle as many uploads as you’d […]

December 22, 2006 | PHP Scripting | 45 comments

Convert file size denominations in PHP

Convert a file size from one measure to another. For example, take a file that is recorded as 512KB and have it converted to .5MB. Yeah, that’s an easy example, but that’s ’cause I was writing it off the top of my head. So, if you need this sort of thing, here’s a function that […]

December 20, 2006 | PHP Scripting | Comments Off on Convert file size denominations in PHP

Embed Google Video and YouTube – Now bigger and better

Well, technically smaller. This new version actually has less lines of code. See, I was trying to be a good boy when I first wrote the script. I tried to be fully DOM compliant and not use innerHTML as it is a non-standard function and has somewhat of a dubious reputation. Well. Screw it. IE […]

December 14, 2006 | Web Design & Development | Comments Off on Embed Google Video and YouTube – Now bigger and better

Javascript to embed YouTube and Google Video

NOTICE: This script has been updated and there is a new version available here. Thanks! A while back I got the urge to write this for no other reason than to make my life over at the Clubhouse a bit more convenient. Frankly, I didn’t want to have to click through to watch YouTube and […]

October 13, 2006 | Web Design & Development | 7 comments

Oh, crap. No wonder I’ve been feeling neglected…

And here I thought nobody loved me anymore. In my ongoing attempts to hold off comment spam I went ahead and screwed up the comment script and accidentally created a condition that would never evaluate to true and thus would never allow a comment to be posted. Damn…

April 15, 2006 | PHP Scripting | 8 comments

mySQL Class Updated for PHP 5 part 1

I’ve updated the SQL class to use some native PHP 5, namely constructors and destructors and include some backward compatibility so PHP 4 does not freak out when it loads the class. I’ll hopefully be making this 100% PHP 5 native soon enough as I’ll actually have a native PHP 5 environment to apply it […]

March 6, 2006 | PHP Scripting | Comments Off on mySQL Class Updated for PHP 5 part 1