Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
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
| #!/bin/bash | |
| #IFS | |
| # SAVEIFS=$IFS | |
| # IFS=$'\n' | |
| # allobjects=($allobjects) | |
| # IFS=$SAVEIFS | |
| # for (( i=0; i<${#allobjects[@]}; i++ )) | |
| # do | |
| # echo "$i: ${allobjects[$i]}" |
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
| dir -recurse -filter *.cs $src | foreach ($_) { | |
| $file = $_.fullname | |
| echo $file | |
| (get-content $file) | where {$_ -notmatch "^.*\#(end)?region.*$" } | out-file $file |
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
| for /d /r . %%d in (bin,obj) do @if exist "%%d" rd /s/q "%%d" |
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
| Package UrlRewrite | |
| { | |
| #Install URL Rewrite module for IIS | |
| DependsOn = "[WindowsFeaturesWebServer]windowsFeatures" | |
| Ensure = "Present" | |
| Name = "IIS URL Rewrite Module 2" | |
| Path = "http://download.microsoft.com/download/6/7/D/67D80164-7DD0-48AF-86E3-DE7A182D6815/rewrite_2.0_rtw_x64.msi" | |
| Arguments = "/quiet" |
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
| Import-LocalizedData -BaseDirectory .\ -FileName VmConfig.psd1 -BindingVariable Config | |
| Login-AzureRmAccount | |
| Select-AzureRmSubscription ` | |
| -SubscriptionName $Config.Azure.Subscription | |
| New-AzureRmResourceGroup ` | |
| -Name $Config.ResourceGroup.Name ` |
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
| DECLARE @SearchTerm VARCHAR(MAX) = '' | |
| SELECT sys.tables.name as [ObjectName], 'Table' as [ObjectType], sys.columns.name as [Column] | |
| FROM sys.columns | |
| JOIN sys.tables | |
| ON sys.columns.object_id = sys.tables.object_id | |
| WHERE LOWER(sys.columns.name) like '%' + LOWER(@SearchTerm) + '%' | |
| UNION |
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
| Windows Registry Editor Version 5.00 | |
| [HKEY_CLASSES_ROOT\Directory\Background\shell\runas] | |
| @="VS Command Prompt" | |
| "HasLUAShield"="" | |
| [HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command] | |
| @="cmd.exe /s /k pushd \"%V\" & \"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\Tools\\VsDevCmd.bat\"" |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using NUnit.Framework; | |
| /* Slightly more logic to implement the implicit rules | |
| * | |
| * Program expects a single string as the input |
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
| // http://stackoverflow.com/questions/12355378/read-from-location-on-console-c-sharp | |
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| public class ConsoleReader { | |
| public static IEnumerable<string> ReadFromBuffer(short x, short y, short width, short height) { |