Skip to content

Instantly share code, notes, and snippets.

View smurawski's full-sized avatar

Steven Murawski smurawski

View GitHub Profile
@smurawski
smurawski / bash-colors.md
Created March 8, 2018 14:22 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple

Keybase proof

I hereby claim:

  • I am smurawski on github.
  • I am smurawski (https://keybase.io/smurawski) on keybase.
  • I have a public key ASBvHpUu5DI8y01ZtGMiXaIjSDGzfJhx_06japln2BYKTQo

To claim this, I am signing this object:

@smurawski
smurawski / ConditionalTracing.ps1
Last active August 29, 2015 13:58
Set Tracing Conditionally
<#
This Gist was created by ISEGist
04/09/2014 09:00:55
#>
$Scriptfile = 'C:\Windows\System32\WindowsPowerShell\v1.0\Modules\PSDesiredStateConfiguration\PSDesiredStateConfiguration.psm1'
Set-PSBreakpoint -Line 249 -Script $Scriptfile -Action {set-psdebug -trace 1;}
Set-PSBreakpoint -Line 477 -Script $Scriptfile -Action {set-psdebug -off;}
@smurawski
smurawski / Get-NetbackupStatus.ps1
Last active August 29, 2015 13:57
Description for Get-NetbackupStatus.ps1
[cmdletbinding()]
param (
# Starttime for backup operation, in NBU format
$StartTime = "17:00:00",
# Endtime for backup operation, in NBU format
$Endtime = "17:00:00",
# Path to $outputfile
$OutputPth = "C:\scripts",
# Name of outputfile
$OutputFile = "BackupReport.txt",
@smurawski
smurawski / Netbackup Daily Report.ps1
Created March 4, 2014 18:15
Netbackup daily report
<#
This Gist was created by ISEGist
03/04/2014 12:15:25
#>
###################################################################################################
#
# NAME: NBU-DailyReport.ps1
#
# AUTHOR: Martijn Jonker
#