Skip to content

Instantly share code, notes, and snippets.

View phaus's full-sized avatar
🦓

Philipp Haussleiter phaus

🦓
View GitHub Profile
#!/usr/bin/php
<?php
function getPlugins($url){
$opts = array('http' =>
array(
'method' => 'GET',
'header' => "Content-Type: text/html\r\n",
'content' => $body,
'timeout' => 60
)
@phaus
phaus / Vagrantfile
Created August 18, 2014 20:44
Vagrant OmniOS Crossbow Config
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "OmniOS-crossbow"
config.vm.box_url = "http://omnios.omniti.com/media/OmniOS_r151006c-r1.box"
config.vm.hostname = "omnios-crossbow"
config.vm.network "private_network", type: "dhcp"
config.vm.network :private_network, ip: "192.168.0.1"
@phaus
phaus / Vagrantfile
Last active February 14, 2016 14:41
DVD Indexer
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.hostname = "dvdindex"
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "dvdindex"
@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:

.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 / 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
@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 / 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 / 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 / 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