Skip to content

Instantly share code, notes, and snippets.

View BirukTes's full-sized avatar
🎯
Focusing

Biruk Tes BirukTes

🎯
Focusing
  • Scotland
View GitHub Profile
@asmoore82
asmoore82 / SuperPaste.ahk
Last active July 27, 2022 16:42
AutoHotKey script to use any clipboard manager to store encrypted passwords.
; SuperPaste - Encrypt/Decrypt/Autotype the clipboard contents
; - Most useful with a separate clipboard manager, hopefully should work with any
; - RC4 with salt is used for encryption, NOTE THAT THIS IS *NOT* STRONG ENCRYPTION! Its purpose is just
; - to prevent the plaintext password from sitting on the clipboard
; - to prevent the plaintext password from being stored in the clipboard manager files
; - to prevent anyone from easily viewing the plaintext either over the shoulder or on screenshare
; - A simple padding is added to the beginning and end of your plaintext to protect against accidentally decrypting
; and using an incomplete item, but this does not protect against items where the middle has been altered
; - To prevent anyone from walking up to your workstation and using these shortcuts to reveal your plaintext
; passwords, either close this script or set a blank or wrong encryption passwor
@rmi1974
rmi1974 / how_to_analyse_innosetup_installer_packges.md
Last active May 10, 2023 14:14
How to analyse Inno Setup installer packages #innosetup #debug #wine

How to analyse Inno Setup installer packages

Tools used

  • [innounp][1], the Inno Setup Unpacker
  • [IFPSTools][2], tools for working with RemObjects PascalScript files (mainly disassemble PascalScript)

Extract the installer package

Using the [Wargaming_Game_Center_Installer][3] as example. Also mentioned in [Wine Bugzilla #45600][4].

type
//
// Enumeration used to specify a .NET framework version
//
TDotNetFramework = (
DotNet_v11_4322, // .NET Framework 1.1
DotNet_v20_50727, // .NET Framework 2.0
DotNet_v30, // .NET Framework 3.0
DotNet_v35, // .NET Framework 3.5
DotNet_v4_Client, // .NET Framework 4.0 Client Profile
@andrewjk
andrewjk / gist:3186582
Created July 27, 2012 07:03
C# Pluralize method
/// <summary>
/// Attempts to pluralize the specified text according to the rules of the English language.
/// </summary>
/// <remarks>
/// This function attempts to pluralize as many words as practical by following these rules:
/// <list type="bullet">
/// <item><description>Words that don't follow any rules (e.g. "mouse" becomes "mice") are returned from a dictionary.</description></item>
/// <item><description>Words that end with "y" (but not with a vowel preceding the y) are pluralized by replacing the "y" with "ies".</description></item>
/// <item><description>Words that end with "us", "ss", "x", "ch" or "sh" are pluralized by adding "es" to the end of the text.</description></item>
/// <item><description>Words that end with "f" or "fe" are pluralized by replacing the "f(e)" with "ves".</description></item>