Skip to content

Instantly share code, notes, and snippets.

View 1ijack's full-sized avatar
💭
I may be slow to respond.

jxe 1ijack

💭
I may be slow to respond.
View GitHub Profile
@1ijack
1ijack / wmic_localTime.cmd
Last active January 23, 2019 05:31
Query wmic for OS Localtime
:: by JaCk | Release 01/22/2019 | https://gist.github.com/1ijack/e095d3b15e133b50db692a857d92961b | wmic_localTime.cmd -- Query wmic for OS Localtime
:: based on https://ss64.com/nt/syntax-gmt.html
@call :func_wmic_localTime bam
@if defined bam @echo/%bam%
@set "bam="
@exit /b
:func_wmic_localTime
@set "#tA=%~1"
@if not defined #tA (@goto:eof) else @set "#tA="
# -------------------------------------------------- #
#### jxe ~ Custom Changes ####
# - --- - #
#- -- --- ---- ----- ------ ------- -------- ---------
# ~ Basic Settings
# ----------------------------------------------------
# - Name - - Value - Notes
# ----------------------------------------------------
--idle=yes # Allow Idle, do not close
@1ijack
1ijack / disable_multicast.cmd
Last active October 19, 2023 19:04
change DNSClient/LLMNR behavior [enable/disable/restoreDefault] using windows registry. Restart maybe required for the settings to take effect.
:: by JaCk (script struture/functions only) | Release 09/04/2018 | url https://gist.github.com/1ijack/bd5ed0da9bcaebb2a14e3698cefe7a49 | disable_multicast.cmd -- change DNSClient/LLMNR behavior [enable/disable/restoreDefault] using windows registry. Restart maybe required for the settings to take effect.
:: Original source -- https://computerstepbystep.com/turn-off-multicast-name-resolution.html#CMD
@goto:argParser
rem - JaCkd Note: this seems backwards, but per site instructions: Enable = 0; Disable = 1
rem ~ Posted on [unknown] at url [https://computerstepbystep.com/turn-off-multicast-name-resolution.html#PowerShellScript]
rem *Description*: Local Link Multicast Name Resolution (LLMNR) is a secondary name resolution protocol. Queries are sent over the Local Link, a single subnet, from a client machine using Multicast to which another client on the same link, which also has LLMNR enabled, can respond. LLMNR provides name resolution in scenarios in which conventional DNS name resolution is not p
@1ijack
1ijack / PrettyDebug.bat
Last active August 14, 2018 03:41
Remove/Restore prompt console settings for easier visiblity/debug of batch files in 2 lines
rem - Name: PrettyDebug
rem - Description: Removes Prompt settings for easier visiblity/debug of batch files
rem - srcURL: jxeHead -- https://gist.github.com/1ijack/e741ab130a8a389cf09d870c440f0edd
rem Add to script or run the next line to archive/clear prompt settings and turn echo on
(((@echo on) &if defined prompt set "restore{prompt}=%prompt%") &set "prompt=$") & rem debug pretty print
rem Add to script or run the next line to restore prompt settings and turn echo off
@(((echo off) &if defined restore{prompt} set "prompt=%restore{prompt}%") &set "restore{prompt}=") & rem tnirp ytterp gubed
@1ijack
1ijack / gist:31d3f7abd5e03b0f089ade5bdda458d9
Created August 9, 2018 14:24 — forked from D3MZ/gist:3915286
Evolution of the Programmer
High School/Jr.High
10 PRINT "HELLO WORLD"
20 END
First year in College
program Hello(input, output)
begin
writeln('Hello World')
@1ijack
1ijack / Procamp.hlsl
Created August 8, 2018 20:56
A modified mpc-hc Procamp.hlsl shader config which oversaturates,overcontrasts,and underbrightens based on the jxness value
/*
* (C) 2003-2006 Gabest
* (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-HC.
*
* MPC-HC is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
@1ijack
1ijack / helpGen.cmd
Last active August 6, 2020 19:23
net helpmsg cmd batchfile
@rem :: by Jack | Release 08/01/2018 | https://gist.github.com/1ijack/bed4a28947265789eadd7c397b597215 | helpGen.cmd -- generates a help msg list of all valid net helpmsg command IDs. Contains both interactive console commands and can be called as a batch-file
@if exist "%~f0" goto :batMeh
@rem Interactive console command to list all valid net help messages
@(for /l %A in (1,1,10000) do @for /f "delims=" %B in ('net helpmsg %A') do @echo/net helpmsg %A: %B) 2>nul
:batMeh Batch file command to list all valid net help messages
@(for /l %%A in (1,1,10000) do @for /f "delims=" %%B in ('net helpmsg %%A') do @echo/net helpmsg %%A: %%B) 2>nul
@1ijack
1ijack / Flash_Player_Remover_on_Win10.bat
Created August 1, 2018 11:49 — forked from ur0n2/Flash_Player_Remover_on_Win10.bat
Flash_Player_Remover_on_Win10.bat
echo off
cls
echo [-] Flash Player Remover for Windows 10 with Edge Browser.
takeown /f C:\Windows\SysWOW64\Macromed\Flash\*.*
takeown /f C:\Windows\System32\Macromed\Flash\*.*
cacls C:\Windows\SysWOW64\Macromed\Flash\*.* /E /T /G %UserDomain%\%UserName%:F
cacls C:\Windows\System32\Macromed\Flash\*.* /E /T /G %UserDomain%\%UserName%:F
@1ijack
1ijack / dump_batch_labels.bat
Last active August 1, 2018 18:26
print all labels script -- [batch function call label]
:: by JaCk | Release 08/01/2018 | https://gist.github.com/1ijack/52383383af6abc7aba47e98bce1a93e8 | dump_batch_labels.bat -- A Quick Example script using an internal function to dump all the scripts call/goto labels
@if exist "%~f0" call :dump_batch_labels "%~f0"
@goto :eof
:: Usage :: dump_batch_labels "path\myBatchfile.cmd" "D:\path\myBatchfile.bat"
@rem Displays all call/goto/function labels found in a [batch] file except self-function-name OR manually excluded in function below
:dump_batch_labels
@if "%~1" equ "" goto :eof
@( dir /b /a %1 ) 2>nul 1>nul && @for /f "tokens=1*" %%A in ('%SystemRoot%\System32\findstr.exe /rv "\<[:]exclusionFilter\> \<\%~0\> \<findstr\> \<rem\> \<[:][:]\>" "%~1" ') do @echo/%%A|"%SystemRoot%\System32\findstr.exe" /ri "^:[^:].*\> \<.[^::]:"
@shift /1 &@goto %~0
@1ijack
1ijack / FileSizeTimeArray.cmd
Last active May 30, 2018 12:35
Generate a variable Array of all the files size+time+path+name, while printing any duplicates
rem - author: JaCk [https://github.com/1ijack]
rem - Name: FileSizeTimeArray.cmd
rem - Description: --- To be Run interactive command line only ---
rem - Description: Generate a variable Array of all the files size+time+path+name, while printing any duplicates
rem - Description: varName syntax - "file{bytes[YYYYMMDDhhmmssPA]}=bytes|YYYYMMDDhhmmssPA|F:\ull\path\filename.extension"
rem - srcURL: jxeHead
rem - srcURL: https://gist.github.com/1ijack/cb727c6951d88d105e256fd1675bdb96
rem clear list
@for /f "tokens=1 delims==" %F in ('set file{') do @set "%F="