Skip to content

Instantly share code, notes, and snippets.

View neonbyte1's full-sized avatar
🦕

neonbyte1

🦕
View GitHub Profile
@neonbyte1
neonbyte1 / Dockerfile
Created March 15, 2026 04:34
Dockerize wine-msvc
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV WINEPREFIX=/wine
ENV TMP=/tmp
ENV TEMP=/tmp
RUN dpkg --add-architecture i386 && \
apt-get update && \
apt-get install -y --no-install-recommends \
@neonbyte1
neonbyte1 / gdb-inject.sh
Created January 22, 2026 20:10
Wrapper to load/unload shared object (.so) files using gdb, supporting HMR (hot-module-reload)
#!/usr/bin/env bash
#
# MIT License
#
# Copyright (c) 2026 - https://github.com/neonbyte1
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@neonbyte1
neonbyte1 / README.md
Last active August 15, 2026 15:22
Install unofficially Sea Block for Factorio 2.0
@neonbyte1
neonbyte1 / parse_proc_map.cpp
Last active November 29, 2025 17:27
Parse /proc/<pid>/maps
// The MIT License (MIT)
//
// Copyright (c) 2025 neonbyte1
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
// the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
@neonbyte1
neonbyte1 / README.md
Created May 13, 2025 12:32
Decrypt Factorio "Blueprint String", modify the JSON and encrypt it to produce the modified "Blueprint String"

Factorio blueprint encryption/decryption

Small unix-like tool that requires Deno to decrypt or encrypt Factorio blueprints. Just pipe the encrypted or decrypted content to the factorio-blueprint script and adjust your parameters.

Options / parameters

  • --decrypt, -dec, -d: takes the "Blueprint String" and produces a minified JSON output
  • --encrypt, -enc, -e: takes the decrypted JSON output (minified or pretty, it doesn't matter) and produces the "Blueprint String"
  • --pretty, -p: produces a pretty JSON output instead of a minified one