This is an example of embedding a GitHub repository script in WordPress using the WP-GitHub plugin (with customized prism.js to add PowerShell, Batch, SQL and AutoIt language support)
And an example of a custom plugin (not yet published) with shortcode: Read More Redirect
shortcode: github-contents filepath language
DobsonDev Shortcodes
shortcode: embedGigHubContent owner repro path markdown
[embedGitHubContent owner=”ChadSimmons” repo=”Scripts” path=”Move-FilesByNameDate.ps1″ markdown=”true”]
oEmbed Gist
https://github.com/ChadSimmons/Scripts/blob/master/Move-FilesByNameDate.ps1
GitHub embedding