- This is the first item of the day
- This is the first sub-item of the day
- This is the first sub-sub-item of the day
- This is the first sub-item of the day
- This is the second item of the day
- This is what using back-tick marks through the PowerShell console can be used to
show code
in the GFM
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
<# | |
.NOTES | |
########################################################### | |
# NoSSaver.ps1 | |
# | |
# Wayne Lindimore | |
# wlindimore@gmail.com | |
# AdminsCache.Wordpress.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-RDM { | |
[OutputType([System.Management.Automation.PSCustomObject])] | |
[cmdletbinding(DefaultParameterSetName = 'default')] | |
param ( | |
[parameter( | |
Mandatory = $true, | |
ValueFromPipeline = $true, | |
Position = 0, | |
ParameterSetName = 'default')] |
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
<# | |
.SYNOPSIS | |
Gets the pending reboot status on a local or remote computer. | |
.DESCRIPTION | |
This function will query the registry on a local or remote computer and determine if the | |
system is pending a reboot, from either Microsoft Patching or a Software Installation. | |
For Windows 2008+ the function will query the CBS registry key as another factor in determining | |
pending reboot state. "PendingFileRenameOperations" and "Auto Update\RebootRequired" are observed | |
as being consistant across Windows Server 2003 & 2008. |
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
# Gather a list of Datacenters, but only pull the name | |
$datacenterQuery = Get-View -Server $viServer -ViewType Datacenter -Property Name -ErrorAction 'Stop' | |
foreach ($datacenter in $datacenterQuery) { | |
# Grab a list of clusters, but only pull the name - also use the current datacenter as the search root | |
$clusterQuery = Get-View -Server $viServer -ViewType ClusterComputeResource -Property Name -SearchRoot $datacenter.MoRef | |
foreach ($cluster in $clusterQuery) { |
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
docker build -t vscripter/alpine-ssh:v1 . | |
docker push vscripter/alpine-ssh:v1 | |
# ran a few commands and then jumped out and left the container running | |
docker run -it --name alpine-v2 vscripter/alpine-ssh:v1 | |
# added elinks just to test | |
docker exec -it alpine-v2 apk add elinks | |
docker commit alpine-v2 vscripter/alpine-ssh:v2 |
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-VILicense { | |
<# | |
.SYNOPSIS | |
Return vSphere license deatils from the connected vCenter Server(s) | |
.DESCRIPTION | |
Return vSphere license deatils from the connected vCenter Server(s) | |
.EXAMPLE | |
Get-VILicense -Verbose | |
.OUTPUTS |
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
# check to see if IPv6 config status | |
cat /proc/sys/net/ipv6/conf/all/disable_ipv6 | |
# edit sysctl.conf | |
vi /etc/sysctl.conf | |
#disable ipv6 | |
net.ipv6.conf.all.disable_ipv6 = 1 | |
net.ipv6.conf.default.disable_ipv6 = 1 | |
net.ipv6.conf.lo.disable_ipv6 = 1 |
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
## Work Log | |
### Friday, February 06, 2015 | |
* This is the first item of the day | |
* This is the first sub-item of the day | |
* This is the first sub-sub-item of the day | |
* This is the second item of the day | |
* This is what using back-tick marks through the PowerShell console can be used to ``show code`` in the GFM |
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
Add-WorkLog 'This is the first item of the day' | |
Add-WorkLog 'This is the first sub-item of the day' -Indent 1 | |
Add-WorkLog 'This is the first sub-sub-item of the day' -Indent 2 | |
Add-WorkLog 'This is the second item of the day' | |
Add-WorkLog "This is how using back-tick marks through the PowerShell console can be used to ````show code```` in the GFM" |
NewerOlder