Skip to content

Instantly share code, notes, and snippets.

View AlexDev404's full-sized avatar
👾
Ruby2D!

Immanuel Daviel A. Garcia AlexDev404

👾
Ruby2D!
View GitHub Profile
@AlexDev404
AlexDev404 / schema.dbml
Created November 12, 2025 19:20
Soil Moisture Quality Monitor
// Soil Moisture Quality Monitor
Table Users {
user_id serial [pk]
username string
password string
}
Table Nodes {
device_id serial [pk]
@AlexDev404
AlexDev404 / README.md
Created November 2, 2025 19:32
A guide on cracking Phaser 2D Editor (Windows)

Cracking Phaser 2D Editor v3

It's been over a year since Phaser 2D v3 has been dead, so I thought I'd make a small guide on how to crack the editor now that it's out of support.

Cracking the editor is very easy to do, and is very low effort. To begin, start by downloading a copy of the Phaser Editor from Archive.org or similar along with Phaser Core.

Then, download a copy or Telerik Fiddler Classic

Open fiddler, and unzip phaser core.

@AlexDev404
AlexDev404 / index.md
Created October 22, 2025 21:02
CMPS4191 - WebSocket API Lab (Client-side)

WebSocket API Lab - Client-side

Explore & Observe - Questions

Before Opening the Connection

  • Open the Console and type:

socket.readyState

@AlexDev404
AlexDev404 / cool_stuff.md
Last active November 15, 2025 03:55
Cool stuff to try out
@AlexDev404
AlexDev404 / okx-sublogin-1.0.user.js
Last active October 28, 2025 04:33
Login to your provisioned OKX subaccount
// ==UserScript==
// @name OKX - Sign in with Pool Token
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Set token and isLogin cookies with custom values
// @author AlexDev404 (Immanuel Garcia)
// @match https://www.okx.com/account/users?logged_in=true
// @match https://www.okx.com/account/login*
// @match https://www.okx.com/*
// @grant none

Chapter 2: Voltage, Current, and Resistance

Concept Formula Citation
Voltage (V) $V = \frac{W}{Q}$ [1-3]
Current (I) $I = \frac{Q}{t}$ [4]
Conductance (G) $G = \frac{1}{R}$ [5]
Wire Resistance (R) $R = \rho \frac{l}{A}$ [6]

Chapter 3: Ohm’s Law, Energy, and Power

Add-Type @"
using System;
using System.Runtime.InteropServices;
using System.Diagnostics;
public class Win32 {
[DllImport("user32.dll")]
public static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter,
int X, int Y, int cx, int cy, uint uFlags);
@AlexDev404
AlexDev404 / bootloader.asm
Created May 26, 2025 05:49
Z80/eZ80 Bootloader - Simple boot loader to load code from serial into memory starting at 08000h and executing after loading.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; ;
; Simple boot loader to load code from serial into memory starting ;
; at 08000h. Starting code execution after loading. ;
; ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
org 00000h
setup: ld sp, 0ffffh ; set stack pointer
@AlexDev404
AlexDev404 / readme.md
Created May 26, 2025 03:30 — forked from 1999AZZAR/readme.md
This Bash script creates a virtual display on an Android device and streams it using scrcpy. It's designed to work with Android Debug Bridge (ADB) and scrcpy, providing a seamless way to create and interact with a secondary display on your Android device.

Virtual Display for Android Devices

Overview

This Bash script creates a virtual display on an Android device and streams it using scrcpy. It's designed to work with Android Debug Bridge (ADB) and scrcpy, providing a seamless way to create and interact with a secondary display on your Android device.

Prerequisites

  • Android Debug Bridge (ADB) installed and accessible from the command line
  • scrcpy installed and accessible from the command line
@AlexDev404
AlexDev404 / caffeine.ps1
Last active May 22, 2025 06:24
Caffeine - Prevent your Windows computer from falling asleep!
Add-Type @"
using System;
using System.Runtime.InteropServices;
public static class Power
{
[DllImport("kernel32.dll", SetLastError = true)]
public static extern uint SetThreadExecutionState(uint esFlags);
}
"@