Skip to content

Instantly share code, notes, and snippets.

View toverux's full-sized avatar

Morgan Touverey Quilling toverux

View GitHub Profile
@LinuxSBC
LinuxSBC / 1password-flatpak-browser-integration.sh
Last active December 26, 2025 10:59
1Password Integration with Flatpak Browsers
#!/bin/bash
set -oue pipefail
INFO='\033[0;36m' # Cyan for general information
SUCCESS='\033[0;32m' # Green for success messages
WARN='\033[0;33m' # Yellow for warnings
ERROR='\033[0;31m' # Red for errors
NC='\033[0m' # No Color
echo "This script will help you set up 1Password in a Flatpak browser."
@romanlex
romanlex / BundleManifestPlugin.js
Last active June 12, 2025 12:44
Bundle manifest.json to defined var with ManifestPlugin for update frontend app
const { sources } = require('webpack')
const { getCompilerHooks } = require('webpack-manifest-plugin')
const PLUGIN_NAME = 'BundleManifestPlugin'
/** @typedef {import("webpack").Compiler} Compiler */
/**
* @typedef {Object} Options
* @property {string} to
import time
print "..."
time.sleep(1)
print "..."
print "..."
print "..."
print "..."
time.sleep(1)
print "..."
@JavidPack
JavidPack / AnotherSimpleHarmonyTranspilerTutorial.md
Last active September 11, 2025 19:04
Another Simple Harmony Transpiler Tutorial

About

This guide is yet another Harmony Transpiler Tutorial. This guide will use Terraria as the target game and will touch lightly upon Labels, Extension Methods, and AccessTools. If you'd like, you can skip right to the bottom and see these sections directly. Read the guide from start to finish if you'd like to follow the thought process of developing this Transpiler.

Prerequisites

  • This guide assumes you have gone through the original tutorial.
  • dnSpy - We will use the compile functionality to help design our patch.
  • Familiarity with Terraria is NOT required

Goal

The goal that this guide will work toward is making the various bee related items in Terraria stronger. For those not familiar with Terraria, various items will spawn bees as weapons. If the player has the strongBees ability, bees will have a random chance of spawning as GiantBee instead. This patch will further augment the `stron

@hediet
hediet / main.md
Last active December 27, 2025 05:32
Proof that TypeScript's Type System is Turing Complete
type StringBool = "true"|"false";


interface AnyNumber { prev?: any, isZero: StringBool };
interface PositiveNumber { prev: any, isZero: "false" };

type IsZero<TNumber extends AnyNumber> = TNumber["isZero"];
type Next<TNumber extends AnyNumber> = { prev: TNumber, isZero: "false" };
type Prev<TNumber extends PositiveNumber> = TNumber["prev"];