- Download Sequel Pro
- Follow their instructions on connecting to MAMP
- Run Sequel Pro
- Create a new database (I suggest something like
dump_import_<date>
) - Select File > Import
- Select your sql dump file
- Wait like 15 minutes
- Go in and change the necessary fields (like, site_urls, paths, etc) for every site and/or blog you want to work with
- Edit the blogs to be in all the same network/site (MAMP doesn't handle multiple domains or path installs)
- Open up your
wp-config.php
file and switch out theDB_NAME
value to your newly-created database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// grab url params and assign on page load | |
(function (window, document) { | |
var match, | |
pl = /\+/g, // Regex for replacing addition symbol with a space | |
search = /([^&=]+)=?([^&]*)/g, | |
decode = function (s) { | |
return decodeURIComponent(s.replace(pl, " ")); | |
}, | |
query = window.location.search.substring(1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execute pathogen#infect() | |
syntax on | |
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab | |
imap ii <Esc> | |
au BufRead,BufNewFile *.go set filetype=go | |
" If using a dark background within the editing area and syntax highlighting | |
" turn on this option as well | |
set background=dark |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getDuration(fileURL, cb){ | |
var a = document.createElement('audio'); | |
a.src = fileURL; | |
a.preload = 'metadata'; | |
document.body.appendChild(a); | |
a.addEventListener('loadedmetadata', function(evt){ | |
var d = evt.target.duration; | |
cb(d); | |
}, false); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://api.facebook.com/restserver.php?method=links.getStats&urls=http://techcrunch.com/&format=json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** ...Continued from within file */ | |
/** | |
@brief Creates a new attachment. | |
@details | |
The $o object is an extension of Broadcasting_Data and must contain: | |
- @i attachment_data An attachment_data object containing the attachmend info. | |
@param object $o Options. | |
@return @i int The attachment's new post ID. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config color.status always | |
/////////////////////// | |
// add to ~/.gitconfig | |
[alias] | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
dh = diff --color HEAD | |
[color] | |
branch = auto | |
diff = auto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(window, document, _){ | |
_.mixin({ | |
'asyncRequest': asyncRequest, | |
'doJSONP': doJSONP, | |
'request': request, | |
'onResize': on_resize, | |
'scrollTo': scrollTo, | |
'create': create, | |
'onWake': onWake, | |
'randColor': getRandomColor, |