Skip to content

Instantly share code, notes, and snippets.

Avatar

Mohamed ElShahawi ExtremeGTX

  • Germany
View GitHub Profile
@ExtremeGTX
ExtremeGTX / repo-rinse.sh
Created Apr 16, 2020 — forked from nicktoumpelis/repo-rinse.sh
Cleans and resets a git repo and its submodules
View repo-rinse.sh
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive
@ExtremeGTX
ExtremeGTX / ProcessExtensions.cs
Created Jul 26, 2018 — forked from heri16/ProcessExtensions.cs
Powershell / C# class to start a GUI Windows Process on the desktop/session of any logged-in RDP/TS user.
View ProcessExtensions.cs
using System;
using System.Runtime.InteropServices;
using Microsoft.Win32.SafeHandles;
using System.IO;
namespace heri16
{
/// <summary>
/// Static class to help Start a GUI/Console Windows Process as any user that is logged-in to an Interactive Terminal-Session (e.g. RDP).