Skip to content

Instantly share code, notes, and snippets.

View trodemaster's full-sized avatar
💭
Pushing buttons

Blake Garner trodemaster

💭
Pushing buttons
View GitHub Profile
starting vmware tools install
Shell is elevated!!
Installed VMware cert...
Installing VMWare Tools...
Done Waiting for VMware tools to install
Done, but a reboot is necessary.
Installed VMware tools...
,
"vmx_data": {
"ethernet0.virtualdev" : "vmxnet3",
"scsi0.virtualdev" : "pvscsi",
"virtualhw.productcompatibility" : "hosted",
"virtualhw.version" : "10",
"vcpu.hotadd": "TRUE",
"mem.hotadd": "TRUE",
"memsize": "8192",
"numvcpus": "2",
.encoding = "UTF-8"
bios.bootorder = "hdd,CDROM"
checkpoint.vmstate = ""
cleanshutdown = "TRUE"
config.version = "8"
displayname = "Ubuntu1504"
ehci.pcislotnumber = "-1"
ehci.present = "FALSE"
ethernet0.addresstype = "generated"
ethernet0.bsdname = "en0"
# install powershellget
Get-PackageProvider -Name NuGet -ForceBootstrap
# allow repo install
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
# install PolicyFileEditor
Install-Module -Name PolicyFileEditor -Confirm:$false
# disable web results search bar
@trodemaster
trodemaster / .tmux.conf
Last active May 1, 2016 01:32
tmux scrolling options os x
set -g mouse
set-option -g default-command "/opt/local/bin/reattach-to-user-namespace bash"
@trodemaster
trodemaster / alternateSSHPort10.11.txt
Last active October 29, 2015 16:47
Configure OS X 10.11 to listen on an alternate ssh port.
1. Pick a port and hack up your /etc/services file
Change existing port entry from
mbus 47000/udp # Message Bus
mbus 47000/tcp # Message Bus
to..
ssh-47000 47000/udp # Alternate port SSH Remote Login Protocol
ssh-47000 47000/tcp # Alternate port SSH Remote Login Protocol
@trodemaster
trodemaster / win-httpShare.json
Created October 26, 2015 19:26
simple packer.io template to demo accessing http server
{
"variables": {
"webserver": "http://{{ .HTTPIP }}:{{ .HTTPPort }}"
},
"builders": [
{
"type": "vmware-vmx",
"source_path": "VM/Win10-vmware-fry-http/Win10.vmx",
"communicator": "winrm",
"http_directory": "FILES",
2015/10/26 12:22:20 [INFO] Packer version: 0.8.5 60bbe850ef0b7fec19eba1929d83e7267ca1572b
2015/10/26 12:22:20 Packer Target OS/Arch: darwin amd64
2015/10/26 12:22:20 Built with Go Version: go1.4.2
2015/10/26 12:22:20 [DEBUG] Discovered plugin: amazon-chroot = /usr/local/bin/packer-builder-amazon-chroot
2015/10/26 12:22:20 [DEBUG] Discovered plugin: amazon-ebs = /usr/local/bin/packer-builder-amazon-ebs
2015/10/26 12:22:20 [DEBUG] Discovered plugin: amazon-instance = /usr/local/bin/packer-builder-amazon-instance
2015/10/26 12:22:20 [DEBUG] Discovered plugin: digitalocean = /usr/local/bin/packer-builder-digitalocean
2015/10/26 12:22:20 [DEBUG] Discovered plugin: docker = /usr/local/bin/packer-builder-docker
2015/10/26 12:22:20 [DEBUG] Discovered plugin: file = /usr/local/bin/packer-builder-file
2015/10/26 12:22:20 [DEBUG] Discovered plugin: googlecompute = /usr/local/bin/packer-builder-googlecompute
@trodemaster
trodemaster / removeapp.ps1
Last active February 3, 2016 06:38
remove 3rd party apps that bork sysprep
# remove troublesome 3rd party app store apps that cause sysprep to fail
if ([Environment]::OSVersion.Version -ge (new-object 'Version' 10,0))
{
Get-AppXProvisionedPackage -online | Remove-AppxProvisionedPackage -online
Get-AppxPackage -AllUsers | Remove-AppxPackage
}
@trodemaster
trodemaster / Initialize-PowerCLIEnvironment_Custom.ps1
Last active January 6, 2016 22:12
Customize the colors used on the console when entering powercli comands
# this file needs to be placed at the following path
# C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Scripts\
Set-PSReadlineOption -TokenKind Parameter -ForegroundColor white
Set-PSReadlineOption -TokenKind Comment -ForegroundColor DarkGreen
Set-PSReadlineOption -TokenKind Keyword -ForegroundColor Green
Set-PSReadlineOption -TokenKind String -ForegroundColor DarkCyan
Set-PSReadlineOption -TokenKind Operator -ForegroundColor white
Set-PSReadlineOption -TokenKind Variable -ForegroundColor Green
Set-PSReadlineOption -TokenKind Command -ForegroundColor Yellow