Oddbean new post about | logout

Notes by Orhun Parmaksız 👾 | export

 My workshop presentation is ready!

The erratically spinning rat was the last missing piece.

It runs in the terminal.

https://cdn.fosstodon.org/media_attachments/files/113/452/218/675/002/311/original/f2cc7f1cf1c63cdd.mp4 
 "it should be fine" - famous last words from yesterday's Rust live coding stream 👀

here is the clip:
https://youtube.com/clip/UgkxvDeSg1HYJa0OUMdW8aIr5nFFImokmQsN 
 nobody will remember:
- your borrow checker battles
- how many times you fought with the lifetimes
- how many unsafe blocks you wrote

people will remember:
- how many times you said "blazingly fast"
- how your code made them say wtf
- if you have a pet crab

#rustlang 
 Last night I ran "pacman -Syu" to update my system for fixing the xz backdoor vulnerability.

Mid-update, everything froze so I reached out to power button to reboot. That was a mistake.

When I rebooted, my bootloader was GONE. I had to boot from a live ISO to reinstall the bootloader. 
 With this Rust library, you can embed directories into your binary at compile time! 🔥

🦀 **include_dir**: An evolution of the* include_str!* and *include_bytes! *macros.

🚀 Supports embedding directory tree, locating files and searching with glob patterns.

⭐ GitHub: https://github.com/Michael-F-Bryan/include_dir

#rustlang #embed #directory #library #macro

https://cdn.fosstodon.org/media_attachments/files/112/145/714/286/280/625/original/27128b0b1deeda7d.png 
 Which terminal emulators did you use so far? ⬇️

My history is:
• urxvt ➤ termite ➤ kermit ➤ Alacritty ➤ what's next? (Rio?)

And yes, I wrote a terminal emulator called kermit: https://github.com/orhun/kermit 🐸 
 Did you know that you can customize your commit hashes? 🤯

🦀 **lucky-commit**: Make your git commits lucky! - written in Rust.

⭐ GitHub: https://github.com/not-an-aardvark/lucky-commit

✨ Simply change the start of your Git commit hashes to whatever you want.

#rustlang #git #commit #hash #commandline

https://cdn.fosstodon.org/media_attachments/files/111/483/753/426/112/200/original/95fc254b99a3f2b2.png 
 In Rust, here is how you can find out which shell you are running 👀

🦀 **whattheshell**: Infer the current shell the application is running on.

⭐ GitHub: https://github.com/zekrotja/whattheshell

📚 Docs: https://docs.rs/whattheshell

#rustlang #linux #shell #commandline #opensource #library

https://cdn.fosstodon.org/media_attachments/files/111/194/369/481/395/548/original/7c830bc45eaf72df.png 
 🦀 Rust Build News 📢

🚀 **ring** crate finally got support for **s390x** architecture!

⭐ GitHub: https://github.com/briansmith/ring (Safe, fast, small crypto using Rust)

👀 Pull request: https://github.com/briansmith/ring/pull/1297

#rustlang #builds #crypto #s390x #architecture #opensource 
 New version of **daktilo** is out! 🎉

🥁 Added a drumkit preset (dum, tss, cha!)

✨ Try it out by running: `daktilo -p drumkit`

🦀 Changelog: https://github.com/orhun/daktilo/releases/tag/v0.2.0

⭐ GitHub: https://github.com/orhun/daktilo

#rustlang #typewriter #drumkit #linux #commandline 
 **daktilo** is trending on @406e6939! 🚀

🦀 Turn your keyboard into a typewriter!

⭐ GitHub: https://github.com/orhun/daktilo

#rustlang #github

https://cdn.fosstodon.org/media_attachments/files/111/177/023/501/117/469/original/efd54c8fc27f66fe.png 
 **daktilo** is #1 on Hacker News!

🦀 Turn your keyboard into a typewriter!

⭐ GitHub: https://github.com/orhun/daktilo

#rustlang #typewriter

https://cdn.fosstodon.org/media_attachments/files/111/171/524/610/642/448/original/2e8dcf56e4cc605d.png 
 Introducing **daktilo** — A small program to turn your keyboard into a typewriter! 📇

⭐ GitHub: https://github.com/orhun/daktilo

🦀 Cross-platform / written in Rust!

#rustlang #typewriter #linux #commandline #audio

https://cdn.fosstodon.org/media_attachments/files/111/165/269/660/901/830/original/07b6a06cb611b3df.mp4 
 New version of **git-cliff** is out! 🎉

⛰ A highly customizable changelog generator written in Rust.

🦀 All the code is re-licensed under MIT + Apache 2.0.

⭐ GitHub: https://github.com/orhun/git-cliff

📚 Changelog: https://github.com/orhun/git-cliff/blob/main/CHANGELOG.md

#rust #changelog #commandline #linux #license #gpl #mit #apache 
 Here is how you can name your Git stashes:

☘️ git stash push -m "nice_stash"

🤔 TIL: https://stackoverflow.com/questions/11269256/how-do-i-name-and-retrieve-a-git-stash-by-name

#git #linux #commandline 
 Today I contributed to @MarcoIeni's awesome project: **release-plz** 🚀

🦀 `release-plz`: Publish Rust crates from CI with a Release PR.

⭐ GitHub: https://github.com/MarcoIeni/release-plz

👾 My issue/PR: https://github.com/MarcoIeni/release-plz/issues/1000 (1000th! 🎉)

#rustlang #automation #github #commandline #ci 
 Alpine Linux 3.18.4 is released!

🚀 `git log`: https://git.alpinelinux.org/aports/log/?h=v3.18.4

#alpinelinux #linux #opensource 
 TIL: PEBCAK 🪑🖥️

problem exists between chair and keyboard - i.e. problem experienced with a user's computer that is due to user error.

https://en.wiktionary.org/wiki/PEBCAK 
 Open source lovers, don't forget to register for Hacktoberfest!

✨ Hacktoberfest is a global October event that promotes open source contributions via pull requests.

👾 Register: https://hacktoberfest.com

#hacktoberfest #opensource #programming

https://cdn.fosstodon.org/media_attachments/files/111/132/864/855/232/227/original/32d6e0737eaa2bc5.png 
 Found a neat Rust library for rate-limiting!

🦀 **leaky-bucket**: A token-based rate limiter based on the leaky bucket algorithm.

⭐ GitHub: https://github.com/udoprog/leaky-bucket

📚 Docs: https://docs.rs/leaky-bucket

#rustlang #ratelimiting #library #async

https://cdn.fosstodon.org/media_attachments/files/111/074/096/148/783/593/original/048d8ec7d47f24f9.png 
 TIL(rsync): you can use `--ignore-missing-args` argument to skip non existing files!

🐧 Reference: https://stackoverflow.com/questions/27636129/rsync-skip-non-existing-files-on-source/27637277

#linux #rsync 
 nostr:npub16uzkz67d5qv4mgqk2neawkxl5xf42adz6y9ple6kjfknw05qukpsf9xx07 Mod here. It's at +135. You... 
 @54ac4ca4 No worries, I'm not complaining. 
 nostr:npub16uzkz67d5qv4mgqk2neawkxl5xf42adz6y9ple6kjfknw05qukpsf9xx07 this mean that I can say go... 
 Great news from JetBrains! 🎉

🦀 **RustRover:** A brand new JetBrains IDE for Rust Developers.

#rustlang #IDE

https://www.jetbrains.com/rust/ 
 Found the coolest #Vim plugin ever!

👾 **cellular-automaton**: execute aesthetically pleasing animations.

⭐ GitHub: https://github.com/Eandrju/cellular-automaton.nvim

🕶️ This is how I get girls btw - terminal rizz?

#neovim #automation #plugin #terminal #commandline #linux

https://cdn.fosstodon.org/media_attachments/files/111/058/100/737/603/509/original/b1616a1e893e284f.mp4 
 bun bun bun 
 Just switched from **exa** to **eza** 🚀

🦀 A modern, maintained replacement for ls - written in #rustlang

⭐ GitHub: https://github.com/eza-community/eza

#linux #commandline #terminal #ls

https://cdn.fosstodon.org/media_attachments/files/111/029/977/344/021/043/original/4782911a48b11d09.png 
 Package registries are not secure sometimes 🫣

🦀 Rust Malware Staged on Crates.io

👾 https://blog.phylum.io/rust-malware-staged-on-crates-io/

#rustlang #malware #crate #package