• Skip to primary navigation
  • Skip to main content
Sal Ferrarello
  • About Sal Ferrarello
  • Speaking
  • Connect
    Mastodon GitHub Twitter (inactive)
You are here: Home / Archives for Dev Tips

Dev Tips

Mac pfctl Port Forwarding

Last updated on March 31, 2015 by Sal Ferrarello

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 […]

Filed Under: Dev Tips, Programming Tagged With: network, vagrant, VVV

VVV Vagrant WordPress Setup

Vagrant VVV Setup for WordPress Development

Last updated on January 25, 2023 by Sal Ferrarello

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 […]

Filed Under: Dev Tips, Programming Tagged With: vagrant, VVV, WordPress

Custom URL for S3 Bucket

Last updated on May 28, 2014 by Sal Ferrarello

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 […]

Filed Under: Dev Tips Tagged With: AWS

Replace Across Multiple Files

Last updated on May 18, 2014 by Sal Ferrarello

Replace All Instances of wolf with dog From the command line run ack ‘wolf’ -l –print0 | xargs -0 sed -i ” ‘s/wolf/dog/g’

Filed Under: Dev Tips Tagged With: command line

Chrome Clear Redirect Cache

Last updated on September 24, 2016 by Sal Ferrarello

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 […]

Filed Under: Computing, Dev Tips Tagged With: redirects

Picture of a Tag that Might be Found on Luggage

Git Conflict Compiled Sass Files

Last updated on March 19, 2014 by Sal Ferrarello

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 […]

Filed Under: Computing, Dev Tips, Programming Tagged With: Git, Sass, website

Create Offline Copy of a Website

Last updated on March 12, 2014 by Sal Ferrarello

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 […]

Filed Under: Computing, Dev Tips Tagged With: offline, website

Hello My Name Is Sticker

How to Name a File

Last updated on July 5, 2018 by Sal Ferrarello

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 […]

Filed Under: Computing, Dev Tips

How to Disable JavaScript in Chrome

Last updated on August 29, 2014 by Sal Ferrarello

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 […]

Filed Under: Computing, Dev Tips, Programming Tagged With: JavaScript

Testing Redirects

Last updated on January 28, 2014 by Sal Ferrarello

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 […]

Filed Under: Dev Tips Tagged With: redirects

  • «Previous Page
  • Go to page 1
  • Interim pages omitted …
  • Go to page 18
  • Go to page 19
  • Go to page 20

Copyright © 2023 · Bootstrap4 Genesis on Genesis Framework · WordPress · Log in