Skip to content

Instantly share code, notes, and snippets.

@Maigre
Maigre / sd2img
Created September 13, 2023 09:07
sd2img
#!/usr/bin/env python3
import subprocess, os, sys, math
#######################
def usage():
print("Usage: sudo sd2img /dev/sdx /path/to/image.img")
def b_size(size_bytes):
@Maigre
Maigre / tailscale-glinet.sh
Created April 8, 2022 08:32
Install Tailscale on GL.iNET router, using microSD/USB storage.
#!/bin/bash
#
# Tailscale install script on GL.iNet devices
# Tested on BERYL (MT1300), should work on MANGO (GL-MT300N)
# and probably other mipsel devices, as long as external storage (microSD/USB)
# is available.
#
# Written by Thomas BOHL for Hemisphere-Project - 2022
# Free to use - No warranty provided