Skip to content

Entries with the tag “scripting”

Generic scripting blog entries have the “scripting” tag.

PhpStorm Terminal LC_ALL Error Fix

When a new terminal opens in PhpStorm on macOS, I was getting a weird error: bash: warning: setlocale: LC_ALL: cannot change locale (en_US-u-hc-h12-u-ca-gregory-u-nu-latn): Invalid argument.. Strange, I use Oh My Zsh with the Zsh shell. Why am I getting that error? Why bash? I could ignore it each time - but I wanted a fix.

Dec 5, 2025 2 min read #macos #phpstorm #scripting

Reusing DotEnv Configuration with the Shell

A common security pattern is to add environment-specific configuration and secrets into a local, unversioned file. You’re probably already doing this with a tool called DotEnv. Let’s see how we can reuse that between PHP and the shell.

Sep 29, 2025 2 min read #php #scripting

2 Ways to Use Alfred to Set Status on Slack

I’m a huge fan of Alfred - but I had to upgrade to get the pro version to get workflows. Because I use Slack a lot, I’ve been trying to set up status automation and workflows. When using my phone, I have an automated system that sets my status. You can find that here. But, what about using Alfred for some automation?

Nov 19, 2018 3 min read #macos #php #scripting

Track the Things You've Done Today with Alfred

For our agile workflow, it’s important to provide a check-in each day. What did you do yesterday, what do you plan on doing today, do you have any blockers? My biggest challenge is actually remembering what I did “yesterday” - especially after the weekend.

Jul 24, 2017 3 min read #macos #scripting

Ansible Installation of Postfix with No Prompts

Using an Ansible configuration, I wanted to use postfix on ubuntu to send out mail. However, I couldn’t seem to figure out exactly how to get it to stop asking for input during the apt-get install postfix process. Turns out, you can use debconf to set the values that are necessary for the install.

Mar 13, 2015 1 min read #linux #scripting

USB Chrome Debugging and Local subnet surfing on Android Emulator

Most of the development I do that needs to be tested on android is on a local subnet. Generally, this is because I am running the servers in virtual machines that mimic the production environment. When I want to test these websites via the android emulator, it would be nice to be able to surf to them locally (without putting them in a public QA environment) - as well as have the ability to use Android Chrome’s USB Debugging.

Jun 18, 2013 3 min read #linux #mobile #scripting

Automatic Backup with SVN on Windows

A while ago, I decided that I needed to have a better backup solution for my file server. After doing some research on various systems, I let my inner programmer take over - in addition to my desire to NEVER LOSE ANYTHING - and I defaulted to use SVN.

Sep 12, 2008 3 min read #scripting #svn #windows

Create an RSS feed of comments from myspace

Lately, I’ve been trying to find ways to reduce the amount of time I spend on stupid sites like myspace (nevermind the fact that the time it took to reduce this amount took me enough time to visit myspace 1x a day for another month – heh). At any rate, I’ve been using Google Reader a lot more (I’m up to 180 or so feeds) and I thought: Why don’t I make an RSS feed o my comments – then I don’t have to go back to the site when someone sends me a comment.

Sep 8, 2007 2 min read #misc-web #php #scripting

When your linkd causes you problems, you must convertd it!

For the setup I use at (“the triangle”), I have a lot of filesystem links - and these are made on win32 with the linkd.exe command (the version I got is from the windows 2000 resource cd). When I start a new project, I pass into my script which directories I’d like to make and checkout code into, and which I’d rather just linkd to. Well, every once in a while a link’d folder needs to be a real folder. So, since I’m a lazy programmer, I made a script called convertd which will unlink the folder and then make the folder. Chalk one up to efficiency by batch programming? Let’s see:

Jul 6, 2007 1 min read #scripting