Skip to content

Instantly share code, notes, and snippets.

View Cybertwip's full-sized avatar

Kai Cybertwip

  • Cybertwip
  • Sweden
View GitHub Profile
@Cybertwip
Cybertwip / EvilInspector.py
Created July 11, 2025 12:14
Hex decoding tools
import kivy
kivy.require('2.1.0') # Replace with your Kivy version if necessary
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.label import Label
from kivy.uix.textinput import TextInput
from kivy.uix.button import Button
from kivy.uix.scrollview import ScrollView
@Cybertwip
Cybertwip / PSXUnitSplit.py
Last active April 25, 2025 16:30
TITUS + S.N.K. PlayStation Decompilation Suite - Ghidra 2025
# Copyright (c) 2025 Cybertwip
# All rights reserved.
from ghidra.app.decompiler import DecompInterface
from ghidra.util.task import ConsoleTaskMonitor
from ghidra.program.model.symbol import SymbolType, RefType
from ghidra.app.plugin.core.analysis import AutoAnalysisManager
from ghidra.program.model.data import StringDataType, FunctionDefinition, FileDataTypeManager, PointerDataType, VoidDataType
import os
import re
@Cybertwip
Cybertwip / setup.py
Created April 23, 2025 13:30
Evil Zone MIPS Build Environment Setup Script
import os
import shutil
import subprocess
import sys
import tarfile
import urllib.request
def run_command(command, error_message):
"""Run a shell command and return True if successful, False otherwise."""
try:
@Cybertwip
Cybertwip / PlasmaO3.ino
Created April 9, 2025 14:22
Plasma + Ozone generator for Arduino
#include <Arduino.h>
const int F_STAGE_FR_PIN = 2; // Pin de frecuencia variable
const int SECOND_PIN = 8; // Frecuencia fija 240 Hz
const int THIRD_PIN = 9; // Frecuencia fija 50 Hz
const int ANALOG_PIN = A1;
const float MIN_FREQ = 30.0; // Frecuencia mínima
const float MAX_FREQ = 250.0; // Subí el máximo a 1000 Hz para probar
const float FIXED_FREQ = 240.0; // Frecuencia fija para pin 8
const float FIXED_DUTY = 4; // Ciclo de trabajo
const float PIN9_FREQ = 60.0; // Frecuencia para pin 9
@Cybertwip
Cybertwip / Magnos.ino
Created April 3, 2025 19:54
Magnos Basic Power Flopper
#include <Arduino.h>
const int F_STAGE_FR_PIN = 2;
const int ANALOG_PIN = A1;
const float FREQ_MIN = 0.0;
const float FREQ_MAX = 50.0;
const float DUTY_CYCLE = 0.5;
void setup() {
pinMode(F_STAGE_FR_PIN, OUTPUT);
@Cybertwip
Cybertwip / Questo.h
Created February 7, 2024 09:08
Quest System
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include <iostream>
#include <vector>
#include <map>
#include <string>
#include <algorithm> // For std::transform
@Cybertwip
Cybertwip / graphql-upload.php
Created September 14, 2020 11:51
PHP GraphQL Upload example
<?php
require_once ($_SERVER['DOCUMENT_ROOT'] . '/Config/db.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/Library/Mysqli.connection.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/Library/Mysql.tables.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/Library/_language.php');
//phpinfo();
/*
@Cybertwip
Cybertwip / .js
Created May 22, 2020 22:19
EVM Set Get
async setEVMAddress(stub, args){
if (args.length != 1) {
throw new Error('Incorrect number of arguments. Expecting 1');
}
await stub.putState('EVMADDRESS', Buffer.from(JSON.stringify(args[0])));
}
@Cybertwip
Cybertwip / .go
Created May 20, 2020 22:22
erc20.go
package erc20
import (
"github.com/pkg/errors"
"github.com/s7techlab/cckit/extensions/owner"
"github.com/s7techlab/cckit/router"
p "github.com/s7techlab/cckit/router/param"
)
const SymbolKey = `symbol`
@Cybertwip
Cybertwip / tileset.tileset.xml
Created May 10, 2020 03:33
Super Tux tileset
<?xml version="1.0" encoding="utf-8"?>
<tileset xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<textures>
<texture>/1</texture>
<texture>/2</texture>
<texture>/3</texture>
<texture>/4</texture>
</textures>
<tiles>
<tile id="7" texture="0" x="0" y="0" />