This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const tryIndices = [0, 1, 2, 3] | |
| let controllerIndex = 0 | |
| for (const i of tryIndices) { | |
| const config = await SteamClient.Input.GetConfigForAppAndController(appId, i) | |
| if (config?.bConfigurationEnabled) { | |
| controllerIndex = i | |
| break | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Intercept ALL SteamClient calls to find what IPC fires | |
| const _orig = SteamClient.sendMessage ?? SteamClient.Send | |
| // OR spy on the Apps namespace | |
| Object.keys(SteamClient).forEach(ns => { | |
| Object.keys(SteamClient[ns] ?? {}).forEach(fn => { | |
| if (typeof SteamClient[ns][fn] === 'function') { | |
| const orig = SteamClient[ns][fn].bind(SteamClient[ns]) | |
| SteamClient[ns][fn] = (...args) => { | |
| console.log(`SteamClient.${ns}.${fn}`, args) | |
| return orig(...args) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # WSL2 network port forwarding script v1 | |
| # for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell, | |
| # for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter. | |
| # written by Daehyuk Ahn, Aug-1-2020 | |
| # Display all portproxy information | |
| If ($Args[0] -eq "list") { | |
| netsh interface portproxy show v4tov4; | |
| exit; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export type Await<T> = T extends PromiseLike<infer U> ? Await<U> : T; | |
| export type IsPromise<T> = PromiseLike<infer U> ? true : false; | |
| export type Length<T> = T extends { length: infer L } ? L : never; | |
| export type KeysOfType<O, T> = { | |
| [K in keyof O]: O[K] extends T ? K : never; | |
| }[keyof O]; | |
| // ConvertLiterals would convert literal types like `1337` to their base type like `number` if set to true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <key name="Software"> | |
| <key name="ConEmu"> | |
| <key name=".Vanilla" modified="2021-02-11 00:25:29" build="210128"> | |
| <value name="StartType" type="hex" data="02"/> | |
| <value name="CmdLine" type="string" data=""/> | |
| <value name="StartTasksFile" type="string" data=""/> | |
| <value name="StartTasksName" type="string" data="{Shells::cmd}"/> | |
| <value name="StartFarFolders" type="hex" data="00"/> | |
| <value name="StartFarEditors" type="hex" data="00"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Check these threads before proceeding: | |
| # https://github.com/microsoft/WSL/discussions/5857 | |
| # https://github.com/microsoft/WSL/issues/5821 | |
| if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { | |
| $CmdLine = "-File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments | |
| Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CmdLine | |
| Exit | |
| } | |
| # Restart the Host Network Service | |
| Restart-Service -Force -Name hns |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #ifndef SIGNALS_H | |
| #define SIGNALS_H | |
| #include <functional> | |
| #include <list> | |
| #include <memory> | |
| template <typename... Args> | |
| class ConnectionItem | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <SFML/Graphics.hpp> | |
| #include <Windows.h> | |
| #include <Dwmapi.h> | |
| #pragma comment (lib, "Dwmapi.lib") | |
| int main() | |
| { | |
| sf::RenderWindow window(sf::VideoMode(1280, 720), "Transparent Window"); |
NewerOlder