Skip to content

Instantly share code, notes, and snippets.

View phaus's full-sized avatar
🦓

Philipp Haussleiter phaus

🦓
View GitHub Profile
@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 / 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"
#!/usr/bin/php
<?php
function getPlugins($url){
$opts = array('http' =>
array(
'method' => 'GET',
'header' => "Content-Type: text/html\r\n",
'content' => $body,
'timeout' => 60
)
{
"login": "consolving",
"id": 3236400,
"url": "https://api.github.com/orgs/consolving",
"repos_url": "https://api.github.com/orgs/consolving/repos",
"events_url": "https://api.github.com/orgs/consolving/events",
"members_url": "https://api.github.com/orgs/consolving/members{/member}",
"public_members_url": "https://api.github.com/orgs/consolving/public_members{/member}",
"avatar_url": "https://avatars.githubusercontent.com/u/3236400?v=2",
"name": "Consolving Network Solutions",
@phaus
phaus / Vagrantfile
Last active August 29, 2015 14:07
vagrant-mesos
# -*- 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|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
{
"execution": "failed",
"chain_results": [
{
"result": "All parameters OK!",
"error": "",
"name": "common.validate_params",
"started_at": "2015-08-02T18:16:48.867Z",
"finished_at": "2015-08-02T18:16:48.871Z"
},
#cloud-config
hostname: "coreos1"
# include one or more SSH public keys
ssh_authorized_keys:
- ssh-rsa XXX
coreos:
units:
@phaus
phaus / 2fact.js
Last active January 21, 2016 10:23
run a Docker Container on SmartOS
{
"alias": "2fact",
"brand": "lx",
"kernel_version": "3.13.0",
"docker": true,
"cpu_shares": 1000,
"zfs_io_priority": 1000,
"max_physical_memory": 1024,
"quota": 10,
"nowait": true,
@phaus
phaus / gitlab.json
Created June 13, 2016 20:12
failed to login after zone setup
{
"alias": "gitlab",
"hostname": "gitlab",
"brand": "lx",
"kernel_version": "3.10.0",
"max_physical_memory": 1024,
"cpu_shares": 40,
"quota": 64,
"image_uuid": "07b33b7a-27a3-11e6-816f-df7d94eea009",
"resolvers": [
@phaus
phaus / openldap.json
Last active June 13, 2016 20:16
that zone worked
{
"alias": "ldap",
"hostname": "ldap",
"brand": "lx",
"kernel_version": "3.10.0",
"cpu_shares": 20,
"max_physical_memory": 512,
"quota": 5,
"image_uuid": "07b33b7a-27a3-11e6-816f-df7d94eea009",
"resolvers": [