Category Archive: Scripting

Project Automation – Website Development

When working on a website project, often you’ll find the need to synchronize your local source code to your development server, i.e. after making several changes for a new feature. The straightforward and common method of doing this is with your favorite FTP client …

Continue reading »

Permanent link to this article: http://permafrostcodingstudio.com/articles/project-automation-website-development/

Automated Project Versioning

For certain projects, you might find yourself in need of a way to store and manipulate version numbers for a project (i.e., managing website revisions.) Using JSON, C, and Bash, you can easily create a system for automatically managing version numbers.

JSON is a great …

Continue reading »

Permanent link to this article: http://permafrostcodingstudio.com/articles/coding/automated-project-versioning/

Script: Indent Lines From Stdin

In many of my shell scripts, I call other shell scripts to accompish various tasks. Sometimes the output from these sub-script calls is useful, but I like to differentiate between the output from the sub-script and the main script. Enter indent-stdin: A basic …

Continue reading »

Permanent link to this article: http://permafrostcodingstudio.com/articles/script-indent-lines-from-stdin/

Script: Automatic PHP Manual Updater

I always have the PHP chm manual open when coding, and it’s updated frequently. Instead of having to manually download a new copy every time it’s updated, I have a script that runs every night at 3 AM to …

Continue reading »

Permanent link to this article: http://permafrostcodingstudio.com/articles/script-automatic-php-manual-updater/

Favorite Script: newscript

`newscript` is a bash shell script that I use on a daily basis. Its purpose is simple: it creates a new file with a specified name, adds a hashbang line for the proper interpreter, and chmods +x. newscript makes creating new shell scripts a breeze.

Usage: …

Continue reading »

Permanent link to this article: http://permafrostcodingstudio.com/articles/coding/favorite-script-newscript/