Skip to content

Instantly share code, notes, and snippets.

@beeman
beeman / Dockerfile
Last active December 6, 2024 16:10
Docker image with solana-test-validator that works on Apple Silicon 👉 Image here https://github.com/beeman/solana-test-validator 👈
FROM debian:bullseye AS base
ARG AGAVE_VERSION=2.0.15
ARG RUST_VERSION=stable
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
WORKDIR /workspace
RUN mkdir -pv "/workspace/bin" && echo 'echo test' > '/workspace/bin/test.sh' && chmod +x '/workspace/bin/test.sh'
@mimoo
mimoo / compress_tar_gzip.go
Last active March 6, 2025 01:49
How to compress a folder in Golang using tar and gzip (works with nested folders)
package main
import (
"archive/tar"
"bytes"
"compress/gzip"
"fmt"
"io"
"os"
"path/filepath"
@jed
jed / LICENSE.txt
Created May 20, 2011 13:27 — forked from 140bytes/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE