Skip to content

Instantly share code, notes, and snippets.

View JustinBrow's full-sized avatar

Justin JustinBrow

View GitHub Profile
@mmotti
mmotti / Set-DarkTheme.ps1
Last active September 18, 2024 13:02
Set Windows 11 to use Dark Mode. Particularly useful as part of a logon script for Windows Sandbox.
$strRegJson = @"
[
{
"RegPath": "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes",
"Name": "CurrentTheme",
"Type": "STRING",
"Value": "C:\\Windows\\resources\\Themes\\dark.theme"
},
{
"RegPath": "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Themes\\HighContrast",
@0xEva
0xEva / IDA Pro lumen.abda.nl public Lumina server.md
Last active April 10, 2025 07:29
Setting up IDA Pro to use lumen.abda.nl public Lumina server

Compiling socat on Cygwin

  1. Get a copy of socat source code here http://www.dest-unreach.org/socat/
  2. Make sure to install gcc-core, libssl-devel, make
  3. In your Cygwin terminal, run ./configure --enable-openssl-base --enable-openssl-method
  4. make optionally make install

Set up IDA Pro to use lumen.abda.nl public Lumina server

  1. Get a copy of lumen.abda.nl's certificate here https://abda.nl/lumen/hexrays.crt
  2. Change PATH_TO_IDA in ida_abda.nl_lumen.bat then run it
  3. Go to Options -> General -> Lumina, set server addr to 127.0.0.1, port 1234, Username guest, Password guest
@amigus
amigus / ByteCalculationFunctions.ps1
Last active November 26, 2024 21:11
Byte Calculation Functions; use: Invoke-Expression (&{curl -Ls https://mig.us/bcfps1 | Out-String}); (44040192 | bytesfromk | bytestogigs)
function ConvertFrom-BytesByFactor {
[CmdletBinding()]
param(
[Parameter(Mandatory)][int]$Factor,
[Parameter(Mandatory, ValueFromPipeline)][Int64]$Amount
)
process {
Write-Debug ("Rounding the result of $Amount * 1024 ^ $Factor")
[Convert]::ToInt64([Math]::Round($Amount * [Math]::Pow(1024, $Factor)))
}
@Yoticc
Yoticc / FreopenInCSharp
Created October 11, 2023 12:31
C# alternative for "freopen("CONIN$")"
void Main()
{
AllocConsole();
SetupIn();
SetupOut();
Console.WriteLine("Output something");
var input = Console.ReadLine();
}
@Yoticc
Yoticc / WAVWriter
Created August 29, 2023 07:23
WAVWriter
using System.Runtime.InteropServices;
/* Example start */
var data = new short[240000];
for (var i = 0; i < data.Length; i++)
data[i] = (short)((i % short.MaxValue) * 20);
var path = @"C:\a.wav";
var bytes = WAV.GetBytes(ChannelType.Mono, 44000, data);
@snightshade
snightshade / gshade_to_reshade_guide.md
Last active June 30, 2024 00:56
GShade -> ReShade migration guide for FFXIV

How To Move To ReShade From GShade

(a guide by sylvie (@lostkagamine). tested, should work fine.)

(Korean version / 한국어 버전 / Chinese version / 中文版)

New: FAQ has been updated for ReShade 5.7.0 features.

If you are having issues like the screen turning black, read the mini-FAQ at the bottom of this document!

0. Don't uninstall GShade yet!

Uninstall Microsoft Edge

Important

Working on the latest supported Windows versions. Run Windows Update before following this guide.

1. Open Powershell > RUN AS ADMIN

2. Paste in irm https://gist.github.com/ave9858/c3451d9f452389ac7607c99d45edecc6/raw/UninstallEdge.ps1 | iex and press enter

3. Microsoft Edge will be completely uninstalled.

# One time setup
if (-not (Get-Package 'Portable.BouncyCastle' -ErrorAction Ignore)) {
if (-not (Get-PackageSource -Name NuGet -ErrorAction Ignore)) {
Register-PackageSource -Name NuGet -Location https://api.nuget.org/v3/index.json -ProviderName NuGet | Set-PackageSource -Trusted
}
Install-Package -Name 'Portable.BouncyCastle' -Source NuGet -Scope CurrentUser -SkipDependencies
}
# Download the MySQLite repository (for PowerShell <5 without PowerShellGet)
if (-not(Get-Module -Name MySQLite -ErrorAction Ignore) -and ($PSVersionTable.PSVersion.Major -lt 5)) {
$RepositoryZipUrl = 'https://api.github.com/repos/jdhitsolutions/MySQLite/zipball/master'
@Druah
Druah / Emotes.md
Last active February 1, 2025 20:20
How to Enable 7TV, BetterTTV, and FrankerFaceZ Emotes for Newbs

This guide is slightly deprecated as V3 of 7TV's browser add-on now supports 7TV, BetterTTV, and FrankerFaceZ emotes out of the box, and has some great quality of life chat features that are currently not found in any other emote add-on. You should consider going to 7TV's website and downloading their browser add-on from there.

What even is this? FeelsDankMan

7TV, BetterTTV, and FrankerFaceZ, more commonly stylized as 7TV, BTTV, and FFZ, are 3rd party emote services for Twitch chat, which aim to enhance a viewer's chatting experience on Twitch by allowing for more emotes to be used in chat, free of charge. Think of it like Discord emojis.

If you're wondering what those weird phrases people in chat seem to be spamming are, it's probably an emote from one of the above mentioned 3rd party emote servi

<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Rebane's Discord Colored Text Generator</title>
<meta charset="UTF-8">
<meta name="description" content="Rebane's Discord Colored Text Generator">
<meta name="author" content="rebane2001">
<style>
/*