Skip to content

Instantly share code, notes, and snippets.

View Skibisky's full-sized avatar

Skibisky

  • Australia
View GitHub Profile
@Skibisky
Skibisky / alias.bat
Last active June 12, 2018 04:01
Alias for Windows Command Prompt
@echo off
if not exist %~dp0__aliases.bat (echo echo Aliases are Enabled > %~dp0__aliases.bat)
if [%~1] == [] GOTO PRINTOUT
if "%~1" == "_startup_" GOTO DEFINE
if "%~1" == "/remove" GOTO REMOVE
if [%~2] == [] GOTO SEARCH
:: Check to make sure the DOSKEYs are added on every CMD
REG QUERY "HKCU\Software\Microsoft\Command Processor" /v AutoRun >nul 2>&1
if %ERRORLEVEL% == 0 (
@Skibisky
Skibisky / MessagePasser.cs
Created February 27, 2019 06:23
Working example for sending a string between C# handles (Controls/Forms) using WM_COPYDATA.
/* ===================
* WM_COPYDATA example
* ===================
*
* Working example for sending a string between C# handles (Controls/Forms) using WM_COPYDATA.
*
* TODO:
* -----
* * Add more info
* * Make generic struct copying work
@Skibisky
Skibisky / winacme_cPanel.ps1
Last active June 5, 2025 05:21
Win-Acme cPanel plugin script, expanded upon work by tmr-cf found at https://github.com/rmbolger/Posh-ACME/issues/376
<#
.SYNOPSIS
Add or remove a DNS TXT record to cPanel
.DESCRIPTION
Note that this script is intended to be run via the install script plugin from win-acme..
This script was copied and modified from the Posh-ACME repository Issue Tracker.
Please reference their license terms for use/modification: https://github.com/rmbolger/Posh-ACME/blob/main/LICENSE
Credit for the original script goes to tmr-cf, Thanks!