Skip to content

Instantly share code, notes, and snippets.

View OleMchls's full-sized avatar
🎯
Focusing

Ole Michaelis OleMchls

🎯
Focusing
View GitHub Profile
@OleMchls
OleMchls / gist:2384354
Created April 14, 2012 13:16
Vagrant bash autocomplete
# Autocompletion for Vagrant just put this line in your ~/.profile
complete -W "$(echo `vagrant --help | awk '/box/,/up/ {print $1}'`;)" vagrant
@OleMchls
OleMchls / gist:2390699
Created April 15, 2012 07:17
phpqatools failed
vagrant@lucid64:~$ pear config-set auto_discover 1
config-set succeeded
vagrant@lucid64:~$ pear install pear.phpqatools.org/phpqatools
Attempting to discover channel "pear.phpqatools.org"...
downloading channel.xml ...
Attempting fallback to https instead of http on channel "pear.phpqatools.org"...
unknown channel "pear.phpqatools.org" in "pear.phpqatools.org/phpqatools"
invalid package name/package file "pear.phpqatools.org/phpqatools"
install failed
@OleMchls
OleMchls / example-json.js
Created April 22, 2012 21:47
Blogpost: Testing a restful JSON API
[
{"date": 1335129054}, /* and */ {"date": "1335129054"},
/* would be ok for us and even (yeha it’s hard to say for me but) */
{"date": "1335129054afd"}
/* would result in the same time with the internal php functions */
]
@OleMchls
OleMchls / .travis.yml
Created August 22, 2012 09:47 — forked from gyndav/.travis.yml
Simple Mongo PHP Driver extension installer for Travis CI. Works like a charm for other PECL extensions too.
before_script:
- source ./path/to/mongo-php-driver-installer.sh
@OleMchls
OleMchls / app.json
Created September 28, 2012 14:55
Project responses
{
"name": "Salesforce Mobile",
"icons": [
{
"href": "http://a3.mzstatic.com/us/r1000/116/Purple/v4/30/96/35/30963553-0da7-06df-616b-96e8f0f67868/mzl.foolhjfy.53x53-50.png",
"attributes": {
"height": 53
}
},
{
@OleMchls
OleMchls / gist:3866389
Created October 10, 2012 15:35
iTunes API result
{
"kind": "software",
"features": [
"iosUniversal",
"newsstand"
],
"supportedDevices": [
"all"
],
"isGameCenterEnabled": false,
<?php
$url = $_SERVER['argv'][1];
echo count(json_decode(file_get_contents($url)));
@OleMchls
OleMchls / names.md
Created April 12, 2013 14:30
Dummy Names
  • Rainer Zufall
  • Claire Grube
  • Armin Gips
  • Anna Bolika
  • Bill Yard
  • Klaus Thaler
  • Volker Putt
  • Mira Belle
  • Franz Ösisch
  • Ben Chmark
@OleMchls
OleMchls / fetch.js
Created May 15, 2013 09:26
Get meetup attendeelist from meetup.com
var result = [];
var members = $('.event-attendee-section h5.member-name a').get();
for (var i in members) {
result.push($(members[i]).text());
};
console.log(result.join("\n"));
alert(result.join("\n"));
@OleMchls
OleMchls / gist:5868045
Created June 26, 2013 14:55
ing0 pwnd
λ ~ brew search elixir
elixir
λ ~ brew info elixir
elixir: stable 0.9.3, HEAD
http://elixir-lang.org/
Not installed
From: https://github.com/mxcl/homebrew/commits/master/Library/Formula/elixir.rb
λ ~ brew install elixir
==> Downloading https://github.com/elixir-lang/elixir/archive/v0.9.3.tar.gz
######################################################################## 100.0%