Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.
apt-get install sshpass
This will enable an additional view mode for use on the specified entity type(s). Many examples will show the custom settings
here being set to TRUE. If TRUE is used then that view mode is added to all entities of the specified type regardless of if it should be on the bundle or not.
/**
* Implements hook_entity_info_alter().
*/
function HOOK_entity_info_alter(&$entity_info) {
// Before you can do this, get http://brew.sh/ | |
// Then get wget: brew install wget | |
// | |
// Grab an entire static archive of a site. (This might take a while) | |
wget -mkEpnp http://sitename.com |
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: notnoopci/php:7.1.5-browsers | |
working_directory: ~/wordpress | |
steps: | |
- add_ssh_keys | |
- run: | |
name: Install Terminus |
name: myapp | |
# Start with the Drupal 8 recipe | |
recipe: drupal8 | |
# Configure the D8 recipe to match up closer to a vanilla platform.sh stack | |
config: | |
# Lando defaults to Apache. Switch to nginx to match Platform.sh. | |
via: nginx | |
# Set the webroot to match .platform.app.yaml. |
We read our code far more than we write it, so plan accordingly.
Even if you don't plan on anyone reading your code, chances are someone will... even if it's you 12 months from now.
Primitive names typically call the thing what it is. Some examples are: