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
namespace Tools; | |
using Microsoft.Win32.SafeHandles; | |
using System.ComponentModel; | |
using System.Runtime.InteropServices; | |
using System.Security.Principal; | |
/// <summary> | |
/// Impersonation of a user. Allows to execute code under another | |
/// user context. |
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
namespace Tools; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
/// <summary> | |
/// Wrapper for the "NET USE" functionality. | |
/// Connect to a network resource, e.g. a network share under a different user. | |
/// </summary> |
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
namespace Extensions | |
{ | |
using System; | |
using System.Globalization; | |
using System.Threading; | |
public static class FileSizeExtensions | |
{ | |
public static string FormatFileSize( | |
this long fileSize, |
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
namespace ZetaHelpdesk.MainBlazor.Code.Components | |
{ | |
using System; | |
using System.Timers; | |
// https://wellsb.com/csharp/aspnet/blazor-timer-navigate-programmatically/ | |
public sealed class BlazorTimer | |
{ | |
private Timer _timer; |
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
namespace ZetaProducer.RuntimeGui.ExtendedWebBrowser | |
{ | |
using JetBrains.Annotations; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Windows.Forms; | |
using Zeta.VoyagerLibrary.Common.IO; |
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
//css_nuget -force:3600 -ng:"-Source https://nuget.org/api/v2/" ZetaLongPaths | |
using ZetaLongPaths; | |
namespace Zeta | |
{ | |
/* | |
=========================== | |
Zeta XCOPY. |
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
namespace uksqlcmd | |
{ | |
using System; | |
using System.Data.SqlClient; | |
using System.IO; | |
using System.Text; | |
internal static class Program | |
{ | |
private static int Main(string[] args) |
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
namespace OracleRRConverter | |
{ | |
// Takes an Oracle-generated SQL script file and converts something like | |
// to_date('02.10.18','DD.MM.RR') to something like CONVERT(DATETIME,'02.10.2018',126). | |
// https://dba.stackexchange.com/q/244722/42 | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; |
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
namespace ZetaColorEditor.Colors; | |
using System; | |
using System.Drawing; | |
/// <summary> | |
/// Provides color conversion functionality. | |
/// </summary> | |
/// <remarks> | |
/// http://en.wikipedia.org/wiki/HSV_color_space |
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
//css_import credentials; | |
using System; | |
using System.Net; | |
using System.Reflection; | |
using System.Diagnostics; | |
using System.Windows.Forms; | |
using System.Text; | |
using System.IO; | |
using CSScriptLibrary; | |
using csscript; |
NewerOlder