Wednesday, March 27, 2013

Minify your js on build in Visual Studio

Oh the interwebs always has the answers.

I wanted to find out if there was a way to minify my javascript after a successful build. One google search brought me here:

I've got it implemented in VS2012, and it's working great! Just don't forget the quotes, because your full paths might have spaces in them.

Wednesday, March 06, 2013

Reset Identity column in SQL Server

I keep Googling for how to do this, and now I'm just coming here the next time I need it

DBCC CHECKIDENT('Customer', RESEED, 0)

I got it from here:
http://geekswithblogs.net/TakeNote/archive/2007/11/30/117258.aspx

and sometimes from here:
http://blog.sqlauthority.com/2007/03/15/sql-server-dbcc-reseed-table-identity-value-reset-table-identity/

Wednesday, February 20, 2013

Unbreaking your master branch

I accidentally merged a branch into master, and then I pushed. Bah!

My colleague found this link:

http://www.mikeplate.com/2012/04/21/rewind-master-if-you-forgot-to-create-new-branch-in-git/

Now it's like my mistake never happened. Booyah!