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
var path = @"C:\Temp\Path-To-File.xlsx"; | |
using (var pck = new OfficeOpenXml.ExcelPackage()) | |
{ | |
using (var stream = File.OpenRead(path)) | |
{ | |
pck.Load(stream); | |
} | |
var ws = pck.Workbook.Worksheets.First(); | |
for (int rowNum = 1; rowNum <= ws.Dimension.End.Row; rowNum++) |
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
choco install git | |
choco install git.install | |
choco install vlc | |
choco install putty | |
choco install consolez | |
choco install spotify | |
choco install winscp | |
choco install greenshot | |
choco install katmouse | |
choco install teamviewer |
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
//From String | |
var result = (EnumNameHere)Enum.Parse(typeof(EnumNameHere), stringValue); | |
//From Integer | |
var result = (EnumNameHere)integerValue; | |
//To Integer | |
var result = (int)enumValue; | |
//To String | |
var result = enumValue.ToString(); |
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
Find word inside quotes | |
"(.*?\b(followup)\b.*?)" | |
Example text: var followup = "this is a followup "; |
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
#Run this in the directory where the images are located. Either add mencoder to path or use the full path to mencoder | |
"C:\DevOps\Utils\VideoUtils\mencoder.exe" -nosound -ovc lavc -lavcopts vcodec=mpeg4:aspect=4/3:vbitrate=8000000 -vf scale=640:512 -o "timelapse-%DATE:/=-%@%TIME::=-%.avi" -mf type=jpeg:fps=24 mf://*.jpg |
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
See this link | |
http://www.growingwiththeweb.com/2012/12/aspnet-mvc-display-and-editor-templates.html | |
need to add examples here |
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
CREATE TABLE #counts | |
( | |
table_name varchar(255), | |
row_count int | |
) | |
EXEC sp_MSForEachTable @command1='INSERT #counts (table_name, row_count) SELECT ''?'', COUNT(*) FROM ?' | |
SELECT table_name, row_count FROM #counts ORDER BY table_name, row_count DESC | |
DROP TABLE #counts |
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://boxstarter.org/package/nr/url? | |
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Set-TaskbarOptions -Size Large -Lock -Dock Bottom -Combine Never | |
Enable-RemoteDesktop | |
choco install dotnet4.5 | |
choco install dotnet4.5.1 | |
choco install dotnet4.5.2 | |
choco install dotnet4.6 | |
choco install DotNet3.5 |
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://boxstarter.org/package/nr/url? | |
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Set-TaskbarOptions -Size Large -Lock -Dock Bottom -Combine Never | |
Enable-RemoteDesktop | |
choco install googlechrome | |
choco install dotnet4.5 | |
choco install dotnet4.5.1 | |
choco install dotnet4.5.2 | |
choco install dotnet4.6 |
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://boxstarter.org/package/nr/url? | |
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Set-TaskbarOptions -Size Large -Lock -Dock Bottom -Combine Never | |
Enable-RemoteDesktop | |
choco install googlechrome | |
choco install dotnetfx | |
choco install dotnet4.5 | |
choco install dotnet4.5.1 | |
choco install dotnet4.5.2 |