Skip to content

Instantly share code, notes, and snippets.

View davidcralph's full-sized avatar
🐧

David Ralph davidcralph

🐧
View GitHub Profile
@CatoTheYounger97
CatoTheYounger97 / gist:ddc2dd4ec459212466ea6f9887bc764b
Last active November 11, 2022 13:28
YoYo Loader Externalising and Compressing Textures (PVRTC2_4BPP) Instructions:

YoYo Loader Externalising and Compressing Textures (PVRTC2_4BPP) Instructions:

  • This manual texture externalisation method provides 2x compression compared to the built in YoYo Loader optimisation.
  • For reducing the size of the game.droid file, overall file size, memory usage and memory bandwidth over gpu.
  • Note: This is a very time consuming process that will heavily utilise your CPU.

You Will Need:

@davidcralph
davidcralph / noughtsandcrosses.py
Last active May 12, 2022 08:33
Noughts and crosses in Python
from colorama import init, Fore, Back, Style
from emoji import emojize
# init
init() # this is for terminal colors, yes
player = {
1: Fore.RED + "X" + Style.RESET_ALL,
2: Fore.YELLOW + "O" + Style.RESET_ALL,
}
board = {
@CatoTheYounger97
CatoTheYounger97 / gist:ce19685d349d913f9a2f097464453c97
Last active October 25, 2022 11:57
YoYo Loader Keyboard Re-mapping Instructions: For remapping keyboard inputs to vita gamepad inputs

YoYo Loader Keyboard Re-mapping Instructions:

  • For remapping keyboard inputs to vita gamepad inputs

Step 1: Create keys.ini file.

  • Create a text file called "keys.ini"

Step 2: Populate the keys.ini file, to remap controls for your game.

@CatoTheYounger97
CatoTheYounger97 / gist:fa47e7eef92f772e4004d4dac22f9bdb
Last active January 14, 2025 23:35
YoYo Loader Asset Swap Instructions: For running PC GameMaker Studios (GMS) games on Vita.
@yellowberryHN
yellowberryHN / BBT-nocd.md
Last active November 7, 2024 06:26
Big Biz Tycoon/Venture Tycoon No-CD Patch

Instructions

Using a hex editor of your choice, edit the BBT.exe/VT.exe file, and look for the following bytes:

  • BBT.exe: FF FF FF 85 C0 6A 01 7D
  • VT.exe: FF FF FF E8 BF 9D F7 FF

Replace it with the following bytes:

  • BBT.exe: FF FF FF 85 C0 6A 01 EB
@AidasK
AidasK / HowToDeleteAllCloudflareRecors.md
Last active November 5, 2024 17:22
Cloudflare delete all DNS records. Just go to cloudflare dns zones, open your browers developer console and paste this javascript code.

image

Real developers are not used to clicking, it's allways easier to write a script to do it for you.
@natyusha
natyusha / Naty's FFXIV Dawntrail Add-ons, Plugins and Mods.md
Last active April 24, 2025 05:26
All the third party add-ons, plugins and mods I use for FFXIV.

Last Updated: Patch 7.2

The program which most people use for parsing in FFXIV and several other MMOs. For an open source alternative consider using IINACT though configuring it won't be covered here.

Options

  • Main Table Encounters
    • General
      • Uncheck: Number of seconds to wait after the last combat action to begin a new encounter.
      • Uncheck: Number of seconds to wait after the last combat action to pause the encounter duration.

Plugins

@davidcralph
davidcralph / malworker.js
Last active August 7, 2021 21:25
MAL Redirect Worker
addEventListener('fetch', (event) => {
event.respondWith(
handleRequest(event.request).catch(
(err) => new Response(err.stack, { status: 500 })
)
);
});
async function handleRequest(request) {
const { pathname } = new URL(request.url);
@danielwetan
danielwetan / nodejs-cicd-github-actions.md
Last active April 25, 2025 16:39
Deploy Node.js to VPS using Github Actions

Deploy Node.js to VPS using Github Actions

Steps to deploy Node.js to VPS using PM2 and Github Actions

1. Clone repo to VPS folder

@sindresorhus
sindresorhus / machine-learning-for-my-apps.md
Last active July 14, 2022 21:47
Ideas for machine learning usage in my apps

Machine learning for my apps

I'm trying to think of ways I could use machine learning to enhance my apps. Feedback wanted!

You can find my apps here.

Dato

  • Natural language processing to parse a new event title, like Fantastical.