This file contains 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
internal class Helpers | |
{ | |
internal string GetCallingMethodName() | |
{ | |
string result = "unknown"; | |
StackTrace trace = new StackTrace(false); | |
for (int i = 0; i < trace.FrameCount; i++) | |
{ | |
StackFrame frame = trace.GetFrame(i); | |
MethodBase method = frame.GetMethod(); |
This file contains 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
slmgr.vbs -upk |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<script> |
This file contains 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
-- https://www.simple-talk.com/sql/learn-sql-server/understanding-full-text-indexing-in-sql-server/ | |
IF OBJECT_ID (N'ProductDocs', N'U') IS NOT NULL | |
DROP TABLE ProductDocs | |
GO | |
CREATE TABLE ProductDocs ( | |
DocID INT NOT NULL IDENTITY, | |
DocTitle NVARCHAR(50) NOT NULL, | |
DocFilename NVARCHAR(400) NOT NULL, | |
FileExtension NVARCHAR(8) NOT NULL, | |
DocSummary NVARCHAR(MAX) NULL, |
This file contains 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
/// <summary> | |
/// See https://coderwall.com/p/app3ya/read-excel-file-in-c | |
/// </summary> | |
namespace App | |
{ | |
using System; | |
using System.Runtime.InteropServices; | |
using Excel = Microsoft.Office.Interop.Excel; //microsoft Excel 14 object in references-> COM tab | |
public class Program |
This file contains 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 https://msdn.microsoft.com/en-us/library/zt39148a(v=vs.110).aspx | |
Service lifecycle: | |
Install service: C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe TasksService.exe | |
Start service: NET START TasksRunnerService | |
Stop service: NET STOP TasksRunnerService | |
Uninstall service: C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe /u TasksService.exe |
This file contains 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 | |
find . -type f -exec chmod -x {} \; |
This file contains 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 | |
find . -type d -empty -delete |
This file contains 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
@echo off | |
color 0A | |
title Conditional Shutdown | |
:start | |
echo What would you like to do? | |
echo. | |
echo 1. Shutdown in specified time | |
echo 2. Shutdown now | |
echo 3. Restart now |