Skip to content

Instantly share code, notes, and snippets.

@Saturnous
Saturnous / Install-RoyalTS_UseSavedCred.ps1
Last active December 28, 2023 15:12
Install-RoyalTS_UseSavedCred
<#
Using Assembly System.Windows
Using Assembly UIAutomationProvider
Using Assembly UIAutomationClient
Add-Type -TypeDefinition @"
using System;using System.Collections.Generic;using System.Runtime.InteropServices;public static class KBEmulator{public enum InputType:uint{INPUT_MOUSE=0,INPUT_KEYBOARD=1,INPUT_HARDWARE=3}[Flags]internal enum KEYEVENTF:uint{KEYDOWN=0x0,EXTENDEDKEY=0x0001,KEYUP=0x0002,SCANCODE=0x0008,UNICODE=0x0004}[Flags]internal enum MOUSEEVENTF:uint{ABSOLUTE=0x8000,HWHEEL=0x01000,MOVE=0x0001,MOVE_NOCOALESCE=0x2000,LEFTDOWN=0x0002,LEFTUP=0x0004,RIGHTDOWN=0x0008,RIGHTUP=0x0010,MIDDLEDOWN=0x0020,MIDDLEUP=0x0040,VIRTUALDESK=0x4000,WHEEL=0x0800,XDOWN=0x0080,XUP=0x0100}[StructLayout(LayoutKind.Sequential)]public struct lpInput{internal InputType type;internal InputUnion Data;internal static int Size{get{return Marshal.SizeOf(typeof(lpInput));}}}[StructLayout(LayoutKind.Explicit)]internal struct InputUnion{[FieldOffset(0)]internal MOUSEINPUT mi;[FieldOffset(0)]internal KEYBDINPUT ki;[FieldOffset(0)]in
@Saturnous
Saturnous / resume.json
Last active March 14, 2022 20:11
resume.json
{
"basics": {
"name": "Mario Grunert",
"label": "IT Consultant",
"picture": "",
"email": "b.mario.grunert@web.de",
"phone": "+491785741149",
"website": "https://mgtechhead.blogspot.com",
"summary": "Techhead",
"location": {