Skip to content

Instantly share code, notes, and snippets.

View marceloneppel's full-sized avatar

Marcelo Henrique Neppel marceloneppel

View GitHub Profile
@marceloneppel
marceloneppel / decompile.bat
Created September 5, 2025 20:24 — forked from mslinn/decompile.bat
Decompile JVM class files using IntelliJ IDEA's embedded FernFlower decompiler
java -cp "C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.2\plugins\java-decompiler\lib\java-decompiler.jar" org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler -dgs=true . src
Goose, you are participating in an inter-agent communication experiment with other Goose instances. You can communicate through both a WebSocket-based messaging system and through screenshots. Here are your instructions:
1. Agent Registration and Identity:
- First, register to get your agent ID using:
```bash
curl -X POST http://localhost:5000/register
```
- The server will assign you an agent number and a unique color
- Always use your assigned ID in communications
- You can view active agents using:
@marceloneppel
marceloneppel / bootable-win-on-mac.md
Created July 10, 2025 02:11 — forked from acarril/bootable-win-on-mac.md
Create a bootable Windows USB using macOS

For some reason, it is surprisingly hard to create a bootable Windows USB using macOS. These are my steps for doing so, which have worked for me in macOS Monterey (12.6.1) for Windows 10 and 11. After following these steps, you should have a bootable Windows USB drive.

1. Download a Windows disc image (i.e. ISO file)

You can download Windows 10 or Windows 11 directly from Microsoft.

2. Identify your USB drive

After plugging the drive to your machine, identify the name of the USB device using diskutil list, which should return an output like the one below. In my case, the correct disk name is disk2.

@marceloneppel
marceloneppel / curl-rust.rs
Created April 12, 2025 16:54 — forked from michielmulders/curl-rust.rs
Curl-rust POST request example
use std::io::Read;
use curl::easy::Easy;
fn main() {
let mut data = "this is the body".as_bytes();
let mut easy = Easy::new();
easy.url("http://www.example.com/upload").unwrap();
easy.post(true).unwrap();
easy.post_field_size(data.len() as u64).unwrap();
@marceloneppel
marceloneppel / collisions.clj
Created April 8, 2025 18:29 — forked from caioaao/collisions.clj
Solution to Nubank's collision exercise, in Clojure
(ns collisions.core
(:require [clojure.string :as str])
(:gen-class))
(defn str->edge [s]
(->> (str/split s #" ")
(map #(Integer/parseInt %))))
(defn file-contents->edges [s]
(->> (str/split s #"\n")
diff --git a/src/object_store/src/object/opendal_engine/opendal_object_store.rs b/src/object_store/src/object/opendal_engine/opendal_object_store.rs
index 20d498d678..004a49a006 100644
--- a/src/object_store/src/object/opendal_engine/opendal_object_store.rs
+++ b/src/object_store/src/object/opendal_engine/opendal_object_store.rs
@@ -376,10 +376,32 @@ impl OpendalStreamingUploader {
impl StreamingUploader for OpendalStreamingUploader {
async fn write_bytes(&mut self, data: Bytes) -> ObjectResult<()> {
assert!(self.is_valid);
- self.not_uploaded_len += data.len();
- self.buf.push(data);
@marceloneppel
marceloneppel / KIND_Networking.md
Created August 16, 2024 15:05 — forked from developer-guy/KIND_Networking.md
Use KIND to emulate complex network scenarios

Networking scenarios [Linux Only]

KIND runs Kubernetes cluster in Docker, and leverages Docker networking for all the network features: port mapping, IPv6, containers connectivity, etc.

Docker Networking

KIND uses a docker user defined network.

It creates a bridge named kind

@marceloneppel
marceloneppel / compile_mysql.md
Created April 7, 2024 12:42 — forked from jaircuevajunior/compile_mysql.md
Compile MySQL 5.7 from source
  1. Download build-tools
apt-get install build-essential cmake -y
  1. Configure the compiler
cmake \
-DWITH_BOOST=/usr/local/src/mysql-5.7.19/boost/boost_1_59_0 \
-DCMAKE_INSTALL_PREFIX=/usr/local/mysql57 \
@marceloneppel
marceloneppel / readme.md
Created April 7, 2024 12:42 — forked from anjesh/readme.md
mysql source compiling
  • Download mysql source

  • Ran the following cmake command based on the documentation

cmake \
  -DCMAKE_INSTALL_PREFIX=/usr/local/mac-dev-env/mysql-5.7.18 \
  -DCMAKE_CXX_FLAGS="-stdlib=libstdc++" \
  -DDEFAULT_CHARSET=utf8 \
  -DDEFAULT_COLLATION=utf8_general_ci \