Skip to content

Instantly share code, notes, and snippets.

@jNizM
jNizM / AutoIt
Last active December 11, 2015 21:38
[AU3] Ping with log & traytip
Global $Online = False, $IP = 'www.google.de', $Intervall = 5, $Log_Path = @ScriptDir&'\'&$IP&'.txt'
While 1
$Timer = TimerInit()
$Ping = Ping($IP)
If $Ping > 0 Then
If $Online = False Then
$Online = True
FileWrite($Log_Path,'[ '&@MDAY&'/'&@MON&'/'&@YEAR&' | '&@HOUR&':'&@MIN&':'&@SEC&' ] '&$IP&' is online now!'&@CRLF)
;TrayTip('',$IP&' is online now!',10,1)
@jNizM
jNizM / gist:4663323
Last active December 11, 2015 21:38
[HTML] CoD4 config checker (Blacklist)
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Config Checker</title>
<style type="text/css">
body{background-color:#000}
.red{background-color:red}
.orange{background-color:orange}
.green{background-color:green}
@jNizM
jNizM / gist:4663336
Created January 29, 2013 10:29
[HTML] CoD4 config checker (Black- & Whitelist)
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Config Checker</title>
<style type="text/css">
body{background-color:#000}
.red{background-color:red}
.orange{background-color:orange}
.green{background-color:green}
@jNizM
jNizM / gist:5030548
Last active July 16, 2022 02:41
[AHK] Encrypt & Decrypt Data
; ===================================================================================
; AHK Version ...: AHK_L 1.1.09.03 x64 Unicode
; Win Version ...: Windows 7 Professional x64 SP1
; Script ........: En-Decrypt.ahk
; Description ...: Encrypt & Decrypt Data
; ===================================================================================
; GLOBAL SETTINGS ===================================================================
#NoEnv
@jNizM
jNizM / gist:5934292
Created July 5, 2013 12:43
[AHK] HDD Temperature
; ===================================================================================
; AHK Version ...: AHK_L 1.1.11.01 x64 Unicode
; Win Version ...: Windows 7 Professional x64 SP1
; Author ........: jNizM
; Script ........: HDD_Temp_Monitor.ahk
; Description ...: HDD Temp Monitor
; License .......: WTFPL
; ===================================================================================
; GLOBAL SETTINGS ===================================================================
@jNizM
jNizM / gist:6080135
Last active December 20, 2015 05:39
[AHK] CoD4 - delete black Punkbuster screenshots
; ===================================================================================
; AHK Version ...: AHK_L 1.1.11.02 x64 Unicode
; Win Version ...: Windows 7 Professional x64 SP1
; Description ...: Delete Black Screenshots
; Version .......: 2013.08.07-1722
; Author ........:
; License .......: WTFPL
; License URL ...: http://www.wtfpl.net/txt/copying/
; ===================================================================================
;@Ahk2Exe-SetName del_blackscreens
@jNizM
jNizM / gpu_memory_info.ahk
Last active May 16, 2019 17:36
[AHK] NVIDIA Graphics Memory Size and Usage in OpenGL
; ===============================================================================================================================
; Title .........: GPU_MEMORY_INFO
; AHK Version ...: 1.1.15.01 x64 Unicode
; Win Version ...: Windows 7 Professional x64 SP1
; Description ...: GPU_MEMORY_INFO
; NVIDIA Graphics Memory Size and Usage in OpenGL
; Version .......: v1.00
; Modified ......: 2014.06.27-2150
; Author(s) .....: jNIzM
; ===============================================================================================================================
@jNizM
jNizM / gist:f8c4f51fd1331d4f2def
Last active May 16, 2019 17:36
Class Globally unique identifier (GUID) / Universally unique identifier (UUID)
#NoEnv
; Test GUID
MsgBox % Unique.Global.Create() ; ==> {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}
test_guid1 := Unique.Global.Create()
test_guid2 := Unique.Global.Create()
MsgBox % Unique.Global.IsEqualGUID(test_guid1, test_guid1) ; ==> 1
MsgBox % Unique.Global.IsEqualGUID(test_guid1, test_guid2) ; ==> 0
@jNizM
jNizM / gist:16a68ff558222253add9
Created November 27, 2014 07:24
[AHK] BitCalc (Visual Bitwise Operations)
; GLOBAL SETTINGS ===============================================================================================================
;#Warn
#NoEnv
#SingleInstance Force
global WS_VSCROLL := 0x00200000
; GUI ===========================================================================================================================
@jNizM
jNizM / gist:79aa6a4b8ec428bf780f
Last active September 17, 2022 08:27
[AHK] AES Encryption (String)
/*
Update v0.4
Todo: - CryptSetKeyParam (KP_MODE with CBC [maybe CFB, ECB, OFB or CTS])
*/
MsgBox % enc := AES.Encrypt("Test String", "testpw", 256)
MsgBox % AES.Decrypt(enc, "testpw", 256)
Class AES
{