The idea is based on a gist by @jimbojsb.
You can use Pygments or Highlight.
brew install python
| <?php | |
| // VARIABLES | |
| // Where all of your local sites are located. | |
| // [I'm using MAMP.] | |
| $local_sites = '/Applications/MAMP/htdocs/'; | |
| // Where all of your remote sites are located. | |
| // [This is usually where you land when you first SSH in.] |
| #------------------------------------------ | |
| # PANTHEON DEVELOPMENT WORKFLOW v1.01 | |
| # Using the Pantheon CLI (terminus) v0.71 | |
| #------------------------------------------ | |
| # Authenticate with Pantheon. The first step, most of the time. | |
| # This is a little insecure, as it lists your password here. But it's convenient. | |
| alias pdw-auth='terminus auth login YOURPANTHEONEMAILADDRESS --password=YOURPANTHEONPASSWORD' | |
| # Update your local Pantheon site aliases |
| # Domain Access Quickfix | |
| # Replace the domains with your own to change from the server to local. | |
| # Created with help from http://www.amazeelabs.com/en/blog/drush-and-domain-access-module. | |
| function da-quickfix() { | |
| drush sqlq "UPDATE domain SET subdomain = 'SUBDOMAIN1.FOO.LOCAL' WHERE domain.subdomain = 'SUBDOMAIN1.FOO.COM' LIMIT 1 ;UPDATE domain SET subdomain = 'FOO.LOCAL' WHERE domain.subdomain = 'FOO.COM' LIMIT 1 ;" | |
| drush vset --yes domain_root FOO.LOCAL | |
| drush cc all | |
| } |
The idea is based on a gist by @jimbojsb.
You can use Pygments or Highlight.
brew install python
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| # d8-composer-github-ci-site-create.sh <slug> <email> <github> | |
| ORG_NAME='@TODO' | |
| TERMINUS_TOKEN='@TODO' | |
| export GITHUB_TOKEN='@TODO' | |
| export CIRCLE_TOKEN='@TODO' | |
| GITHUB_API_URL="https://api.github.com/repos/@TODO" |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>My First Web Page!</title> | |
| </head> | |
| <body> | |
| <h1>Hello World!</h1> | |
| </body> | |
| </html> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>My First Web Page!</title> | |
| </head> | |
| <body> | |
| <h1>Hello Pantheors!</h1> | |
| <a href="hello.html">Hello</a> | |
| <a href="page1.html">Page 1</a> |