Skip to content

Instantly share code, notes, and snippets.

View garryspins's full-sized avatar
Spinning

MustBeLeaving garryspins

Spinning
View GitHub Profile
@garryspins
garryspins / demonssouls_kbm.py
Created February 27, 2024 07:59
Demon's Souls RPCS3 Shift Support, For Keyboard and Mouse users
import pynput
import pydirectinput
from ctypes import windll, create_unicode_buffer, wintypes
class KeyboardListener(pynput.keyboard.Listener):
is_shift_down = False
def __init__(self):
return super().__init__(on_press = self.on_press, on_release = self.on_release)
@garryspins
garryspins / cl_melons-rounded-boxes.lua
Created June 28, 2023 19:59
Melon's Rounded Boxes
--[[
[Melon's Rounded Boxes]
Want a rounded box that has a material?
Want it to look nice?
Want also to be able to draw any form of rounded polygons?
WELL YOURE IN LUCK!
Remember to cache your polygons
and to credit me :) (https://github.com/garryspins)
@garryspins
garryspins / lujlu.lua
Created July 24, 2022 22:42 — forked from meepen/lujlu.lua
LuaJit VM in Lua. Comes with fully operational bytecode interpreter. License is: contact me before using it commercially. - Now runs itself inside itself and itself inside itself inside itself
local bytecodes = {}
local BC, run_function = {}
local VARG_CONST = {}
local lujlu_mt_funcs
local lujlu_cache = setmetatable({}, {__mode = "k"})
local lujlu_identifier_mt = {
__tostring = function(self)
return tostring(lujlu_cache[self].data)
end,
@garryspins
garryspins / bfrust.rs
Created July 11, 2022 08:23
Brainfuck in Rust!?!??!?!?!
use std::io::BufRead;
pub struct Interpreter {
tape: Option<Vec<u8>>,
loopv: Option<Vec<usize>>,
index: usize,
ptr: usize,
}
impl Interpreter {
@garryspins
garryspins / bg.svg
Last active February 18, 2022 07:48
SVG Background for my personal discord theme :o
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@garryspins
garryspins / sitegen
Created May 12, 2021 19:50
Just a site generator for apache, idk
#!/bin/bash
alias a="sudo apt"
if [ $# -eq 0 ]; then
echo "Please give a domain";
fi
mkdir -p /var/www/$1/public_html
chown -R root:root /var/www/$1/public_html
chmod -R 755 /var/www/