Historically, I used ipfw from the command line to do port forwarding on my Mac. Unfortunately, as of Yosemite OS X 10.10 ipfw has been removed. (In all fairness, ipfw has been deprecated for some time but I continued using it because it was way easier than pfctl on the command line). Command Line pfctl […]
Dev Tips
Vagrant VVV Setup for WordPress Development
Update 2023-01-25 This article is woefully outdated. Tom J Nowell, VVV project lead, has a great comment below which at this point is far more valuable than this article. The official documentation at VaryingVagrantVagrants.org is another great place to get started. Update 2018-04-17 I am no longer using this setup for local development. Instead I […]
Custom URL for S3 Bucket
My goal is to setup a custom url, in this case static.ironcodestudio.com, to pull directly from an S3 bucket. Create the Bucket Create the bucket with the name matching the url where you’ll load the file. In my case, I named the bucket static.ironcodestudio.com For the Region, I recommend US Standard. Make the Bucket Publicly […]
Replace Across Multiple Files
Replace All Instances of wolf with dog From the command line run ack ‘wolf’ -l –print0 | xargs -0 sed -i ” ‘s/wolf/dog/g’
Chrome Clear Redirect Cache
Chrome Caches Redirects Google Chrome caching redirects, is a known behavior and not one that is planned to change. This is a logical decision, unfortunately the lack of any obvious mechanism to clear these redirects is frustrating at times. There are generally two situations where this occurs. When the Website Returns a HTTP Status Code […]
Git Conflict Compiled Sass Files
I’ve been using both Git and Sass for some time now. These two tools have had a huge positive impact on my development. The issue that arises when combining Git and Sass is when checking in compiled CSS, it is common to get conflicts with other contributors on the Git repository. Don’t Check in Your […]
Create Offline Copy of a Website
Sometimes you need to make a copy of a website for offline use. There are a number of offline website downloader tools I’ve found helpful for this task. Offline Website Downloaders Unix Command line wget -p -k http://www.example.com/ Mac Application SiteSucker Windows Application HTTrack Why Would You Do This? Using these tools has allowed me […]
How to Name a File
Naming a file, while seemingly an easy task has a number of nuances to it. Here are some tips to improve your file naming. A rose by any other name, would smell just as sweet but would be more difficult to locate. Use all lowercase letters A combination of upper and lowercase letters in a […]
How to Disable JavaScript in Chrome
2014-08-29 UPDATE: Current version of Chrome has issue I’m seeing an issue where the Disable JavaScript checkbox is becoming unchecked on refresh (thus undoing the point of this post). More info at https://code.google.com/p/chromium/issues/detail?id=369844 Current fix seems to be “click Disable JavaScript a bunch of times” (yes, I realize this is a ridiculous fix) How to […]
Testing Redirects
Testing redirects can be a nightmare since the web browsers aggressively cache redirects. Use incognito mode in Chrome to make it easy to clear cached redirects by closing the Incognito window. Even Better Update Testing redirects from the command line works even better. curl -I http://www.example.com/ will return the headers for the request including the […]