Skip to content

Instantly share code, notes, and snippets.

View jonirrings's full-sized avatar
🎯
Focusing

Jonir Rings jonirrings

🎯
Focusing
View GitHub Profile
@jonirrings
jonirrings / keybase.md
Created August 22, 2017 17:23
keybase proof

Keybase proof

I hereby claim:

  • I am jonirrings on github.
  • I am jonirrings (https://keybase.io/jonirrings) on keybase.
  • I have a public key ASCrCmLQSg5YeyZeRlBt7y-vbRO_VS-j-WhO-wykZ0EClwo

To claim this, I am signing this object:

@jonirrings
jonirrings / SMBDIS.ASM
Created January 24, 2018 04:05 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@jonirrings
jonirrings / arm-none-eabi-3ds-patch.diff
Created June 26, 2018 16:45 — forked from TuxSH/arm-none-eabi-3ds-patch.diff
GDB patch for the 3DS to apply on gdb 7.11
diff -rupN a/gdb/Makefile.in b/gdb/Makefile.in
--- a/gdb/Makefile.in 2017-05-30 02:55:35.000000000 +0200
+++ b/gdb/Makefile.in 2017-05-30 02:56:48.000000000 +0200
@@ -658,6 +658,7 @@ ALL_64_TARGET_OBS = \
# All other target-dependent objects files (used with --enable-targets=all).
ALL_TARGET_OBS = \
armbsd-tdep.o arm.o arm-linux.o arm-linux-tdep.o \
+ arm-3ds-tdep.o \
arm-get-next-pcs.o arm-symbian-tdep.o \
armnbsd-tdep.o armobsd-tdep.o \
@jonirrings
jonirrings / Immutable JS Examples
Created February 14, 2019 06:37 — forked from singhshivam/Immutable JS Examples
Immutable JS Examples
List()
var list = Immutable.List([1,2,3])
// [1, 2, 3]
List.isList()
Immutable.List.isList(list)
// true
List.of()
var list = Immutable.List.of(1,2,3);
@jonirrings
jonirrings / downloadIZuKan.js
Created April 10, 2019 07:12
downloadIZuKan.js
function parse(rawInfo) {
if (rawInfo.decode_key) {
rawInfo.decode_key = rawInfo.decode_key.split('-')
}
return rawInfo;
}
function decode(info, image, canvas) {
const d2 = canvas.getContext("2d");
canvas.width = image.width;
@jonirrings
jonirrings / libloading_test.md
Last active March 26, 2021 10:22
rust libloading test

main.rs

use libloading;

fn call_dynamic() -> Result<u32, Box<dyn std::error::Error>> {
    unsafe {
        let lib = libloading::Library::new("/home/com/dev/cpp/libhello.so")?;
        let func: libloading::Symbol<unsafe extern "C" fn() -> u32> = lib.get(b"hello")?;
        Ok(func())
 }
@jonirrings
jonirrings / ubuntu_initial_setup.sh
Last active April 23, 2022 04:32
my_ubuntu_initial_setup.sh
#!/bin/bash
# initial install
sudo apt install -y \
virt-manager remmina htop vim meson nvme-cli smartmontools \
gcc-arm-none-eabi cmake build-essential lm-sensors bison flex lemon fossil libssl-dev \
git git-lfs subversion valgrind curl openssh-server libsecret-1-dev debuginfod elfutils \
zsh-autosuggestions zsh-syntax-highlighting linux-tools-common linux-tools-`uname -r` \
# chsh
chsh -s /bin/zsh
@jonirrings
jonirrings / GraphQLThunkExample.js
Last active September 10, 2022 02:16
GraphQL Thunk example
const UserType = new GraphQLObjectType({
name: 'User',
description: 'a user',
fields: () => ({
id: {
type: new GraphQLNonNull(GraphQLID),
description: 'user id',
},
name: {
type: new GraphQLNonNull(GraphQLString),