Backstory: I decided to crowdsource static site generator recommendations, so the following are actual real world suggested-to-me results. I then took those and sorted them by language/server and, just for a decent relative metric, their Github Watcher count. If you want a heap of other projects (including other languages like Haskell and Python) Nanoc has the mother of all site generator lists. If you recommend another one, by all means add a comment.
This file contains hidden or 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 | |
| This is a Powershell script to dump console buffer as html to file. | |
| .DESCRIPTION | |
| This Powershell script will iterate over the current console buffer and | |
| output it as html preserving colors. | |
| .PARAMETER FilePath |
This file contains hidden or 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 GenerateScriptDocumentationInMarkdown { | |
| <# | |
| .Synopsis | |
| Generates documentation for a folder-full of scripts using the integrated Get-Help CMDlets. | |
| .Description | |
| Generates a .markdown documentat for each PS1 script in a folder which has the necessary headers required by Get-Help. Also generates an index document which lists (and links to) all generated documentats. Each file name is preceeded with "script_ps1_" so that they are listed together when viewing the Wiki documents. | |
| .Parameter SourceScriptFolder | |
| Source folder where the scripts are located |
This file contains hidden or 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 Edit-NewIseFile { | |
| param( | |
| [Parameter(ValueFromPipeline=$true)] | |
| $Filename, | |
| [Switch]$AddFunction | |
| ) | |
| Process { | |
| $content="" |
This file contains hidden or 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-TimeStamp { | |
| param( | |
| [Switch]$Yesterday, | |
| [Switch]$ToClipboard | |
| ) | |
| $date = Get-Date | |
| if($Yesterday) { | |
| $date = $date.AddDays(-1) |
This file contains hidden or 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 archiveInbox() { | |
| var query = 'label:inbox is:read older_than:28d -label:unanswered -label:unread'; | |
| var batchSize = 100; | |
| while(GmailApp.search(query, 0, 1).length == 1) { | |
| GmailApp.moveThreadsToArchive(GmailApp.search(query, 0, batchSize)); | |
| } | |
| } |
This file contains hidden or 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
| ## This is a sample NXLog configuration file created by Loggly. June 2013 | |
| ## See the nxlog reference manual about the configuration options. | |
| ## It should be installed locally and is also available | |
| ## online at http://nxlog.org/nxlog-docs/en/nxlog-reference-manual.html | |
| ## Please set the ROOT to the folder your nxlog was installed into, | |
| ## otherwise it will not start. | |
| #define ROOT C:\Program Files\nxlog | |
| define ROOT C:\Program Files (x86)\nxlog |
This file contains hidden or 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
| input { | |
| tcp { | |
| type => "syslog" | |
| host => "127.0.0.1" | |
| port => 3514 | |
| } | |
| tcp { | |
| type => "eventlog" | |
| host => "10.1.1.2" | |
| port => 3515 |
This file contains hidden or 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
| <Types> | |
| <Type> | |
| <Name>System.String</Name> | |
| <Members> | |
| <ScriptProperty> | |
| <Name>ToBase64</Name> | |
| <GetScriptBlock> | |
| [System.Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes($this)) | |
| </GetScriptBlock> | |
| </ScriptProperty> |