Often I sync local WordPress sites with remote ones. There’s various — freemium — plugins that do this, but instead of adding bloat & spammy third-party plugin ads I wanted a simple, one-command solution. Shell to the rescue! Here’s a simple script that syncs your local database & uploads directory with your remote — and stores backups!
Popular this month
CLI that generates beautiful README.md files. readme-md-generator will suggest you default answers by reading your package.json and git configuration. readme-md-generator is able to read your environment (package.json, git config…) to suggest you default answers during the README.md creation process: Download Fork on Github
Build awesome apps with Google Analytics API for PHP. Learn how to use the Google Analytics API and PHP to bring data directly to your site or app.
Want to delete a branch in GitHub? It’s a simple operation.
Looking for a Bodog replacement? Since the shutdown on Bodog in the U.S. I’ve been looking for another, legal site where I can play the odds and make a little more. If you’re in my shoes, look no further than FanDuel.com! Daily Fantasy Football For Real Money! Start Playing!Since the shutdown of Bodog, I’ve been … Read article
Import & export .bz2 MySQL database files with these simple commands — useful in automated shell scripts when you’re exporting from a remote DB then importing into another like your local.
Unlike the registration_errors filter, there’s not a lostpassword_errors filter… but there is another filter you can use instead!
Front-enders won’t be the only ones to rejoice after reading this. I’m going to walk you through how to build a prettyfied cross-browser CSS-styled select lists.
Sticky navigation is being used more and more on sites and there’s a good reason why. It improves the UX by making the menu available no matter where the user is on the page. Learn how to create a simple, light-weight jQuery sticky navigation below. Best of all, it’s easy to implement on existing site’s without having to change any existing HTML code!
Milica Mihajlija from web.dev wrote an excellent article on how to use async,defer, preconnect & dns-prefetch with script tags to establish early connections, implement lazy-loading & optimize you those scripts are served.
A often overlooked feature of Git is it’s git rebase command. It’s the process of moving a branch to a new base commit. Confused? Don’t be. Rebasing is really just moving a branch from one commit to another. It helps keep your git history cleaner and more understandable. Rebasing is a common way to integrate … Read article
I was recently tasked with adding the ability for writers to enter simple shortcodes in Drupal’s WYSIWYG editor. My first thought was, no problem! It’ll only take me a few minutes. Like with everything Drupal, nothing is that simple. The ease at which WordPress makes it for developers to create and build blows Drupal out of the water. Simple tasks like creating these shortcodes —
filters in Drupal speak—is a cinch using WordPress’s Shortcode API. So, how do you add custom shortcodes in Drupal?
The MailChimp Campaign CSV Parser is a PHP library to take a downloaded MailChimp Campaign CSV export and parse it in a easy-to-use array. Includes industry rates to compare statistics with.