Skip to content

Instantly share code, notes, and snippets.

@suzannealdrich
suzannealdrich / 1-macOS-12-monterey-setup.md
Last active April 16, 2024 06:22
macOS 12 Monterey Mostly-Automated Setup
@suzannealdrich
suzannealdrich / 1-macOS-10.15-catalina-setup.md
Last active April 16, 2024 08:13 — forked from kevinelliott/1-macOS-10.15-catalina-setup.md
macOS 10.15 Catalina Mostly-Automated Setup
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
PGP Key Transition Statement
Suzanne Aldrich <mail@suzanne.link>
Wed May 4 06:55:38 UTC 2016
I have generated a new PGP key, and this statement generated at the date and
time provided above, is signed using both my old key and my new key. This
change was not prompted by any specific incident, and was done simply to
@suzannealdrich
suzannealdrich / diff_response_headers
Last active August 15, 2017 20:31
Installing Railgun with LEMP for CentOS 6.6
#!/bin/bash
# Returns the diff between response headers of a domain vs. its origin ip. Requires SSL.
NAME=`basename $0`
COMMAND="diff <(curl -Isk https://$1) <(curl -Isk -H 'Host: $1' https://$2)"
if [ $# -ne 2 ]
then
echo "Usage: $NAME domain.tld origin.ip" 1>&2
echo "Returns the response headers and a diff of a domain vs. its origin ip. Requires SSL." 1>&2
@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
$ 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 / 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';
}
@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 / 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:

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