☐ Do th is: http://stackoverflow.com/a/31963828
☐ And have a look at this: https://www.nuget.org/packages/Microsoft.AspNet.Identity.Samples
☐ Helpful: http://jorgeramon.me/2015/how-to-seed-users-and-roles-in-an-asp-net-mvc-application/
Poop
Visual Studio – Open Sublime
A little while ago I tweeted this:
Can someone just build the thing that embeds #sublimetext into VS for JS and CSS and LESS and EVERYTHING that’s not C#?
— Quooston (@quooston) July 13, 2015
It appears this is entirely kinda possible by wiring up Sublime as an External Tool in Visual Studio:
To open the current Visual Studio file in Sublime Text, do the following:
- Add Sublime as an External Tool with
Arguments: “`$(ItemPath):$(CurLine)“`
Initial Directory: “`$(ItemDir)“`
2. Create a shortcut key combo to open the current file on the current line:
Tools –> Options –> Keyboard
ExternalCommands[X] where X is the number corresponding to where in the list of external tools Sublime was added.
I use “`[Ctrl]+o+[Ctrl]+s“` for Open Sublime.
And that’s it. Thanks Homey Aryan for the tip!
Test Guide – Be Afraid!
Holy crap! And I thought I had an inkling of what thorough was!
http://blogs.msdn.com/b/micahel/archive/2004/07/07/did-i-remember-to.aspx
Dijkstra Quotes
Elegance is not a dispensable luxury but a factor that decides between success and failure.
Simplicity is prerequisite for reliability.
The competent programmer is fully aware of the limited size of his own skull. He therefore approaches his task with full humility, and avoids clever tricks like the plague.
If 10 years from now, when you are doing something quick and dirty, you suddenly visualize that I am looking over your
shoulders and say to yourself: ‘Dijkstra would not have liked this’, well that would be enough immortality for me.
Right click “Open with Sublime” in Windows
@echo off 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 rem add it for folders @reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f @reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f @reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f pause
Sublime Text “Reveal in Sidebar” keybinding
[ { "keys": ["leftshift+leftalt+l"], "command": "reveal_in_side_bar" } ]
Node & NPM on Windows
- Uninstall Node using Control Panel.
- Make sure there is nothing on your path to any node or NPM directory
- Download Node from https://nodejs.org/
- Run the installer
- Select to install NPM
- Select to add Node the path
- You will now have a c:\Program Files (x86)\nodejs\ directory, and in it are both NPM and Node.
- Run: npm install npm –g
- You will now have the most up to date NPM in c:\Users\[user]\AppData\Roaming\npm\
- Run the node installer again, and deselect NPM.
- This will remove NPM from the c:\Program Files (x86)\nodejs\ directory
- Now, add NPM to your path (c:\Users\[user]\AppData\Roaming\npm\)
You are now in a position to keep NPM up to date, independently of Node, and both are where they belong.
Timing command line execution
@echo off @setlocal set start=%time% :: runs your command cmd /c %* set end=%time% set options="tokens=1-4 delims=:." for /f %options% %%a in ("%start%") do set start_h=%%a&set /a start_m=100%%b %% 100&set /a start_s=100%%c %% 100&set /a start_ms=100%%d %% 100 for /f %options% %%a in ("%end%") do set end_h=%%a&set /a end_m=100%%b %% 100&set /a end_s=100%%c %% 100&set /a end_ms=100%%d %% 100 set /a hours=%end_h%-%start_h% set /a mins=%end_m%-%start_m% set /a secs=%end_s%-%start_s% set /a ms=%end_ms%-%start_ms% if %hours% lss 0 set /a hours = 24%hours% if %mins% lss 0 set /a hours = %hours% - 1 & set /a mins = 60%mins% if %secs% lss 0 set /a mins = %mins% - 1 & set /a secs = 60%secs% if %ms% lss 0 set /a secs = %secs% - 1 & set /a ms = 100%ms% if 1%ms% lss 100 set ms=0%ms% :: mission accomplished set /a totalsecs = %hours%*3600 + %mins%*60 + %secs% echo command took %hours%:%mins%:%secs%.%ms% (%totalsecs%.%ms%s total)
Put that into a batch file somewhere in your path.
Now you can:
timecmd msbuild lapps.sln -m -v:q
The reason this is a thing, is because when you set verbosity to quiet for msbuild, you don’t get the execution time. Which is annoying.