Super-Charging rsync Transfers

is a great utility for transferring files across a network, such as synchronizing your project folders onto a development server. The only downside if you frequently use rsync to transfer changes across the network is that you have to wait for a new SSH connection to be created, which takes time.

Delays …

Continue reading »

Permanent link to this article: http://permafrostcodingstudio.com/articles/super-charging-rsync-transfers/

Customing Bash, Part One

Customing Bash, Part One

I use bash every day, and I’ve customized it with all kinds of features that I couldn’t live without. In this installation, we’ll cover essential bash aliases.

You’ll want to create a separate file just for your aliases, or perhaps a directory if you really want to organize a large number. …

Continue reading »

Permanent link to this article: http://permafrostcodingstudio.com/articles/coding/customing-bash-part-one/

Script: Preprocess PHP

PHP doesn’t come with conditional compiliation or any preprocessor tools, but using a generic preprocessor can make life much easier. Conditional compilation is just that — blocks of code can be set to only compile and run if a certain condition is met. Many compiled programming langauges support this, such as C/C++, Pascal, and others.

Continue reading »

Permanent link to this article: http://permafrostcodingstudio.com/articles/script-preprocess-php/

Syntax Highlighting In Posts

Curious how I syntax highlight source code for posts? pygmentize is a python utility that supports many languages, comes with a bunch of different styles, and can output the highlighted text in a variety of formats (like html/css, ANSI colors, etc.). After you’ve installed pygmentize, you need to get a list of available styles:

Continue reading »

Permanent link to this article: http://permafrostcodingstudio.com/articles/syntax-highlighting-in-posts/

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 script that indents all of the lines from stdin, with the …

Continue reading »

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

Older posts «

» Newer posts