This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-Uptime | |
{ | |
[CmdletBinding()] | |
param | |
( | |
[Parameter(ValueFromPipeline=$true, | |
ValueFromPipelineByPropertyName=$true)] | |
[Alias('hostname')] | |
[Alias('cn')] | |
[string[]]$ComputerName = $env:COMPUTERNAME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# NAME: create-bridge-netif.sh | |
# AUTHOR: Marc Weisel | |
# DATE: 03/04/2014 | |
# NOTES: Tested with Mac OS X 10.9 (Mavericks); Bash v3.2.51(1)-release | |
# FUNCTIONS | |
## Is the TAP network interface available? | |
tap_exist() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-WebWorkerProcessPlus | |
{ | |
[CmdletBinding()] | |
param ( [switch]$Format ) | |
function Format-HumanReadable($size) | |
{ | |
switch ($size) | |
{ | |
{$_ -ge 1PB}{"{0:#.#'P'}" -f ($size / 1PB); break} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.encoding = "UTF-8" | |
config.version = "8" | |
virtualHW.version = "10" | |
vcpu.hotadd = "TRUE" | |
scsi0.present = "FALSE" | |
memsize = "1024" | |
mem.hotadd = "TRUE" | |
ide0:0.present = "TRUE" | |
ide0:0.fileName = "/Users/marc/Documents/Virtual Machines.localized/vEOS/Aboot-veos-2.0.8.iso" | |
ide0:0.deviceType = "cdrom-image" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.encoding = "UTF-7" | |
displayname = "vSRX" | |
annotation = "Firefly Perimeter OVF Template" | |
guestos = "freebsd" | |
virtualhw.version = "7" | |
config.version = "8" | |
numvcpus = "2" | |
cpuid.coresPerSocket = "1" | |
memsize = "2048" | |
pciBridge0.present = "TRUE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-ExchangeServerPlus | |
{ | |
<# | |
Get-ExchangeServerPlus | |
Written By Paul Flaherty, http://blogs.flaphead.com | |
Modified by Jeff Guillet, http://www.expta.com | |
Modified by Mark E. Smith, http://marksmith.netrends.com | |
Modified by Jason Sherry, http://blog.jasonsherry.net | Version 2.0 | |
Modified yet again by Marc Weisel, http://binarynature.blogspot.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Get-DiskFree | |
{ | |
[CmdletBinding()] | |
param | |
( | |
[Parameter(Position=0, | |
ValueFromPipeline=$true, | |
ValueFromPipelineByPropertyName=$true)] | |
[Alias('hostname')] | |
[Alias('cn')] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.ssh.insert_key = false | |
config.vm.box = "cisco-iosv-l2-152-2016" | |
config.vm.boot_timeout = 90 | |
# Disable default host <-> guest synced folder | |
config.vm.synced_folder ".", "/vagrant", disabled: true | |
# Set guest OS type to disable autodetection |