I hereby claim:
- I am davidneedham on github.
- I am davidneedham (https://keybase.io/davidneedham) on keybase.
- I have a public key whose fingerprint is 013B 103F 8988 7C09 793E E071 E707 2738 F2DB 3085
To claim this, I am signing this object:
<!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> |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>My First Web Page!</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
</body> | |
</html> |
#!/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" |
I hereby claim:
To claim this, I am signing this object:
The idea is based on a gist by @jimbojsb.
You can use Pygments or Highlight.
brew install python
# 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 | |
} |
#------------------------------------------ | |
# 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 |
<?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.] |
# THIS FILE IS OLD AND EXISTS AT THIS POINT FOR EDUCATIONAL PURPOSES ONLY. | |
# For the latest version, check https://gist.github.com/davidneedham/4014378. | |
# Refresh the local environment from dev | |
# ex: gdw-cc projectname dev | |
# function gdw-cc () { | |
# ssh -t "$1" gdw-drush "$2" cc all; | |
# } |
http://www.gitref.org | |
----------------------------------------- | |
Facts: | |
----------------------------------------- | |
Git makes it really easy to use version control for everything, not just project files. (ie. Aarons personal computer configuration settings.) | |
Commit IDs are hash's, commonly referred to by the first 4 or first 8 chars | |
There is a .git folder at the root of the repository, not within every subdirectory. However, you can still do commands within any subdirectory from root. |