Skip to content

Instantly share code, notes, and snippets.

View lorinrivers's full-sized avatar

Lorin Rivers lorinrivers

View GitHub Profile
@lorinrivers
lorinrivers / gist:752211
Created December 22, 2010 22:32
Here is the gist of my failed install. What's interesting is the previous version DID install. I did have MacPorts installed, but no more.
Dolemite:tmp lrivers$ brew install git==> Downloading http://kernel.org/pub/software/scm/git/git-1.7.3.4.tar.bz2
File already downloaded and cached to /Users/lrivers/Library/Caches/Homebrew
==> make prefix=/usr/local/Cellar/git/1.7.3.4 install
GIT_VERSION = 1.7.3.4
* new build flags or prefix
rm -f git-am git-am+ && sed -e '1s|#!.*/sh|#!/bin/sh|' -e 's|@SHELL_PATH@|/bin/sh|' -e 's|@@DIFF@@|diff|' -e 's/@@GIT_VERSION@@/1.7.3.4/g' -e 's/@@NO_CURL@@//g' -e '/^# @@BROKEN_PATH_FIX@@$/d' git-am.sh >git-am+ && \
chmod +x git-am+ && \
mv git-am+ git-am
rm -f git-bisect git-bisect+ && sed -e '1s|#!.*/sh|#!/bin/sh|' -e 's|@SHELL_PATH@|/bin/sh|' -e 's|@@DIFF@@|diff|' -e 's/@@GIT_VERSION@@/1.7.3.4/g' -e 's/@@NO_CURL@@//g' -e '/^# @@BROKEN_PATH_FIX@@$/d' git-bisect.sh >git-bisect+ && \
chmod +x git-bisect+ && \
@lorinrivers
lorinrivers / gist:759909
Created December 30, 2010 15:39
brew install git output
Dolemite:xao lrivers$ brew install git
==> Downloading http://kernel.org/pub/software/scm/git/git-1.7.3.4.tar.bz2
File already downloaded and cached to /Users/lrivers/Library/Caches/Homebrew
==> make prefix=/usr/local/Cellar/git/1.7.3.4 install
GIT_VERSION = 1.7.3.4
rm -f git-am git-am+ && sed -e '1s|#!.*/sh|#!/bin/sh|' -e 's|@SHELL_PATH@|/bin/sh|' -e 's|@@DIFF@@|diff|' -e 's/@@GIT_VERSION@@/1.7.3.4/g' -e 's/@@NO_CURL@@//g' -e '/^# @@BROKEN_PATH_FIX@@$/d' git-am.sh >git-am+ && \
chmod +x git-am+ && \
mv git-am+ git-am
* new build flags or prefix
rm -f git-bisect git-bisect+ && sed -e '1s|#!.*/sh|#!/bin/sh|' -e 's|@SHELL_PATH@|/bin/sh|' -e 's|@@DIFF@@|diff|' -e 's/@@GIT_VERSION@@/1.7.3.4/g' -e 's/@@NO_CURL@@//g' -e '/^# @@BROKEN_PATH_FIX@@$/d' git-bisect.sh >git-bisect+ && \
@lorinrivers
lorinrivers / libgcrypt
Created July 19, 2011 05:01
libgcrypt install
Bellerophon:~ lrivers$ brew install -v libgcrypt
==> Downloading ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.5.0.tar.bz2
File already downloaded in /Users/lrivers/Library/Caches/Homebrew
/usr/bin/tar xf /Users/lrivers/Library/Caches/Homebrew/libgcrypt-1.5.0.tar.bz2
==> ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libgcrypt/1.5.0 --disable-asm --with-gpg-error-prefix=/usr/local
./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/libgcrypt/1.5.0 --disable-asm --with-gpg-error-prefix=/usr/local
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
Bellerophon:~ lrivers$ brew doctor
Your OS X is ripe for brewing.
Any troubles you may be experiencing are likely purely psychosomatic.
Bellerophon:~ lrivers$
@lorinrivers
lorinrivers / pyqt gist
Created January 30, 2012 21:53
pyqt fails to install
==> Downloading http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/PyQt-mac-gpl-4.9.tar.gz
File already downloaded in /Users/lrivers/Library/Caches/Homebrew
/usr/bin/tar xf /Users/lrivers/Library/Caches/Homebrew/pyqt-4.9.tar.gz
==> python ./configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.9/bin --destdir=/usr/local/Cellar/pyqt/4.9/lib/python --sipdir=/usr/local/Cellar/pyqt/4.9/share/sip
python ./configure.py --confirm-license --bindir=/usr/local/Cellar/pyqt/4.9/bin --destdir=/usr/local/Cellar/pyqt/4.9/lib/python --sipdir=/usr/local/Cellar/pyqt/4.9/share/sip
Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.9 (licensed under the GNU General Public
License) for Python 2.7.2 on darwin.
Found the license file pyqt-gpl.sip.
Checking to see if the QtGui module should be built...
@lorinrivers
lorinrivers / add - archive item.scpt
Created February 24, 2012 23:22
Add Archive Item
on adding folder items to thisFolder after receiving addedItems
tell application "Finder"
set folderPath to POSIX path of thisFolder
end tell
--make a time stamp for a unique dir name
tell (current date)
set theMonth to addLeadingZeros((its month as number), 1) of me
set theDay to addLeadingZeros((its day as number), 1) of me
@lorinrivers
lorinrivers / OO Arrange.scpt
Created February 24, 2012 23:32
OmniOutliner Horizontal Window Arranger
--this script sets the 2 front OO windows
--as wide as the screen and over and under/horizontally
tell application "Finder"
set _b to bounds of window of desktop
set screenWidth to item 3 of _b
set screenHeight to item 4 of _b
set newHeight to (screenHeight - 22) / 2
end tell
@lorinrivers
lorinrivers / OO Columns.scpt
Created February 24, 2012 23:35
OmniOutliner Equal Column Widths
-- this script sets columns 2 & 3 to the same width
-- which is roughly half of the window width minus
-- the other two columns. Column one is for checkboxen
-- or some such
set theWidth to 0
tell application "OmniOutliner Professional"
set myBounds to bounds of window 1
set oldWidth to (item 3 of myBounds) - (item 1 of myBounds)
@lorinrivers
lorinrivers / taxonomy-type.php
Created February 28, 2012 02:04
taxonomy type
<?php
remove_action('genesis_loop', 'genesis_do_loop');
add_action('genesis_loop', 'do_film_loop');
function do_film_loop(){
$video_file_args = array(
'post_type' => 'film',
'order_by' => 'title',
'order' => 'ASC',
@lorinrivers
lorinrivers / functions.php
Created February 28, 2012 02:05
Functions
<?php
/** Start the engine */
require_once( get_template_directory() . '/lib/init.php' );
/** Child theme (do not remove) */
define( 'CHILD_THEME_NAME', 'Andrew Yates Photography Theme' );
define( 'CHILD_THEME_URL', 'http://mosasaur.com' );
/** Add Viewport meta tag for mobile browsers */
add_action( 'genesis_meta', 'add_viewport_meta_tag' );