Skip to content

Instantly share code, notes, and snippets.

View xarantolus's full-sized avatar

Philipp xarantolus

View GitHub Profile
@xarantolus
xarantolus / Dockerfile
Created December 10, 2023 10:31
Dockerfile for cross-compiling a Rust project for ARM64. I use this to build ARM64 containers for my Raspberry Pi 4 on an x86 machine
FROM rust:1.74-slim-buster as builder
RUN rustup target add aarch64-unknown-linux-gnu
RUN apt-get update && \
apt-get install -y g++-aarch64-linux-gnu libc6-dev-arm64-cross
ENV CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc
# Copy project into container
@xarantolus
xarantolus / FullAdder.tex
Last active September 18, 2020 06:58
Logic Gates in LaTeX using Resistor-Transistor-Logic (RTL) https://en.wikipedia.org/wiki/Resistor-transistor_logic
\documentclass{article}
\usepackage{tikz,fouriernc}
\usepackage{circuitikz}
\begin{document}
\begin{figure}[h!]
\centering % It's kind of not cenered, not exactly sure why
\begin{circuitikz}
// Program for cloning repos at a specific place on your computer
package main
import (
"flag"
"fmt"
"net/url"
"os"
"os/exec"
"path/filepath"
// MIT License
//
// Copyright (c) 2019 xarantolus
//
// 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: