Skip to content

Instantly share code, notes, and snippets.

View tritao's full-sized avatar
🎯
Focusing

João Matos tritao

🎯
Focusing
  • Portugal
View GitHub Profile
@JJTech0130
JJTech0130 / debugger_jit_improved.m
Last active May 9, 2025 19:31
Improved method of using a debugger for JIT on iOS... Uses split rx/rw regions, and works on iOS 18.4b1
#import <Foundation/Foundation.h>
#import <mach/mach.h>
#import <stdio.h>
#import <stdlib.h>
#import <string.h>
#include <libkern/OSCacheControl.h>
const int REGION_SIZE = 0x4000*1;
void write_instructions(void* page)
@AndrasKovacs
AndrasKovacs / TwoStageRegion.md
Last active March 24, 2025 14:55
Lightweight region memory management in a two-stage language
@kiranshila
kiranshila / sexp.rs
Created May 5, 2022 20:08
Combining nom and rowan
use num_derive::{FromPrimitive, ToPrimitive};
use num_traits::{FromPrimitive, ToPrimitive};
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, FromPrimitive, ToPrimitive)]
#[allow(non_camel_case_types)]
#[repr(u16)]
enum SyntaxKind {
L_PAREN = 0, // '('
R_PAREN, // ')'
ATOM, // '+', '15'
@edvard-rgb
edvard-rgb / common.env
Last active March 7, 2025 18:58
Saleor platform using docker-compose, Traefik, NginX
DATABASE_URL=postgres://saleor:password@db/saleor
DEFAULT_FROM_EMAIL=[email protected]
CELERY_BROKER_URL=redis://redis:6379/1
JAEGER_AGENT_HOST=jaeger
SECRET_KEY=secret_key
API_URI=https://saleor-api.domain.com/graphql/
ALLOWED_HOSTS=saleor-api.domain.com,saleor-mail.domain.com,saleor-store.domain.com,saleor-admin.domain.com,saleor-jaeger.domain.com
ALLOWED_CLIENT_HOSTS=saleor-api.domain.com,saleor-mail.domain.com,saleor-store.domain.com,saleor-admin.domain.com,saleor-jaeger.domain.com
@Joshua-F
Joshua-F / clientprot.txt
Last active November 22, 2023 23:03
RS Things
0: APCOORDT
1: IF_BUTTON8
2: IF_BUTTOND
3: CLAN_JOINCHAT_LEAVECHAT
4: OPNPC3
5: OPLOC4
6: IF_PLAYER
7: RESUME_P_STRINGDIALOG
8: OPLOCT
9: WINDOW_STATUS
@surma
surma / README.md
Last active January 4, 2025 01:26
webpack-emscripten-wasm

Minimal example making webpack and wasm/Emscripten work together.

Build instructions:

  • Clone this gist
  • npm install
  • npm start
  • Open http://localhost:8080
  • Look at console
@arielm
arielm / build.sh
Last active February 18, 2019 05:36
TESTING EMSCRIPTEN WITH C++11 AND BOOST
# BUILDING BOOST FOR EMSCRIPTEN...
# REFERENCE: http://www.boost.org/doc/libs/1_58_0/more/getting_started/unix-variants.html
# TESTED WITH: BOOST 1.53 ON OSX 10.10
# DEPENDS ON: MODIFIED user-config.jam
# REQUIRED FOR iostreams
# REFERENCE: http://www.boost.org/doc/libs/1_58_0/libs/iostreams/doc/installation.html#bjam
cd $EMSCRIPTEN_PATH; ./embuilder.py build zlib
export NO_BZIP2=1
@thlorenz
thlorenz / builiding-lldb-on-mac-with-jit-support-simple-steps.md
Last active July 24, 2019 01:32
Building lldb with GDB JIT support on Mac OSX.

Building lldb on Mac

Create Codesign Certificate

First we need to create a certificate. The llvm provided a way to do that, but I found this way to work slightly better for me. Just substitute lldb_codesign for the certificate name, instead of gdb-cert.

Install swig dependency