Skip to content

Instantly share code, notes, and snippets.

View Salamandar's full-sized avatar

Salamandar Salamandar

View GitHub Profile
@Salamandar
Salamandar / build_mongodb.sh
Last active January 27, 2024 11:43
Build mongodb on Debian without AVX
#!/usr/bin/env bash
sudo apt install git python-dev-is-python3 libssl-dev lld liblzma-dev python3-poetry
sudo apt install llvm clang lld
git clone https://github.com/GermanAizek/mongodb-without-avx
pushd mongodb-without-avx
pushd mongo
# Disable AVX requirements
@Salamandar
Salamandar / serial_duplicator.py
Created March 23, 2022 08:52
Duplicate TTY serial port using socat in Python to log everything that goes through it.
#!/usr/bin/env python3
import sys
import os
import signal
import threading
import subprocess
from typing import Optional
from pathlib import Path