Skip to content

Instantly share code, notes, and snippets.

View mohe2015's full-sized avatar

Moritz Hedtke mohe2015

  • Germany, Hesse
View GitHub Profile
rent server at hetzner, nürnberg, fedora, dedicated, ccx43 (DONT FORGET TO CANCEL)
ssh root@78.47.170.13
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 / 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
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBxNx8xK5OeYS03ug7APw/llyd/W4F7GkbtMgO+Z+ZOn Moritz.Hedtke@t-online.de
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")
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