Skip to content

Instantly share code, notes, and snippets.

@Citillara
Citillara / Program.cs
Created February 6, 2024 19:20
Keyboard volume intercepter
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace VolumeFucker
using HarmonyLib;
using System;
using System.Reflection;
using TaleWorlds.CampaignSystem;
using TaleWorlds.Localization;
namespace BannerlordCitillaraTweaks.Patches
{
internal class BannerKingsPatch
{
@Citillara
Citillara / PartyUpgraderCampaignBehavior.cs
Created December 16, 2023 22:55
Fixed version of bannerlord upgrader
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TaleWorlds.CampaignSystem.Actions;
using TaleWorlds.CampaignSystem.CampaignBehaviors;
using TaleWorlds.CampaignSystem.CharacterDevelopment;
using TaleWorlds.CampaignSystem.ComponentInterfaces;
using TaleWorlds.CampaignSystem.MapEvents;
@Citillara
Citillara / PartyUpgraderCampaignBehavior.cs
Created October 25, 2023 18:14
Fixing the divide by zero when troop have the same wage during their upgrade
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TaleWorlds.CampaignSystem.Actions;
using TaleWorlds.CampaignSystem.CampaignBehaviors;
using TaleWorlds.CampaignSystem.CharacterDevelopment;
using TaleWorlds.CampaignSystem.ComponentInterfaces;
using TaleWorlds.CampaignSystem.MapEvents;
$source = @"
using System;
using System.IO;
using System.Security.AccessControl;
using System.Security.Principal;
public class Program
{
public static void Main()
{
netsh interface ip reset all
netsh winsock reset all
net stop wuauserv
sc config wuauserv start= disabled
In shell
All packages
pm list packages -f
Delete package
pm uninstall -k --user 0 com.samsung.android.bixby.wakeup
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace Tlk
{
class TlkFile
{
@Citillara
Citillara / WindowsAppKeys.md
Created November 28, 2018 16:24
List of media keys to override in Windows registry

Registry location

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\xx

Where xx is the key

Example configs

Strings

"Association"="http"