Skip to content

Instantly share code, notes, and snippets.

View pa-0's full-sized avatar

Peter Abbasi pa-0

  • Chicago
  • 17:27 (UTC -06:00)
View GitHub Profile
@pa-0
pa-0 / Question.md
Created November 15, 2024 12:08 — forked from ericoporto/Question.md
HTML Help Workshop is not available anymore, can I host it?

Apparently Microsoft just dropped the website that had HTML Help Workshop for download. But it is the only tool that fully properly generates .chm help files and I need it in one of my workflows in a CI system - right now things started to fail because the download vanished.

License wise, would I be violating anything if instead of downloading from Microsoft I downloaded from my own file host to run it? My file host would be exposed in the internet and I would not block people downloading it outside of my CI system if they wanted.


For reference, Microsoft's website download for HTML Help Workshop used to be here: https://www.microsoft.com/en-us/download/details.aspx?id=21138&ved=2ahUKEwi0_bGLxr_uAhWFB9QKHcUdCxIQFjAUegQIURAB&usg=AOvVaw1_oaw66rS-7sanf8ov-cbb

Other related websites, but the downloads are 404 now:

@pa-0
pa-0 / Dark.md
Created November 15, 2024 11:50 — forked from ericoporto/Dark.md
Win32 Dark Mode

Dark Mode APIs.

API Signatures.

ShouldAppsUseDarkMode()

Checks whether system is using dark mode or not.
Signature:

using fnShouldAppsUseDarkMode = bool (WINAPI*)(); // ordinal 132

AllowDarkModeForWindow(In HWND hWnd, In bool allow)

@pa-0
pa-0 / AutoHotKey Simple Title Animation
Created November 10, 2024 23:35 — forked from KhalidFawzy/AutoHotKey Simple Title Animation
Little script to animate gui title in AutoHotKey
Title1 = Simple Title Animation
Title2 = Created by: Khalid Fawzy
SetTimer, AnimateTitle, 100
Gui +AlwaysOnTop
Gui +HWndGUI_ID
Gui, Show, Center h100 w400, .
Return
@pa-0
pa-0 / Class Dock.ahk
Created November 10, 2024 23:33 — forked from Visionary1/Class Dock.ahk
Docks a window to another
/*
Class Dock
Attach a window to another
Author
Soft (visionary1 예지력)
version
0.1 (2017.04.20)
0.2 (2017.05.06)
@pa-0
pa-0 / the-programmers-idea.md
Created November 7, 2024 21:28 — forked from martinusso/the-programmers-idea.md
The Programmers Idea

Numbers

Text

  • Reverse a String – Enter a string and the program will reverse it and print it out.
  • Pig Latin – Pig Latin is a game of alterations played on the English language game. To create the Pig Latin form of an English word the initial consonant sound is transposed to the end of the word and an ay is affixed (Ex.: "banana" would yield anana-bay). Read Wikipedia for more information on rules.
  • Count Vowels – Enter a string and the program counts the number of vowels in the text. For added complexity have it report a sum of each vowel found.
  • Check if Palindrome – Checks if the string entered by the user is a palindrome. That is that it reads the same forwards as backwards like “racecar”
  • Count Words in a String – Counts the number of individual words in a string. For added complexity read these strings in from a text file and generate a summary.
@pa-0
pa-0 / ToggleDarkMode.ps1
Created November 7, 2024 15:54 — forked from lukejjh/ToggleDarkMode.ps1
PowerShell script that toggles dark mode in Windows 10/11, for both apps and system.
$k = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize"
$v = (Get-ItemProperty -Path $k).SystemUsesLightTheme -bxor 1
Set-ItemProperty -Path $k -Name "SystemUsesLightTheme" -Value $v
Set-ItemProperty -Path $k -Name "AppsUseLightTheme" -Value $v
@pa-0
pa-0 / ToastNotification_Windows10.ps1
Created November 5, 2024 20:13 — forked from IISResetMe/ToastNotification_Windows10.ps1
Windows 10 toast notification sample
function New-ToastNotification
{
param(
[Parameter(Mandatory=$true)]
[string]$Title,
[Parameter(Mandatory=$false)]
[string[]]$Message,
[Parameter(Mandatory=$false)]
@pa-0
pa-0 / ToastNotification_Windows10.ps1
Created November 5, 2024 20:13 — forked from Onurtag/ToastNotification_Windows10.ps1
Windows 10 toast notification sample
#Original source: https://gist.github.com/IISResetMe/79b38678ecf6339ed4f222caeae8d490
function Show-ToastNotification {
<#
.Synopsis
Show a notification toast.
.DESCRIPTION
Show a notification toast.
.EXAMPLE
Show-ToastNotification -Title "Toast Title" -Message "Message 11111","Message 22222" -Thumbnail "C:\test.png" -AppName "Toast App Name"
.EXAMPLE
@pa-0
pa-0 / ExploreEverything.ahk
Last active November 5, 2024 20:07 — forked from Onurtag/ExploreEverything.ahk
ExploreEverything.ahk: An autohotkey (ahk v1) script that allows you to search the current explorer folder, your desktop and more using Everything
/*
SCRIPT-NAME: ExploreEverything.ahk
SOURCE-LINK: https://gist.github.com/Onurtag/166df8b88744c48e93a64b7c89652e0a
DESCRIPTION: An ahk v1 script that allows you to search the current folder, your desktop and more using Everything
*/
#SingleInstance Force
#NoTrayIcon ;If you want the tray icon to be visible; comment this line by adding a semicolon ; in front of the #. Example: ;#NoTrayIcon
EverythingPath := "C:\Program Files\Everything\Everything.exe" ;Set this to your everything.exe path. Keep the quotes.
@pa-0
pa-0 / EmbedPowerShell.ahk
Last active November 5, 2024 17:25 — forked from rabel001/EmbedPowerShell.ahk
AutoHotKey Embed PowerShell
/*
SCRIPT-NAME: EmbedPowerShell.ahk
SOURCES-URL: https://gist.github.com/rabel001/6317a5321f8df50b213928b8813e47cf
DESCRIPTION: Embed PowerShell in parent window
REQUIREMENT: class_ImageButon.ahk
CLASSES-URL: https://github.com/AHK-just-me/Class_ImageButton
*/
#SingleInstance, force
SetTitleMatchMode 2