This file contains 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/bash | |
# get the Mac OS X version | |
version_major=$(sw_vers -productVersion | cut -d . -f 2) | |
#version_minor=$(sw_vers -productVersion | cut -d . -f 3) | |
interpreter='' | |
# 10.7.x now has no 32-bit only version of Perl included, so we | |
# need to set Perl's prefer-32-Bit default | |
if [ $version_major -eq 7 ]; then |
This file contains 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/bash | |
# | |
# mime2mdwn - Convert MIME format wiki export (developed for PhpWiki exports) to Markdown | |
# | |
# globals | |
debug=false | |
# the actual heavy lifting |
This file contains 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
<?php | |
$currencyCache = array(); | |
/** | |
* Looks for unquoted keys in a json string and fixes them ie: {a:"b"} => {"a":"b"} | |
* @param string $string A json string that is suspect | |
* @return string A valid json string | |
*/ | |
function fix_json($string){ |
This file contains 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
#!/usr/bin/perl -w | |
# | |
# clipcat - Concatenate and print Text Clippings. | |
# | |
# v0.1 2010-11-18 - David Kendal <https://gist.github.com/705623> | |
# Initial version. Used with permission. | |
# v0.2 2010-12-08 - Morgan Aldridge <morgant@makkintosshu.com> | |
# Now concatenates multiple text clippings. Usage instructions. | |
# |
This file contains 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
Wed Jun 10 08:43:17 EDT 2015 | |
make | |
CC=/usr/local/bin/gcc-4.2 | |
CXX=/usr/local/bin/g++-4.2 | |
OTHER_CPPFLAGS=-I/usr/local/opt/libunwind-headers/include -I/usr/local/opt/dyld-headers/include -I/usr/local/opt/cctools-headers/include | |
OTHER_LDFLAGS=-L/usr/local/lib -Wl,-headerpad_max_install_names | |
OTHER_LDFLAGS_LD64=-lcrypto | |
touch src/ld/configure.h |
This file contains 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
Process: asterisk [42090] | |
Path: /usr/local/sbin/asterisk | |
Identifier: asterisk | |
Version: ??? | |
Code Type: X86-64 (Native) | |
Parent Process: asterisk [42047] | |
Responsible: Terminal [315] | |
User ID: 0 | |
Date/Time: 2014-11-24 16:01:41.259 -0500 |
This file contains 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
$ LDFLAGS=-L/opt/local/lib \ | |
> CFLAGS=-I/opt/local/include \ | |
> CPPFLAGS=-I/opt/local/include \ | |
> ./configure \ | |
> --without-netsnmp | |
checking build system type... x86_64-apple-darwin14.0.0 | |
checking host system type... x86_64-apple-darwin14.0.0 | |
checking for gcc... gcc | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out |
This file contains 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
cd editline && test -f config.h || CFLAGS="-D_THREAD_SAFE -I../..//include -I/opt/local/include -fno-strict-aliasing -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -D__Darwin__ -mmacosx-version-min=10.6 -O3 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 " LDFLAGS="-L/opt/local/lib -L/usr/local/lib " ./configure --build=x86_64-apple-darwin14.0.0 --host=x86_64-apple-darwin14.0.0 --with-ncurses=/opt/local --with-curses= --with-termcap= --with-tinfo= | |
loading cache ./config.cache | |
checking for gcc... gcc | |
checking whether the C compiler (gcc -D_THREAD_SAFE -I../..//include -I/opt/local/include -fno-strict-aliasing -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2 -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -D__Darwin__ -mmacosx-version-min=10.6 -O3 -U_FORTIFY_SOU |
This file contains 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
$ port installed | |
The following ports are currently installed: | |
cctools @855_1+llvm35 (active) | |
cctools-headers @855_0 (active) | |
cloog @0.18.2_2 (active) | |
expat @2.1.0_0 (active) | |
gcc48 @4.8.3_2 (active) | |
gcc_select @0.1_8 (active) | |
gdbm @1.11_1 (active) | |
gettext @0.19.3_1 (active) |
This file contains 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
sudo port sync | |
sudo port install gcc48 | |
sudo port install glib2-devel | |
sudo port install jansson | |
curl -O http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-12.7.0.tar.gz | |
tar -xzf asterisk-12.7.0.tar.gz | |
cd asterisk-12.7.0 | |
run port select --set gcc mp-gcc48 | |
./configure —with-jansson=/opt/local |