Skip to content

Instantly share code, notes, and snippets.

View AlexKorsakov's full-sized avatar

Aleksey S. Korsakov AlexKorsakov

View GitHub Profile
@AlexKorsakov
AlexKorsakov / create-sln.ps1
Last active October 26, 2021 18:20
DotnetSolutionCreator creates dotnet solution with console app faster than you do it by Visual Studio. Optionally, you can add a unit test project.
param (
[Parameter(Mandatory=$true, Position=1)]
[string]$name = "TestSolution",
[Alias('t')]
[Parameter(Mandatory=$false,Position=2)]
[switch]$isAddTestProject
)
New-Item -Path "." -Name $name -ItemType "directory"
@AlexKorsakov
AlexKorsakov / VbaProject.OTM
Created March 27, 2017 12:30
OutlookMsgParser
Option Explicit
Private WithEvents Items As Outlook.Items
Private Sub Application_Startup()
Dim olApp As Outlook.Application
Dim objNS As Outlook.NameSpace
Set olApp = Outlook.Application
Set objNS = olApp.GetNamespace("MAPI")
' default local Inbox
Set Items = objNS.GetDefaultFolder(olFolderInbox).Items
@AlexKorsakov
AlexKorsakov / file.iss
Created December 19, 2016 23:59
Installiation file
; Скрипт создан при помощи мастера создания скриптов.
; СМ. ДОКУМЕНТАЦИЮ ДЛЯ ИЗУЧЕНИЯ ДЕТАЛЕЙ ОТНОСИТЕЛЬНО СОЗДАНИЯ ФАЙЛОВ СКРИПТА INNO SETUP!
[Setup]
AppName=PowerMgmntServer
AppVerName=PowerManagementServiceServer 1.0
AppPublisher=Alex Korsakov
DefaultDirName={pf}\PowerMgmntServer
DefaultGroupName=PowerMgmntServer
OutputBaseFilename=setup
@AlexKorsakov
AlexKorsakov / Form2.cs
Created December 18, 2016 20:49
Second C# Wake On Lan Program
using System.Net;
using System.Net.NetworkInformation;
using System.Net.Sockets;
namespace WakeOnLan2
{
public class WakeOnLan
{
public static void Send(string TargetMac, string SourceIp)
{
@AlexKorsakov
AlexKorsakov / Form1.cs
Created December 18, 2016 20:48
C# Wake On Lan Program
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;