Skip to content

Instantly share code, notes, and snippets.

#(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 December 16, 2015 10:09
play! framework 1.x init.d file - could need some tuning; use for inspiration only :-)
#!/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.