Skip to content

Instantly share code, notes, and snippets.

View becdetat's full-sized avatar

Rebecca Scott becdetat

View GitHub Profile
@becdetat
becdetat / Project.csproj
Created April 5, 2016 02:02 — forked from chriswithpants/Project.csproj
Build step to confirm scripts are marked as embedded resource
<Target Name="AfterBuild">
<Message Text="@(Content)" Importance="high" Condition="%(Content.Extension) == '.sql'" />
<Error Condition="%(Content.Extension) == '.sql'" Text="Script is not marked as Embedded Resource - %(Filename)" />
</Target>
@becdetat
becdetat / OpenWithSublimeText3.bat
Last active April 1, 2016 03:04 — forked from roundand/OpenWithSublimeText3.bat
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 7 & 10)
@echo off
@echo Run me as administrator!
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f