Shell Tutorials

  • By
    Recursively Delete .svn Directories

    Version control systems are hugely important when it comes to development of all kinds.  I'm a huge fan of git but sometimes I'm required to use SVN.  Unfortunately I tend to forget to remove .svn folders when I copy and paste from a directory structure template.

  • By
    Fixing Python’s “Python Eggs” Error

    Let me first state this for the record: I am not a server guy. The closest I've ever gotten to compiling my own versions of code is "sudo port install ..." So when I decided to teach myself Python (creating simply database interaction...

  • By
    MooTools Forge / GitHub Plugin Structure Shell Script

    One thing I love about the MooTools Forge is that it requires a strict structure for its plugins i.e. requiring a README.md file, Source directory, etc. I've created a shell script that I can run that creates the directory structure and files required to add...

  • By
    Run PHP Files From the Command Line

    I've been brushing up on my shell scripting lately. I just got a MacBook and never felt compelled to spend too much time with Cygwin. I'm learning quite a bit now but there are still some tasks that I'd need to accomplish sooner rather...

  • By
    Automate YouTube Video and MP3 Rips with Bash Shell Scripting

    I love listening to music while I code. Listening to music keeps me from getting too frustrated about code that isn't working (yes, it happens) or frustrations brought on by hosting providers, clients, etc. What I'll do is listen to Pandora, hear a song...

  • By
    Creating Git Aliases

    I create shortcuts for everything. I create variables which act as text shortcuts, shortcuts in TextMate to generate CSS/JS/HTML, and bash scripts so I don't have to type in the same commands over and over again. So why should version control software be any...

  • By
    PNGCRUSH a Directory of Images

    One easy way of reducing website load time is by optimizing your images. PNG graphics are often more bloated than they need to be so using PNGCRUSH should be a no-brainer. PNGCRUSH's basic usage provides only single-file-crushage but I've created a script that crushes...

  • By
    YouTube, FFMPEG, and MP3 Conversion

    Yesterday I published a quick post about a basic MPEG -> FLV video conversion method using FFMPEG. Today I want to share another great usage of FFMPEG: stripping a video's audio and creating an MP3. As an added bonus, I'll be ripping...

  • By
    Convert Video Formats Using FFMPEG

    Getting a video into the format you like can be important when providing media to your users on the web. Unfortunately your customer or video source may not give you media in the desired format. No problem: use the FFMPEG library to...

  • By
    Reduce PNG Graphic Size Using PNGCRUSH

    Now that I'm knee-deep in MacBook I love working with command line applications. There's a certain beauty in the simplicity of using the console instead of a nice GUI. One task I use the console for often is reducing the size of PNG files...