Some useful strings and tools to use in spacing and kerning type.
(Text wasn't directly given, so this is what I remember).
Useful to adapt slightly as needed, but it's helpful that it's a simple, brief set of tests.
<IfModule mod_rewrite.c> | |
# not localhost: | |
# RewriteCond %{HTTP_HOST} \. | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
#eliminate root path access denied: (without placeholder index.php) | |
RewriteRule ^(/)?$ wp/index.php [L] | |
# add a trailing slash to /wp-admin |
Some useful strings and tools to use in spacing and kerning type.
(Text wasn't directly given, so this is what I remember).
Useful to adapt slightly as needed, but it's helpful that it's a simple, brief set of tests.
Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User →
Local by FlyWheel
WordPress install is a custom install#!/bin/bash | |
# Get the required project variables | |
printf "Project name: " | |
read PROJECT_NAME | |
printf "Project folder name: " | |
read PROJECT_FOLDER | |
printf "Database Name: " |
(function($){ | |
'use strict'; | |
/* | |
* jQuery htmlDoc "fixer" - v0.2pre - 8/8/2011 | |
* http://benalman.com/projects/jquery-misc-plugins/ | |
* | |
* Copyright (c) 2010 "Cowboy" Ben Alman | |
* Dual licensed under the MIT and GPL licenses. |
# wp-cli alias to push a local WP database to a staging site | |
pushstage() { | |
START=$(date +%s) | |
# make a backup of the current local database | |
# get current directory name, used for database and URL | |
current=${PWD##*/} | |
wp db export $current.sql | |
# rsync the local database to staging site | |
rsync $current.sql $current-s:~/ | |
# get the staging site URL for search replace |
// Get height of window and set an offset from bottom | |
var winHeight = $(window).height(); | |
var offset = 50; | |
// Recalc height of window in case of resize | |
$(window).bind('resizeEnd', function() { | |
winHeight = $(window).height(); | |
}); | |
// When we scroll we do some checks... |
List of PHP 7 Packages: https://launchpad.net/ubuntu/+source/php7.0 | |
Disclaimer: I get unreliable results when I don't run these commands seperately and in order. | |
vagrant ssh | |
sudo apt-get update | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get install php7.0 | |
sudo apt-get update |
# pull a production WP database to an existing local site | |
# uses current directory as theme path and ssh alias | |
pullprod() { | |
START=$(date +%s) | |
# get current directory name, used for database and URL | |
# TODO: use echo get_template_directory() and get characters from right to first / | |
current=${PWD##*/} | |
cd ~/Sites/$current | |
# make a backup of the current local database | |
wp db export _db.sql |
#!/bin/bash | |
# Generate your Dropbox token: https://www.dropbox.com/developers/apps | |
DROPBOX_TOKEN={dropbox access token here} | |
# Directory that holds your WordPress sites' root folders | |
PREFIX=/var/www | |
# If you have multiple folders with WordPress sites, add/remove them from this array | |
directories=( "foo.com" "bar.com" ) |