Skip to content

Instantly share code, notes, and snippets.

@viktor-svub
viktor-svub / C#Job.cs
Created January 29, 2020 07:41
C# Job for child like processes
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
// https://stackoverflow.com/a/9164742
// usage:
// var process = new Process();
// var job = new Job();
// job.AddProcess(process.Handle);
namespace JobManagement
@viktor-svub
viktor-svub / aes_example.cs
Created August 16, 2018 11:09 — forked from mark-adams/aes_example.cs
AES String Encryption (CBC) Example Code for C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
namespace aes_example
{
using System;
@viktor-svub
viktor-svub / cleanup-win10.ps1
Created August 15, 2018 12:16 — forked from halkyon/cleanup-win10.ps1
Cleanup Windows 10 Powershell script
##
## Windows 10 cleanup script.
## Remove dodgy tracking settings, unneeded services, all apps, and optional features that come with Windows 10. Make it more like Windows 7.
##
## Instructions
## 1. Start Windows 10 installation. At the first point you are asked for input during Windows 10 setup, hit Shift-F10. This gives you a command prompt.
## 2. Now mount a network volume, or insert a USB key with this script on it and change directory to it. e.g.
## net use x: \\mynetworkmount
## cd x:
## 3. Run the script