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 / ec.aliases.drushrc.php
Last active May 4, 2016 19:23
Drush Alias Wildcard for Enjoy Creativity server, allgoo.de.
<?php
/*
* Name: Drush Alias Wildcard
*
* Description: When working on Enjoy Creativity's server, you
* can always assume the connection information is the same,
* except for the project name. Once you set up your
* ~/.ssh/config to use the hostname for the project, this
* command will let you sync the database or files directory
* between local and dev.
@davidneedham
davidneedham / .bash_profile
Last active April 5, 2016 19:23
David's aliases and tweaks to the command line that have saved him hours.
#!/bin/bash
#-------------------------------
# Local Development
#-------------------------------
function add_new_host () {
read -p "New local site name: " SITE
HOSTS='/etc/hosts'
SITEPATH='/Applications/MAMP/htdocs/'${SITE}
@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 / gdw.settings.php
Created November 20, 2013 22:38
Put at your www root when syncing with a project that uses eosrei's Git-Dev-Workflow. This way you don't have to change database connection info when moving your code between the server and local.
<?php
/**
* A gdw.settings.php files for local D7 development. Store in /var/www.
*/
// Site is stored in '/var/www/example', so database name is 'example'
$database = basename(getcwd());
$databases = array (
'default' => array (
@davidneedham
davidneedham / .my.cnf
Created November 20, 2013 21:57
~/.my.cnf This file is intended to be on your local computer and improve the efficiency with which you interact with mysql from the command line. This is safe being root/root locally using something like MAMP, but there could be security concerns on a server.
[mysql]
user=root
password=root
[mysqldump]
user=root
password=root