This gist has been converted to a repository called PHP Resoures Repo that you can fork and pull request to your heart's content!
May your coffee always be warm, your code always work, and the force be with you
# | |
# wp_install - download wordpress, install, and configure it. | |
# | |
# $ wp_install <dirname> | |
# | |
function wp_install | |
{ | |
wp core download --path=$1 | |
cd $1 | |
read -p 'name the database:' dbname |
# | |
# wp_install_plugins | |
# | |
# $ wp_install_plugins ~/wp-plugins.txt | |
# | |
# text file with a list of wordpress.org plugin slugs. one per line. | |
# | |
function wp_install_plugins | |
{ |
Subject line | |
Describe what you did and why | |
[ticket: #X] | |
#------------------------------------------------@---------------------- | |
# | |
# * Separate subject from body with a blank line | |
# * Limit the subject line to 50 characters |
# I'm using VVV. Let's say I have a really long path like | |
# | |
# /Users/awoods/vagrant-local/www/project-site/public_html/wp-content/plugins/my-plugin | |
# | |
# If I 'vagrant ssh' into the host and want to cd to the corresponding path | |
# it's a pain to have to type in a really long path like | |
# | |
# /srv/www/project-site/public_html/wp-content/plugins/my-plugin | |
# | |
# This function gets your current path, and return the corresponding |
This gist has been converted to a repository called PHP Resoures Repo that you can fork and pull request to your heart's content!
May your coffee always be warm, your code always work, and the force be with you
The project tagline is cool and witty
This is where you write a paragrah or so describing your project to the person reading it knows what your project is all about. You could skip this part but after all the hard work you put into creating your project, it would be a shame if nobody ever used it, because you didn't take the time to explain it to them. You don't have to write a lot - just enough to get them interested.
I want to create an Vagrant environment I can use for local development. It's | |
for a framework-less PHP project, that needs to be developed for specific PHP | |
versions. To begin, I need to use PHP 5.2.2. | |
I have my code in ~/client/src on my Mac and need to sync this folder to the | |
webroot on the VM using VirtualBox 4.3.10 and Vagrant 1.7.4. | |
I use PHPStorm for development. | |
I'll soon want to add virtual guest machines, each with their own PHP version |
I have files with other sets of constants available
They're already part of my skeleton repo.
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
php composer-setup.php | |
php -r "unlink('composer-setup.php');" |
I want to change the world, but they won't give the source code :)
People try hard to accomplish things on their to-do list, but they often feel like they don't have enough time. To anyone who has been on Twitter long enough, you'll eventually come across a tweet similar to the following:
ZOMG! I need more time! How can I stretch out the number of hours in a day to 30 hours!
The desired number of hours in the tweets usually differs, but the sentiment remains the same. Let's see how we can do that!