Skip to content

Instantly share code, notes, and snippets.

Paul van Buuren paulvanbuuren

Block or report user

Report or block paulvanbuuren

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@raquelmsmith
raquelmsmith / webfaction-wp-cli.md
Last active Feb 15, 2019
How to install WP-CLI on WebFaction
View webfaction-wp-cli.md

I had difficulty installing WP-CLI properly on my WebFaction server because of the inability to use the sudo command to move the .phar file to the proper wp directory. The WebFaction support team was helpful as usual with some good instructions.

  1. Log in to your WebFaction account via SSH: https://docs.webfaction.com/user-guide/access.html
  2. Run the following command on the root directory: curl -so ~/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar It's probably a good idea to check the download URL there with the official WP-CLI installation instructions to make sure it hasn't changed.
  3. Run the following command: chmod u+x ~/bin/wp
  4. Check to make sure it's installed correctly with wp --info.
@jaredatch
jaredatch / gist:3764381
Last active Oct 10, 2015
Customize image size used in the loop by Genesis
View gist:3764381
<?php
/**
* Customize image size used in the loop by Genesis
*
* @author Jared Atchison
* @link http://jaredatchison.com/code/
* @param string $image_size
* @global array $wp_query
* @global int $loop_counter
* @return string
@vasilisvg
vasilisvg / more.md
Last active Sep 3, 2019
This is my backup script which syncs my server to my dropbox every day.
View more.md

The script below is triggered every day from my Mac. I use Hazel to move the tar.gz to an external hard disk once it's finished. This happens every day without me noticing. You can exclude folders if you want to. You probably want to exclude giant cache folders.

You should have a similar script.

You can’t perform that action at this time.