Skip to content

Instantly share code, notes, and snippets.

View gist:3121367
pisteuo[/tmp]% /usr/bin/clang -v -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7 -arch i386 -arch x86_64 -isystem /usr/local/include -L/usr/local/lib -arch i386 -arch x86_64 conftest.c 8:32
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix
"/usr/bin/clang" -cc1 -triple i386-apple-macosx10.7.0 -emit-obj -disable-free -disable-llvm-verifier -main-file-name conftest.c -pic-level 1 -mdisable-fp-elim -relaxed-aliasing -masm-verbose -target-cpu i686 -target-linker-version 128.2 -v -resource-dir /usr/bin/../lib/clang/3.1 -isystem /usr/local/include -fmodule-cache-path /var/folders/br/8tl1xl954m13qt180qp_csf80000gn/T/clang-module-cache -Os -w -fdebug-compilation-dir /tmp -ferror-limit 19 -fmessage-length 249 -stack-protector 1 -fblocks -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/br/8tl1xl954m13qt18
View gist:3121363
HEAD: 6740810501e9a615aee9ab4c9502f9229b7e0c04
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit dunno
OS X: 10.7.4-x86_64
Xcode: 4.3.3
GCC-4.0: N/A
GCC-4.2: N/A
View gist:3105497
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by readline configure 6.2, which was
generated by GNU Autoconf 2.63. Invocation command line was
$ ./configure --prefix=/usr/local/Cellar/readline/6.2.2 --mandir=/usr/local/Cellar/readline/6.2.2/share/man --infodir=/usr/local/Cellar/readline/6.2.2/share/info --enable-multibyte
## --------- ##
## Platform. ##
mdales / gist:2622886
Created May 6, 2012
Updating Xcode project version number from git
View gist:2622886
# Assumes that you tag versions with the version number (e.g., "1.1") and then the build number is
# that plus the number of commits since the tag (e.g., "1.1.17")
echo "Updating version/build number from git..."
# increment the build number (ie 115 to 116)
versionnum=`git describe | awk '{split($0,a,"-"); print a[1]}'`
buildnum=`git describe | awk '{split($0,a,"-"); print a[1] "." a[2]}'`
View gist:1287089
0010 Z0FZ MBP 15.4/2.4/CTO
With the following configuration:
Processor 2.4GHz Intel Core 2 Duo
Memory 4GB 1066Mz DDR3 SDRAM-2x1GB
Hard Drive 500GB Serial ATA @ 7200
Optical DriveSuperDrive 8X DL
Keyboard and Documentation KYBD/User's Guide -B
Country Kit/AEXCountry Kit-GBR
mdales / gist:1267789
Created Oct 6, 2011
Django settings import
View gist:1267789
import os
if os.path.exists('/etc/'):
if os.path.exists(''):
mdales / gist:1120262
Created Aug 2, 2011
Failed bootstrap for cappuccino
View gist:1120262
oak[cappuccino]% ./ 15:09
Narwhal JavaScript platform is required. Install it automatically now?
Enter "yes" or "no":
To use the default location, "/usr/local/narwhal", just hit enter/return, or enter another path:
Downloading Narwhal from ""...
% Total % Received % Xferd Average Speed Time Time Time Current
mdales /
Created Mar 4, 2011
LAzy django assistant
import readline, rlcompleter
readline.parse_and_bind ("bind ^I rl_complete")
globals().update({"test": 123})
test2 = 123
from django.conf import settings
except ImportError:
mdales / dvtcolorconvert.rb
Created Jan 24, 2011 — forked from aktowns/dvtcolorconvert.rb
Fork of aktowns' excellent little script for converting xcode3 color themes to xcode4. Just added rubygems import
View dvtcolorconvert.rb
#!/usr/bin/env ruby
# This script converts xccolorthemes to dtvcolorthemes for porting xcode 3.x themes to xcode 4.x
# created by ashley towns <>
# Public domain.
# ./dvtcolorconvert <inputfile>
# spits out a .dtvcolortheme file
require 'rubygems'
require 'plist'
raise "Error: need a source file #{__FILE__} [file.xccolortheme]" if ARGV.length == 0
mdales / Arduino LED server
Created Dec 29, 2010
Simple code to turn LEDs on/off based on web request.
View Arduino LED server
#include <Client.h>
#include <Dhcp.h>
#include <dns.h>
#include <Ethernet.h>
#include <Server.h>
#include <sockutil.h>
#include <Udp.h>
#include <util.h>
#include <SPI.h>