Skip to content

Instantly share code, notes, and snippets.

View chopmo's full-sized avatar

Jacob Tjoernholm chopmo

View GitHub Profile
(defun read-system-path ()
(with-temp-buffer
(insert-file-contents "/etc/paths")
(goto-char (point-min))
(replace-regexp "\n" ":")
(thing-at-point 'line)))
(setenv "PATH" (read-system-path))
[ nova - ~ ] jtj$ sudo brew install couchdb
Password:
==> Downloading http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.8.4/src/nspr-4.8.4.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/nspr/4.8.4 --disable-debug --enable-strip --enable-optimize
==> make
make -j1 -C config export
/usr/bin/cc -o now.o -c -O3 -march=prescott -mfpmath=sse -w -pipe -Wall -fno-common -pthread -O2 -fPIC -UDEBUG -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -DHAVE_SOCKLEN_T=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM now.c
/usr/bin/cc now.o -o now
/usr/bin/cc -o nsinstall.o -c -O3 -march=prescott -mfpmath=sse -w -pipe -Wall -fno-common -pthread -O2 -fPIC -UDEBUG -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -DHAVE_SOCKLEN_T=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM nsinstall.c
Last login: Wed Jul 7 21:25:25 on ttys001
[ nova - ~ ] jtj$ sudo brew install couchdb
==> Downloading http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.8.4/src/nspr-4.8.4.tar.gz
File already downloaded and cached to /Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/nspr/4.8.4 --disable-debug --enable-strip --enable-optimize
==> make
make -j1 -C config export
/usr/bin/cc -o now.o -c -O3 -march=prescott -mfpmath=sse -w -pipe -Wall -fno-common -pthread -O2 -fPIC -UDEBUG -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -DHAVE_SOCKLEN_T=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM now.c
/usr/bin/cc now.o -o now
/usr/bin/cc -o nsinstall.o -c -O3 -march=prescott -mfpmath=sse -w -pipe -Wall -fno-common -pthread -O2 -fPIC -UDEBUG -DNDEBUG=1 -DXP_UNIX=1 -DDARWIN=1 -DHAVE_BSD_FLOCK=1 -DHAVE_SOCKLEN_T=1 -DXP_MACOSX=1 -DHAVE_LCHOWN=1 -DHAVE_STRERROR=1 -DFORCE_PR_LOG -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM nsinstal
[ nova - ~/oss ] jtj$ sudo brew install -v nspr
==> Build Environment
CC: /usr/bin/cc
CXX: /usr/bin/c++
LD: /usr/bin/cc
CFLAGS: -O3 -march=prescott -mfpmath=sse -w -pipe
CXXFLAGS: -O3 -march=prescott -mfpmath=sse -w -pipe
MAKEFLAGS: -j2
==> Downloading http://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.8.4/src/nspr-4.8.4.tar.gz
File already downloaded and cached to /Library/Caches/Homebrew
require 'net/http'
Net::HTTP.start("multimedia.pol.dk") { |http|
resp = http.get("/archive/00493/Greece_Mail_Bombs_493553y.jpg")
open("foo.jpg", "wb") { |file|
file.write(resp.body)
}
}
URL:
http://avdi.org/devblog/2011/08/18/do-we-need-constants/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+VirtuousCode+%28Virtuous+Code%29
Error:
connect() timed out! Fatal error: Cannot use object of type WP_Error as array in /home/avdi/avdi.org/devblog/wp-content/plugins/embed-github-gist/embed-github-gist.php on line 86
URL:
http://avdi.org/devblog/2011/08/18/do-we-need-constants/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+VirtuousCode+%28Virtuous+Code%29
Error:
connect() timed out! Fatal error: Cannot use object of type WP_Error as array in /home/avdi/avdi.org/devblog/wp-content/plugins/embed-github-gist/embed-github-gist.php on line 86
Brio tog-ting
Lamaze trekantet spejl
Grøn Trip Trap stol
Bobles elefant
Wheely bug
Kalimba
module RCat
class LinePrinter
def print_line(line)
print line
end
end
class PrinterDecorator
def initialize(printer)
@printer = printer