Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View davidneedham's full-sized avatar

David Needham davidneedham

View GitHub Profile
@davidneedham
davidneedham / hello.html
Created June 9, 2020 16:35
Hello.html with the links to other pages
<!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>
@davidneedham
davidneedham / hello.html
Created April 10, 2020 20:33
Pantheon Platform Bootcamp - Make A Basic Website
<!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"

Keybase proof

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:

@davidneedham
davidneedham / z-automator.png
Created September 15, 2017 06:01 — forked from lrytz/z-automator.png
Shortcut for Syntax Highlighting in Keynote
@davidneedham
davidneedham / .bash_profile
Created August 16, 2015 14:39
Domain Access Quickfix: a script to change the server domain access domains to your local domains
# 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
}
@davidneedham
davidneedham / .bash_profile
Last active March 17, 2016 13:06
Pantheon Development Workflow (pdw): Commands to improve your Pantheon to local development experience. Just copy these commands into your .bash_profile or .bashrc, update the pdw-auth command to use your credentials, install Terminus (https://github.com/pantheon-systems/cli/wiki/Installation), and go!
#------------------------------------------
# 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
@davidneedham
davidneedham / example.aliases.drushrc.php
Last active August 29, 2015 14:07
Example site alias file
<?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.]
@davidneedham
davidneedham / .bash_profile (OLD)
Last active August 29, 2015 14:05
Old bash_profile code that I no longer use, but may still be helpful to reference
# 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;
# }
@davidneedham
davidneedham / Git notes
Last active August 29, 2015 14:01
Git notes
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.