Skip to content

Instantly share code, notes, and snippets.

View VickyWinner's full-sized avatar
🏠
Working from home

Vikas Konda VickyWinner

🏠
Working from home
View GitHub Profile
@StevenACoffman
StevenACoffman / rotate-github-personal-access-keys.sh
Created September 27, 2018 21:48
Rotate Github Personal Access Keys
#!/bin/bash
TOKEN_UUID=$(uuidgen)
if [ -z ${GITHUB_USERID+x} ]; then
echo "GITHUB_USERID is unset, exitting";
exit 1
else
echo "GITHUB_USERID is set to '$GITHUB_USERID'"
fi
@msnelling
msnelling / terraform_ansi_strip.ps1
Created March 30, 2016 07:44
Strip ANSI codes from Terraform output
function Remove-ANSICodes
{
param([string][Parameter(ValueFromPipeline=$true)]$String)
$String -replace '\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]', ''
}
function Run-Command
{
param([string]$Command)