Skip to content

Instantly share code, notes, and snippets.

View version_4_3.rb
#(line 252, voor vagrant 1.7.4)
def read_forwarded_ports(uuid=nil, active_only=false)
uuid ||= @uuid
@logger.debug("read_forward_ports: uuid=#{uuid} active_only=#{active_only}")
results = []
current_nic = nil
# eat exceptions if showvminfo breaks
@Notalifeform
Notalifeform / play_portal
Last active Dec 16, 2015
play! framework 1.x init.d file - could need some tuning; use for inspiration only :-)
View play_portal
#!/bin/sh
### BEGIN INIT INFO
# Provides: skeleton
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example initscript
# Description: This file should be used to construct scripts to be
# placed in /etc/init.d.
You can’t perform that action at this time.