Readit News logoReadit News
toddyamakawa commented on Ask HN: Most interesting tech you built for just yourself?    · Posted by u/l2silver
parentheses · 3 years ago
I'm slightly embarrassed that in terms of building personally relevant things, my proudest (digital) work is always shell scripts I use daily. Most of my personal projects are non-technical meat-space things like building with wood and the like. Here's some that I've open-sourced:

- A git interface using fzf that works pretty nicely and is very composable. https://github.com/bigH/git-fuzzy

- An interactive evaluator, perfect for interactive `sed`, `grep`, `jq`, etc. If properly configured, it'll keep history per command or using whatever key you give it. I find myself using it often with `jq`. https://github.com/bigH/interactively

There are many other shell functions/scripts that are interesting from my `dotfiles`. Particularly interesting snippets for anyone who wants them:

- A recursize `which` that follows symlinks and stops at a real file. https://github.com/bigH/dotfiles/blob/3d48792b4e910d2fc82504...

- A `watch` alternative that runs in the current shell. https://github.com/bigH/dotfiles/blob/3d48792b4e910d2fc82504...

toddyamakawa · 3 years ago
What kind of work do you do? Does your day job involve writing shell scripts? Or is that something you do on the side?
toddyamakawa commented on Ask HN: Most interesting tech you built for just yourself?    · Posted by u/l2silver
bussyfumes · 3 years ago
Glad you enjoyed!

Could you elaborate on 'start from a solution and keep expanding it'? I thought of it more like checking the field for certain patterns that tell if it can't be solved and generating fields until one passes that check.

toddyamakawa · 3 years ago
Start with 4 different color cubes, each with the value of 128.

Then just keep splitting them until you have a full the game. You'll need some intelligence in deciding which cubes to split and where to stack the split cube.

But if you reach a state where you can't split anymore you can must backtrack and try again.

u/toddyamakawa

KarmaCake day2May 7, 2023View Original