Skip to content

Instantly share code, notes, and snippets.

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup]
"AllowUpgradesWithUnsupportedTPMOrCPU"=dword:00000001
@Niktendo
Niktendo / virtualcam.cmd
Last active November 26, 2023 23:32
Virtual Cam Launcher for scrcpy's webcam feature
@ECHO OFF
title Virtual Cam Launcher - by Niktendo @2023
adb disconnect
adb kill-server
rem taskkill /f /im scrcpy.exe
taskkill /f /im obs64.exe
cls
set /P c=Pairen [J/N]?
@Niktendo
Niktendo / Uploads.md
Last active March 7, 2023 15:59
View upload playlist from YouTube channels even if they're hidden
@Niktendo
Niktendo / setup-pwsh-legacy.ps1
Last active September 24, 2022 15:39
Win7+-Scripts
$netshare = "H:\Neuer Ordner"
$host.UI.RawUI.WindowTitle = "Herunterladen der Abhaengigkeiten..."
$params="%*"
function Expand-ZIPFile($file, $destination)
{
$shell = new-object -com shell.application
$zip = $shell.NameSpace($file)
foreach($item in $zip.items())
{
$shell.Namespace($destination).copyhere($item)
@Niktendo
Niktendo / L_download-adb-linux.ps1
Last active May 31, 2024 17:24
simple platform-tools installer and more
$ErrorActionPreference = "Stop";
$toolname="platform-tools"
$toolurl='https://dl.google.com/android/repository/platform-tools-latest-linux.zip'
$fileending='.zip'
$host.UI.RawUI.WindowTitle = "Installing $toolname..."
$ErrorActionPreference = "Ignore";
& ~/$toolname/adb kill-server
$ErrorActionPreference = "Stop";
<Configuration ID="d7218e3b-4d39-4777-8460-1d069509ab7a">
<Add OfficeClientEdition="64" Channel="PerpetualVL2021" MigrateArch="TRUE">
<Product ID="Standard2021Volume">
<Language ID="de-de" />
<ExcludeApp ID="Access" />
<ExcludeApp ID="Groove" />
<ExcludeApp ID="Lync" />
<ExcludeApp ID="OneDrive" />
<ExcludeApp ID="Teams" />
<ExcludeApp ID="Bing" />
@Niktendo
Niktendo / Meltdown_Spectre-Script.cmd
Last active September 28, 2022 16:46
Meltdown/Spectre - CVEs
@echo off
:: BatchGotAdmin
::-------------------------------------
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
@Niktendo
Niktendo / Run.cmd
Last active August 18, 2023 07:51
ADB + Fastboot-Installer - Run
@echo off
cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "wt", "cmd.exe /k cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
if exist "%USERPROFILE%\Installer\" (
cd "%USERPROFILE%\Installer\"
pwsh -nop -c "iex(New-Object System.Net.WebClient).DownloadString('https://gist.github.com/Niktendo/cc60d1c78ac793d3b6ba81103c60730d/raw/tool.ps1')"
exit
) else (
winget install --id=9P95ZZKTNRN4 -e
pwsh -nop -c "iex(New-Object Net.WebClient).DownloadString('https://gist.github.com/Niktendo/38108637563a48b31e175a2ad27369f9/raw/Download.ps1')"
@Niktendo
Niktendo / tool.cmd
Last active March 26, 2022 10:59
Fastboot-Tool
@echo off
title Installer
CLS
:MENU
ECHO.
ECHO ...............................................
ECHO Herzlich Willkommen zum Installer!
ECHO ...............................................
ECHO.
ECHO ----------------------------------------------
@Niktendo
Niktendo / list.txt
Last active May 3, 2020 19:21
ADB + Fastboot-Installer - Tools
https://dl.google.com/android/repository/platform-tools-latest-windows.zip
https://drive.google.com/uc?id=1sZtjBAq8-lzqC3yQcSDq-MjXtxAWZLLW&export=download