Skip to content

Instantly share code, notes, and snippets.

View njt1982's full-sized avatar
Converting Coffee into Code

Nicholas Thompson njt1982

Converting Coffee into Code
View GitHub Profile
# See: https://github.com/drush-ops/drush/blob/master/examples/example.make.yml
core: "7.x"
api: 2
projects:
drupal:
version: ~
defaults:
@njt1982
njt1982 / dump.sql
Last active June 12, 2016 23:39
Stock Drupal 7.43 SQL Dump
-- MySQL dump 10.13 Distrib 5.7.11-4, for osx10.11 (x86_64)
--
-- Host: localhost Database: drupal_d7
-- ------------------------------------------------------
-- Server version 5.7.11-4
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
@njt1982
njt1982 / # percona-server - 2016-12-19_13-11-47.txt
Created December 19, 2016 13:24
percona-server on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for percona-server on macOS 10.11.6
Build date: 2016-12-19 13:11:47
@njt1982
njt1982 / log_since_last_tag
Created April 24, 2017 15:19
Git Log Since Lat Tag
#!/bin/bash
if [ -z "$1" ]
then
TAG=$(git describe --abbrev=0 --tags)
else
TAG="$1"
fi
if [ -z "$2" ]
then
@njt1982
njt1982 / phpbrew.sh
Last active June 24, 2022 09:28
Building PHP 5.6 and 7.x on OSX Mojave and Catalina (with Homebrew for dependencies)
# Switch out 5.6 for required version
phpbrew install -j $(nproc) 5.6 +default +mysql +fpm +gd \
+bz2="$(brew --prefix bzip2)" \
+curl="$(brew --prefix curl-openssl)" \
+zlib="$(brew --prefix zlib)"
# PHP 7.2 needed some tweaks (the mirror and the X11 thing (which helps GD compile))
@njt1982
njt1982 / nicks-bedrock-tweaks-downloader.sh
Last active September 3, 2022 22:42
Script for "bookmarking" my favourite https://bedrocktweaks.net/resource-packs downloads
#!/bin/bash -x
PACKS=(
"aesthetic:different_stems"
"terrain:circular_sun_and_moon"
"variation:variated_bookshelves"
"peace_and_quiet:quieter_bees"
"peace_and_quiet:quieter_cows"
"peace_and_quiet:quieter_ghasts"
"peace_and_quiet:quieter_sheep"