Skip to content

Instantly share code, notes, and snippets.

View dragokas's full-sized avatar

Alex Dragokas dragokas

View GitHub Profile
#include <iostream>
#include <stdio.h>
#include <windows.h>
#include <vector>
#include <Iads.h>
#include <map>
enum ACCESS_OBJECT_TYPE
{
ACCESS_OBJECT_FILE,
@dragokas
dragokas / ..runasTI.bat
Created November 11, 2020 16:03 — forked from AveYo/..runasTI.bat
Lean and Mean runas TrustedInstaller / System compact snippet to easily integrate in your batch scripts
@echo off & title AveYo`s :runasTI snippet usage showcase (final)
:: First handle command line parameters (for example via Send to) to run as TrustedInstaller AllPrivileges
if /i "%~dp0" equ "%APPDATA%\Microsoft\Windows\SendTo\" call :runasTI 1 %* &exit/b
echo(
echo Fully portable, compact, plain-text runas TrustedInstaller or SYSTEM snippet v20191010
echo ========================================================================================
echo - now also supports short common programs names such as cmd, regedit, powershell..
echo - now sets console buffer so that the scrollbars are visible!
@dragokas
dragokas / .Close_Handles_ContextMenu.bat
Created November 11, 2020 16:03 — forked from AveYo/.Close_Handles_ContextMenu.bat
'Close Handles' context menu to unlock files or folders - https://www.youtube.com/watch?v=BEcDwKTyAYY
@echo off &Title 'Close Handles' context menu to unlock files or folders by AveYo v2019.09.27
:: changelog: fix dl; add /accepteula; check S-1-5-19 for admin; ask for admin rights to catch system handles; auto-hide window
:: add_remove whenever script is run again
reg query "HKCU\Software\Classes\Directory\shell\CloseHandles" /v MuiVerb >nul 2>nul && (
reg delete HKCU\Software\Classes\Directory\shell\CloseHandles /f >nul 2>nul
reg delete HKCU\Software\Classes\Drive\shell\CloseHandles /f >nul 2>nul
reg delete HKCU\Software\Classes\*\shell\CloseHandles /f >nul 2>nul
color 0c &echo. &echo REMOVED! Run script again to add 'Close Handles' context menu
timeout /t -1 &color 0f &title %COMSPEC% &exit/b
@dragokas
dragokas / !BlackLess.md
Created November 11, 2020 16:02 — forked from AveYo/!BlackLess.md
A High Contrast based neutral / less blues tone Windows Dark / Light Theme by AveYo

Blackless.theme

@dragokas
dragokas / dns.md
Created December 20, 2017 12:23 — forked from roge/dns.md
Public DNS Servers

DNS.md

A list of reasonably reliable DNS servers that I've personally tested to ensure that they fully support DNSSEC and do not hijack NXDOMAIN responses.

*: The servers in this list were last tested November 13, 2017. I make no guarantee that they will continue to function in a reliable and compliant manner in the future.

IPv4