Skip to content

Instantly share code, notes, and snippets.

View bascht's full-sized avatar
📢
Setting all the statuses.

Sebastian Schulze bascht

📢
Setting all the statuses.
View GitHub Profile
@bascht
bascht / em.rb
Created June 20, 2012 09:50
Tippspiel. Und so.
#!/bin/env ruby
MATCHES = [
["Tschechien", "Portugal"],
["Deutschland", "Griechenland"],
["Spanien", "Frankreich"],
["England", "Italien"]
]
MATCHES.each do |teams|
--> Finished Dependency Resolution
Error: Package: geronimo-jaf-1.0.2-api-1.6-8.jpp6.noarch (codekombinat)
Requires: geronimo-specs = 1.6-8.jpp6
Available: geronimo-specs-1.0-3.4.M2.el6.noarch (base)
geronimo-specs = 1.0-3.4.M2.el6
Installing: geronimo-specs-1.6-6.jpp6.noarch (codekombinat)
geronimo-specs = 1.6-6.jpp6
Error: Package: geronimo-annotation-1.0-api-1.6-8.jpp6.noarch (codekombinat)
Requires: geronimo-specs = 1.6-8.jpp6
Available: geronimo-specs-1.0-3.4.M2.el6.noarch (base)
openjpa-javadoc-1.2.2-1.jpp6.noarch.rpm
ops4j-pax-web-javadoc-1.1.4-1.jpp6.noarch.rpm
wiquery-1.5.7-1.jpp6.noarch.rpm
wicket-spring-1.5.8-1.jpp6.noarch.rpm
wicket-javadoc-1.5.8-1.jpp6.noarch.rpm
@bascht
bascht / gist:5246416
Created March 26, 2013 15:42
Maximize a Pane in Tmux
unbind +
bind + new-window -d -n tmux-zoom \; swap-pane -s tmux-zoom.0 \; select-window -t tmux-zoom
unbind -
bind - last-window \; swap-pane -s tmux-zoom.0 \; kill-window -t tmux-zoom
# Version from Superuser.com, combined with chadoh's comment:
# http://superuser.com/questions/238702/maximizing-a-pane-in-tmux/357799#357799
$vagrant box add precise64 http://files.vagrantup.com/precise64_vmware_fusion.box --provider vmware_workstation
Downloading or copying the box...
Extracting box...te: 7385k/s, Estimated time remaining: 0:00:02)
The box you attempted to add doesn't match the provider you specified.
Provider expected:vmware_workstation
Provider of box: vmware_fusion
@bascht
bascht / patch-insecure-defaults-vagrant-1.0.7.patch
Created June 19, 2013 08:09
For those who just want to quickly patch their 'old' Vagrant 1.0.x installations until they can upgrade to hashicorp/vagrant#1785
From 021dc42756dc44e17d3b2555b0652b96dea39559 Mon Sep 17 00:00:00 2001
From: Sebastian Schulze <github.com(at)bascht.com>
Date: Wed, 19 Jun 2013 10:05:08 +0200
Subject: [PATCH] Quickly patch Vagrants insecure VirtualBox defaults [GH-1785]
---
lib/vagrant/driver/virtualbox_4_0.rb | 2 +-
lib/vagrant/driver/virtualbox_4_1.rb | 2 +-
lib/vagrant/driver/virtualbox_4_2.rb | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
@bascht
bascht / README.md
Created July 25, 2013 16:58
Small KVB Monitor for dashing
# Everything is fine until I add the line
# "post-processors": [ "vagrant" ]
 packer validate template.json
Template validation failed. Errors are shown below.
Errors validating build 'virtualbox'. 1 error(s) occurred:
* Failed creating VirtualBox driver: exec: "VBoxManage": executable file not found in $PATH
# Everything is fine until I add the line
# "post-processors": [ "vagrant" ]
 packer validate template.json
Template validation failed. Errors are shown below.
Errors validating build 'virtualbox'. 1 error(s) occurred:
* Failed creating VirtualBox driver: exec: "VBoxManage": executable file not found in $PATH
{
"type": "shell",
"script": "scripts/{{.InsertBuilderTypeHere}}.sh",
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'"
}