Skip to content

Instantly share code, notes, and snippets.

@suzannealdrich
suzannealdrich / evanisko.info
Created June 13, 2012 23:00
Evanisko Custom Drupal Module
; $Id$
name = Evanisko
description = Provides custom functionality for this site
core = 6.x
version = "6.x-1.x"
project = "evanisko"
package = Other
@suzannealdrich
suzannealdrich / settings.php
Last active June 28, 2017 22:27
Pantheon site environment base URL logic
if (isset($_SERVER['PANTHEON_ENVIRONMENT'])) {
switch ($_SERVER['PANTHEON_ENVIRONMENT']) {
case 'test':
$base_url = 'http://test-example.gotpantheon.com'; // NO trailing slash!
break;
case 'dev':
$base_url = 'http://dev-example.gotpantheon.com'; // NO trailing slash!
break;
case 'live':
$base_url = 'http://www.example.com'; // NO trailing slash!
@suzannealdrich
suzannealdrich / INSTALL.txt
Created March 24, 2014 22:54
Drupal WYSIWYG
A viable WYSIWYG+CKEditor+Media combination that allows for embedded image management during node editing.
Consult each module's INSTALL.txt for complete instructions:
Wysiwyg 7.x-2.2+33-dev
https://drupal.org/project/wysiwyg
CKEditor Version 4.3.3 (Full)
http://ckeditor.com/download
Media 7.x-2.0-alpha3+77-dev
@suzannealdrich
suzannealdrich / hosts
Created April 4, 2014 17:54
Local Drupal Development
127.0.0.1 super-mega-power.local
composer.phar
vendor/
# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
# composer.lock
@suzannealdrich
suzannealdrich / keybase.md
Created January 30, 2015 06:14
Keybase proof

Keybase proof

I hereby claim:

  • I am suzannealdrich on github.
  • I am suzannealdrich (https://keybase.io/suzannealdrich) on keybase.
  • I have a public key whose fingerprint is E778 D500 BF7C 34FA 3472 5472 3747 228B E9CC 066E

To claim this, I am signing this object:

@suzannealdrich
suzannealdrich / osx-10.10-setup.md
Last active September 7, 2022 00:21 — forked from kevinelliott/osx-10.10-setup.md
Recipe for custom OS X 10.10 Yosemite setup with Homebrew Cask installed user apps and Docker developer environment.

Mac OS X 10.10 Yosemite

Recipe for custom OS X 10.10 Yosemite setup with Homebrew Cask installed user apps and Docker developer environment.

Fork this and modify to match your needs.

Install Software

The software selected is needed after fresh installs. Software not listed here is handled on a case-by-case basis.

@suzannealdrich
suzannealdrich / cloudflare.settings.php
Created February 23, 2015 22:44
HTTPS all the things!
// CloudFlare Connecting IP
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) {
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];
}
// CloudFlare SSL Enabled
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
$_SERVER['HTTPS'] = 'on';
}
$ openssl s_client -cipher EXPORT -connect www.nsa.gov:443
CONNECTED(00000003)
depth=1 /C=US/O=GeoTrust Inc./CN=GeoTrust SSL CA - G4
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain
0 s:/C=US/ST=Maryland/L=Fort George G Meade/O=National Security Agency/OU=Akamai SAN SSL OV/CN=www.nsa.gov
i:/C=US/O=GeoTrust Inc./CN=GeoTrust SSL CA - G4
1 s:/C=US/O=GeoTrust Inc./CN=GeoTrust SSL CA - G4
@suzannealdrich
suzannealdrich / wget.txt
Last active December 11, 2023 15:12
wget spider cache warmer
wget --spider -o wget.log -e robots=off -r -l 5 -p -S --header="X-Bypass-Cache: 1" --limit-rate=124k www.example.com
# Options explained
# --spider: Crawl the site
# -o wget.log: Keep the log
# -e robots=off: Ignore robots.txt
# -r: specify recursive download
# -l 5: Depth to search. I.e 1 means 'crawl the homepages'.  2 means 'crawl the homepage and all pages it links to'...
# -p: get all images, etc. needed to display HTML page
# -S: print server response