Skip to content

Instantly share code, notes, and snippets.

View mohe2015's full-sized avatar

Moritz Hedtke mohe2015

  • Germany, Hesse
View GitHub Profile
use std::io::{self, BufReader};
use flate2::read::GzDecoder;
use std::io::prelude::*;
use std::fs::File;
use rustc_hash::FxHashMap;
use base64::{decode_config_slice, STANDARD};
// cat /home/pi/2022_place_canvas_history.csv.gzip | gunzip | wc -c
// 21714634193
// ~22 GB
rsync --human-readable --filter=':- .gitignore' -va ~ /run/media/moritz/556480d6-66a0-4305-a908-09136a807742/$(date +"%F")
rsync --human-readable --filter=':- .gitignore' -va --link-dest=/run/media/moritz/556480d6-66a0-4305-a908-09136a807742/2022-05-05 ~ /run/media/moritz/556480d6-66a0-4305-a908-09136a807742/$(date +"%F")
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBxNx8xK5OeYS03ug7APw/llyd/W4F7GkbtMgO+Z+ZOn [email protected]
@mohe2015
mohe2015 / Cargo.toml
Last active July 29, 2023 20:45
doctests proc macro
[package]
name = "doctests_proc_macro"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
proc-macro = true
rent server at hetzner, nürnberg, fedora, dedicated, ccx43 (DONT FORGET TO CANCEL)
ssh [email protected]
dnf update
useradd -m -G wheel moritz
passwd moritz
sudo mkdir -p /home/moritz/.ssh
sudo chmod 700 /home/moritz/.ssh
sudo cp /root/.ssh/authorized_keys /home/moritz/.ssh/authorized_keys
sudo chown -R moritz:moritz /home/moritz/.ssh
@mohe2015
mohe2015 / main.typ
Created August 10, 2024 22:18
typst tuda-beamer-2023
#import "@preview/touying:0.4.2": *
#import "tuda-beamer-2023-theme.typ"
#let s = tuda-beamer-2023-theme.register(aspect-ratio: "16-9")
#let s = (s.methods.info)(
self: s,
title: [Abc],
short-title: [Titel],
subtitle: [Subtitle],