Skip to content

Instantly share code, notes, and snippets.

View phaus's full-sized avatar
🦓

Philipp Haussleiter phaus

🦓
View GitHub Profile
==> Downloading http://mercurial.selenic.com/release/mercurial-2.0.1.tar.gz
File already downloaded in /Library/Caches/Homebrew
/usr/bin/tar xf /Library/Caches/Homebrew/mercurial-2.0.1.tar.gz
==> make PREFIX=/usr/local/Cellar/mercurial/2.0.1 build
make PREFIX=/usr/local/Cellar/mercurial/2.0.1 build
python setup.py build
running build
running build_mo
creating mercurial/locale
creating mercurial/locale/da
@phaus
phaus / brew doctor
Created January 7, 2012 14:55
install mercurial with different path settings
Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libcdt.5.dylib
/usr/local/lib/libcgraph.6.dylib
/usr/local/lib/libgraph.5.dylib
/usr/local/lib/libgvc.5.0.0.dylib
@phaus
phaus / HowTo.txt
Created May 9, 2012 19:47
HowTo Setup a Play! Framework App
Download http://download.playframework.org/releases/play-2.0.1.zip and unzip it to your OSs optional Folder (e.g. /opt)
https://gist.github.com/
Add the script "play" to your Path.
Go into your play app and run
"play run"
(you can also use play start/stop for running the app in the background, then play status gives you an overview over the current app status)
@phaus
phaus / gist:3078819
Created July 9, 2012 20:52
Deploying kickster to heroku still fails.
imotep:tmp philipp$ git clone https://github.com/jamesward/kickster.git
Cloning into 'kickster'...
remote: Counting objects: 499, done.
remote: Compressing objects: 100% (342/342), done.
remote: Total 499 (delta 199), reused 415 (delta 115)
Receiving objects: 100% (499/499), 532.20 KiB | 302 KiB/s, done.
Resolving deltas: 100% (199/199), done.
imotep:tmp philipp$ cd kickster/
imotep:kickster philipp$ heroku create -s cedar
Creating sharp-sky-4526... done, stack is cedar
@phaus
phaus / gist:3313756
Created August 10, 2012 11:52
Patching SAVON to work with pk12 Certs
# Here is the patching to make the savon gem (https://github.com/rubiii/savon) work with pk12 certs
# if i found the time, i will create a patch and make a pull request :-)
module HTTPI
module Auth
# = HTTPI::Auth::SSL
#
# Provides SSL client authentication.
class SSL
@pkcs12
@phaus
phaus / osxappbundle-maven-plugin-2012-09-11.diff
Created September 11, 2012 13:07
osxappbundle-maven-plugin svn r17490 to GitHub 460a0545f932f1050bdc6489be8d7b3ae9806bf5 DIFF
Index: src/main/resources/org/codehaus/mojo/osxappbundle/Info.plist.template
===================================================================
--- src/main/resources/org/codehaus/mojo/osxappbundle/Info.plist.template (Revision 17490)
+++ src/main/resources/org/codehaus/mojo/osxappbundle/Info.plist.template (Arbeitskopie)
@@ -26,6 +26,8 @@
<string>${mainClass}</string>
<key>JVMVersion</key>
<string>${jvmVersion}</string>
+ <key>WorkingDirectory</key>
+ <string>${workingDirectory}</string>
@phaus
phaus / ps_d3_index.html
Created September 9, 2013 18:43
Some more PS Plotting with D3
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>PS</title>
<style>
.node {
stroke: #fff;
stroke-width: 1.5px;
}
@phaus
phaus / output
Created November 8, 2013 23:18
Reading Binary Files with node.js
$ ./readMul.sh
size: 3072, maxID: 256
[ 813, 9, 15 ]
Alchemy 0
[ 1408, 9, 13 ]
Anatomy 0
[ 1395, 13, 13 ]
Animal Lore 0
[ 1372, 21, 13 ]
Item Identification 0
.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "9"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsisas1068"
memsize = "2048"
mem.hotadd = "TRUE"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "Virtuelle Festplatte.vmdk"
ide1:0.present = "TRUE"
@phaus
phaus / keybase.md
Last active August 29, 2015 13:57
keybase.md

Keybase proof

I hereby claim:

  • I am phaus on github.
  • I am phaus (https://keybase.io/phaus) on keybase.
  • I have a public key whose fingerprint is 005E CB60 0036 1E85 2D7C 81C5 153A 4947 48B2 1898

To claim this, I am signing this object: