Examples for how to create your own info panel, warning box and other decent looking notification in GitHub markdown.
All the boxes are single/two cell tables or two row tables.
| ❗ You have to read about this | 
|---|
| # Title: figs/hosts | |
| # =============================================================== | |
| 127.0.0.1 localhost | |
| 127.0.0.1 localhost.localdomain | |
| 127.0.0.1 local | |
| 255.255.255.255 broadcasthost | |
| ::1 localhost | |
| ::1 ip6-localhost | |
| ::1 ip6-loopback | 
| require 'json' | |
| require 'rest-client' | |
| require 'optionparser' | |
| options = {} | |
| OptionParser.new do |opts| | |
| opts.banner = 'Usage: get_thycotic_secret.rb [options]' | |
| opts.on('-b', '--baseurl BASEURL', 'https://secrets.moogles/secretserver') { |v| options[:baseurl] = v } | |
| opts.on('-u', '--username USERNAME', 'username') { |v| options[:username] = v } | 
| <# | |
| you need powershell 5 or higher, works on powershell-core / 6 (i.e. will work on your mac / *nix) | |
| THIS IS FOR THYCOTIC SECRET SERVER REST API INTERACTIONS | |
| - USE [ThycoticHelper] if you want fuller access. | |
| - USE [SecretServer] static methods if you prefer easy mode | |
| OAUTH2 bearer tokens for thycotic seem to only have a 60s lifespan it seems - so with this helper we'll just get a new one with each request | |
| usage example (assuming you've put the file in current directory: | |
| using module ./SecretServerRest.psm1 | |
| $cred = get-credential; | |
| $baseUrl = 'https://secrets.moogles/secretserver'; | 
| md d:\otherloc | |
| net stop wuauserv | |
| rename c:\windows\softwaredistribution c:\windows\softwaredistribution.old | |
| mklink /j c:\windows\softwaredistribution d:\otherloc | |
| net start wuauserv | 
| helo google.com | |
| mail from: somewhere@elsewhere | |
| rcpt to: somewhere@local | |
| data | |
| subject: something | |
| body text | |
| . | 
| curl -s | |
| --form-string "token=tokenval" | |
| --form-string "user=email@somewhere.local" | |
| --form-string "message=hello world" | |
| https://api.pushover.net/1/messages.json | 
| get-module pswindowsupdate; | |
| Install-Module pswindowsupdate; | |
| import-module pswindowsupdate; | |
| Get-WindowsUpdate -WindowsUpdate -UpdateType Driver -IsInstalled -ShowPreSearchCriteria -Verbose | |
| get-windowsupdate -MicrosoftUpdate -IgnoreUserInput -Verbose -AcceptAll -Install; | |
| get-windowsupdate -WindowsUpdate -IgnoreUserInput -Verbose -AcceptAll -Install; | 
| yum -y install yum-cron | |
| chkconfig yum-cron on | |
| EMAIL=email_to_device@api.pushover.net | |
| sed -i "s|^email_to = root|email_to = ${EMAIL}|" /etc/yum/yum-cron.conf | |
| sed -i 's|^update_messages = no|update_messages = yes|' /etc/yum/yum-cron.conf | |
| sed -i 's|^download_updates = no|download_updates = yes|' /etc/yum/yum-cron.conf | |
| sed -i 's|^apply_updates = no|apply_updates = yes|' /etc/yum/yum-cron.conf | |
| sed -i 's|^emit_via = stdio|emit_via = email|' /etc/yum/yum-cron.conf | |
| sed -i "s|^email_to = root|email_to = ${EMAIL}|" /etc/yum/yum-cron-hourly.conf |