Skip to content

Instantly share code, notes, and snippets.

💭
Mostly on Bitbucket

Rob Record robrecord

Block or report user

Report or block robrecord

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@robrecord
robrecord / gist:4139278
Created Nov 24, 2012 — forked from anonymous/gist:4136349
brew php54 install failure on 10.7.5 - part 1
View gist:4139278
$ php -v
PHP 5.3.15 with Suhosin-Patch (cli) (built: Jul 31 2012 14:49:18)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.1.2, Copyright (c) 2002-2011, by Derick Rethans
$ brew -v
@robrecord
robrecord / gist:4139282
Created Nov 24, 2012 — forked from anonymous/gist:4136349
brew php54 install failure on 10.7.5 - part 2
View gist:4139282
$ brew install php54 --with-mysql --with-imap --with-tidy --with-homebrew-openssl
==> Installing php54 dependency: pkg-config
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pkg-config-0.27.1.lion.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pkg-config-0.27.1.lion.bottle.tar.gz
/usr/local/Cellar/pkg-config/0.27.1: 9 files, 624K
==> Installing php54 dependency: curl
==> Downloading http://curl.haxx.se/download/curl-7.28.0.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/curl/7.28.0
View ms-extract-umeta-clean.sql
-- delete any usermeta specific to the other subsites
delete from wp_usermeta where meta_key regexp '^wp_([0-9]+)_';
-- duplicate the wp_usermeta structure in a working data table,
-- but add a unique index for filtering out duplicates
create table _fix_usermeta like wp_usermeta;
-- fix to allow larger keys on InnoDB
set global innodb_large_prefix = 1;
set global innodb_file_format = BARRACUDA;
alter table _fix_usermeta ENGINE=InnoDB;
@robrecord
robrecord / Export Evernote to Day One.scpt
Last active May 7, 2019
Migrate selected Evernote notes to Day One. Supports tags. Supports pandoc to convert to markdown. No support for attachments yet. Original version at http://veritrope.com/code/export-evernote-items-to-day-one/
View Export Evernote to Day One.scpt
(*
◸ Veritrope.com
Export Evernote Items to DayOne
VERSION 0.98.2
December 18, 2015
// UPDATE NOTICES
** Follow @Veritrope on Twitter, Facebook, Google Plus, and ADN for Update Notices! **
// SUPPORT VERITROPE!
View com.robrecord.brewupgrade
#!/bin/sh
# Upgrade homebrew packages including multiple versions of PHP without the linking/unlinking headache!
# Update package list
brew update
# Upgrade PHP packages
@robrecord
robrecord / pandoc-bulk.sh
Last active Aug 25, 2018 — forked from hugorodgerbrown/md_to_rst.sh
Shell script for converting a batch of files using pandoc. This script will take two arguments: source extension, and target extension. pandoc will attempt to guess the formats.
View pandoc-bulk.sh
# pandoc-bulk.sh
#
# This script was created to convert a directory full
# of files into a different format. It uses pandoc to do the conversion.
#
# 1. Install pandoc from http://johnmacfarlane.net/pandoc/
# 2. Copy this script into the directory containing the files
# 3. Ensure that the script has execute permissions: chmod +x pandoc-bulk.sh
# 4. Run the script
#
View keybase.md

Keybase proof

I hereby claim:

  • I am robrecord on github.
  • I am robrecord (https://keybase.io/robrecord) on keybase.
  • I have a public key ASD5XMv-XD_4xgpAJYz9LUF6aUCzR_lwkfToTijb1SO2tQo

To claim this, I am signing this object:

You can’t perform that action at this time.