Skip to content

Instantly share code, notes, and snippets.

View dondish's full-sized avatar
🎯
Learning Stuff and Making Stuff

Oded Shapira dondish

🎯
Learning Stuff and Making Stuff
View GitHub Profile
@dondish
dondish / lua54.hexpat
Created February 4, 2023 14:26
Lua 5.4 ImHex pattern
#include <std/io.pat>
#include <std/mem.pat>
namespace impl {
fn transform_Size_array(auto array) {
u128 res = 0;
for(u8 i = 0, (array[i] & 0x80 == 0) && (i < 9), i+=1) {
res <<= 7;
@dondish
dondish / Configration.java
Created March 22, 2020 11:23
JetBrains Academy Encrypted-Decrypted Final
package encryptdecrypt;
import java.io.*;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.Scanner;
public class Configration {
private boolean dec;