Skip to content

Instantly share code, notes, and snippets.

View Stilic's full-sized avatar

Stilic

View GitHub Profile
@EliteMasterEric
EliteMasterEric / CarCrashMenu.hxc
Created July 31, 2022 23:34
Throw this into a mod folder when the next FNF update comes out.
import flixel.FlxG;
import flixel.system.FlxSound;
import flixel.tweens.FlxEase;
import flixel.tweens.FlxTween;
import funkin.modding.module.Module;
import funkin.Paths;
import funkin.TitleState;
class CarCrashMenu extends Module
{
@EliteMasterEric
EliteMasterEric / replaceColor.frag
Created July 19, 2022 00:25
Fragment shader (built for Flixel) which replaces a specific color with another.
// A vec4 represents the red, green, blue, alpha of a pixel with values from [0.0, 1.0].
const vec4 MAGENTA = vec4(1.0, 0.0, 1.0, 1.0);
const vec4 GREEN = vec4(0.0, 1.0, 0.0, 1.0);
vec4 doWhatever() {
// This function just returns green, but you could add more complex logic here.
return GREEN;
}
void main() {
@EliteMasterEric
EliteMasterEric / DetectScreenRecorders.hx
Last active April 23, 2023 20:07
Haxe code to detect screen recording software.
/**
* A list of process names for several popular screen recording programs.
* Add more if you think of any.
*/
static final SCREEN_RECORDERS:Array<String> = [
"obs32.exe", "obs64.exe", "obs.exe",
"xsplit.core.exe", "livehime.exe", "pandatool.exe",
"yymixer.exe", "douyutool.exe", "huomaotool.exe"
];
@d-513
d-513 / arch-ovh.md
Last active June 10, 2024 16:28
Arch Linux on OVH VPS

Install Arch on OVH VPS

This guide will show you how to install Arch Linux on an OVH VPS.
As you may have noticed, OVH does not have an Arch image, which is a problem. Follow these instructions to install Arch using recovery mode.

Conventions

Assume anything reffered to as low ram vps in the guide to be a VPS with <8gb ram

This guide assumes the following:

  • Your VPS has one drive
@JohannesMP
JohannesMP / EnableDiscordDevExperiments.md
Last active June 9, 2024 01:51 — forked from ExordiumX/betaenabler.js
Enabling Discord Dev Experiments on Discord for Windows (2022-02)

Enable Dev Experiments in Discord for Windows

image

This guide shows how to enable dev mode for the Discord desktop application running on Windows (as of February 2022).

This can be used to view beta experiments to try features currently in development that are included but hidden by default in Discord release builds.


@khalby786
khalby786 / massDeleteAssets.js
Last active January 2, 2022 13:07
Userscript that deletes *all* the assets in your Glitch project
// ==UserScript==
// @name Glitch Delete All Assets
// @namespace http://khaleelgibran.com/
// @version 0.1
// @description mass-deletes your glitch project's assets
// @author Khaleel Gibran <khalby786@gmail.com>
// @match https://glitch.com/edit/*
// @icon https://glitch.com/favicon.ico
// @run-at document-start
// ==/UserScript==
@ishad0w
ishad0w / aveyo_edge_removal.bat
Last active June 23, 2024 16:51
AveYo (Microsoft Edge Removal)
@(set "0=%~f0"^)#) & powershell -nop -c iex([io.file]::ReadAllText($env:0)) & exit /b
#:: just copy-paste into powershell - it's a standalone hybrid script
sp 'HKCU:\Volatile Environment' 'Edge_Removal' @'
$also_remove_webview = 1
## why also remove webview? because it is 2 copies of edge, not a slimmed down CEF, and is driving bloated web apps
$also_remove_widgets = 1
## why also remove widgets? because it is a webview glorified ad portal on msn and bing news cathering to stupid people
$also_remove_xsocial = 1
## why also remove xsocial? because it starts webview setup every boot - xbox gamebar will still work without the social crap
@EliteMasterEric
EliteMasterEric / FNFEngines.md
Last active May 22, 2024 23:10
Friday Night Funkin' Game Engine Comparison

List of Friday Night Funkin' Engines:

The base game. Like vanilla ice cream, some people find it bland while, for others, it's their personal favorite. Only version available on Newgrounds (re-uploads of FNF or even mods aren't allowed). The Newgrounds web-only edition (no source code available) includes spritemap animations for cutscenes (the Tricky Mod uses pre-rendered videos), custom keybinds, and note splashes.

One of the original modded engines, developed for the Full Ass Tricky Mod, and later separately maintained. Focused on high-level play, featuring a reworked input system, improved player stats like a results screen hitgraph, and custom keybinds. The most common engine to use in mods (even if it isn't the simplest to mod).

@alexAubin
alexAubin / convert_to_packaging_v2.py
Last active January 28, 2022 19:51
Convert yunohost app manifest from v1 to v2
import os
import re
import json
import subprocess
def check_output(cmd):
return (
subprocess.check_output(cmd, shell=True)
.decode("utf-8")
@KinoAR
KinoAR / FlxSignalExample.hx
Last active April 19, 2022 09:38
An example of a FlxSignal in action.
import flixel.util.FlxSignal;
// for signals that don't need data, use FlxSignal
var signal = new FlxSignal();
// for signals that need data, use FlxTypedSignal with the correct function type
var stringSignal = new FlxTypedSignal<String->Void>();
function noParamCallback() {
trace('Dispatched void event');
}