Better HN
topnewbestaskshowjobs
Log inSign up

gurgeous

2,133 karma · joined Jun 13, 2008 (18y ago) · 150 submissions

Hacker - many startups
Submissions

1.

Show HN: Ansi.md – Everything I know about building modern CLI apps(ansi.md ↗)

1 points · by gurgeous · 3mo ago · discuss

comment 6mo ago · link · parent

Thanks for adding this. Excited about array/regex, also very interested in your experience using LLMs to stretch your abilities. There are many of us laboring quietly on various projects attempting the same. "Vibe coding" (and the backlash) doesn't really capture how we work.

3.

Show HN: AnsiColor, resilient ANSI color codes for your TUI(ansicolor.com ↗)

4 points · by gurgeous · 9mo ago · discuss

comment 1y ago · link · parent

In Rand's video he does an "old" lime, mozzarella, and a shallot. It's just a quick vid he did in like five minutes but it shows some prep. Rand is a prolific amateur chef...

https://www.linkedin.com/feed/update/urn:li:activity:7374472...

Disclaimer: I've enjoyed many delicious meals at Rand's table

comment 1y ago · link · parent

I personally watched Scott spend years working on the project and obsessively iterating on the steel, the vibration pattern, the circuitry, the handle, and the form factor. Scott is a hacker, one of us for sure. I mean, the guy built a custom robot just to measure cutting efficiency...

The knife is amazing and exactly as shown in the video. Rand Fishkin has a nice short on LinkedIn trying out the knife too. I think he shows one his (sharp) kitchen knives slicing through a lemon, then the Ultrasonic. It's astounding.

Disclaimer: I am a (tiny) angel investor in Seattle Ultrasonics.

comment 1y ago · link · parent

I have used this knife, I am an angel investor in Scott's company. The thing is legit amazing. He labored for years to bring this to market and it shows.

comment 1y ago · link · parent

I am so excited about this!! Ruby tooling is already pretty good, but we can do better. I will try to contribute. Now we just need types

comment 1y ago · link · parent

This is neat, thanks for posting. I am using memo_wise in my current project (TableTennis) in part because it allows memoization of module functions. This is a requirement for my library.

Anyway, I ended up with a hack like this, which works fine but didn't feel great.

   def some_method(arg)
     @_memo_wise[__method__].tap { _1.clear if _1.length > 100 }
     ...
   end
   memo_wise :some_method

comment 1y ago · link · parent

This got some attention in r/ruby so I figured I'd post it here too..

TableTennis is a new gem for printing stylish tables in your terminal. We've used ad-hoc versions of this in our data projects for years, and I decided to bite the bullet and release it as a proper gem.

- auto-theme to pick light or dark based on your terminal background - auto-layout to fit your terminal window - auto-format floats and dates - auto-color numeric columns - titles, row numbers, zebra stripes...

By far the hardest part is detecting the terminal background color so we can pick light vs dark theme for the table. This requires putting the console into raw mode and sending some magic queries. These queries are widely supported but not universal. There are some great libraries for doing this in Go & Rust, but as far as I know nothing like it exists for Ruby. Check out the long comment at the bottom of this helper if you are curious:

https://github.com/gurgeous/table_tennis/blob/main/lib/table...

As always, feedback, feature requests and contributions are welcome.

10.

Show HN: TableTennis, a new rubygem for printing stylish tables in your terminal(github.com ↗)

5 points · by gurgeous · 1y ago · 1 comment

comment 1y ago · link · parent

Love the play by play.

comment 1y ago · link · parent

This is incredible! I will use this a ton. Only thing missing is a deb package...

comment 1y ago · link · parent

Hi Jeff, thanks for creating mise! I am gearing up to migrate from asdf, very excited to check it out. Not totally sure we can adopt mise for tasks (we use just) but willing to give it a whirl. Putting run commands into toml sounds like it might be challenging, I wonder if there's syntactic sugar that would help.

comment 1y ago · link · parent

Actually, it was package.json scripts that pushed me toward just! I wanted that stuff in non-node projects (python/ruby/~), I wanted more complicated scripts, I wanted more logging output, I wanted comments... For whatever reason every project seems to have 10-20 little commands (often interdependent) and just makes that a breeze.

comment 1y ago · link · parent

Question - mise is also incorporating a command runner. Anyone tried it yet? We love just, of course. Always curious about new tools.

comment 1y ago · link · parent

We love just and are using it in all projects now. So great. Our typical justfile has around ~20 rules. Here is an example rule (and helper) to illustrate how we use it in ci:

  export PATH := justfile_directory() + "/node_modules/.bin:" + env_var('PATH')

  ci:
    @just banner yarn install
    yarn install
    @just banner tsc
    tsc --noEmit
    @just banner lint
    eslint src
    prettier --check src
    @just banner vitest
    vitest --run
    @just banner done!
  
  banner *ARGS:
    @printf '\e[42;37;1m[%s] %-72s \e[m\n' "$(date +%H:%M:%S)" "{{ARGS}}"
This example is a bit contrived, more typically we would have a rule like "just lint" and you might call it from "just ci".

One of the best features is that just always runs from the project root directory. Little things like that add up after you've spent years wrestling with bash scripts.

comment 2y ago · link · parent

Also see the excellent https://github.com/your-tools/ruplacer.

For more advanced needs, I have a custom thing called greprep that let's you make changes using your favorite editor. Workflow is like this:

  1. $ rg -n .... > /tmp/lines.txt
  2. (edit lines.txt in vscode)
  3. $ greprep /tmp/lines.txt to apply the changes

18.

Show HN: Everything you ever wanted to know about smoke detectors(fireball.xyz ↗)

4 points · by gurgeous · 2y ago · discuss

comment 4y ago · link · parent

Seconded - I love just & Justfile. Such an upgrade after trying to force things into package.json scripts. Chaining commands, optional CLI arguments, comments, simple variables, etc. Very simple and a breath of fresh air.

20.

Advent of Code in 2021(old.reddit.com ↗)

3 points · by gurgeous · 5y ago · discuss

comment 5y ago · link · parent

Also, we turned up 2,000 domains that redirect to a very shady site called happyfamilymedstore[dot]com. Stuff like avanafill[dot]com, pfzviagra[dot]com, prednisoloneotc[dot]com. These domains made it into the Tranco 100k somehow.

Full list here - https://gist.github.com/gurgeous/bcb3e851087763efe4b2f4b992f...

comment 5y ago · link · parent

It's one icon per domain. Try hovering (on desktop) and you'll see that many domains have the same favicon.

comment 5y ago · link · parent

Also see the gigantic map - https://iconmap.io

The blog post is the analysis of the data set, the map is the visualization.

24.

We analyzed 425k favicons(iconmap.io ↗)

550 points · by gurgeous · 5y ago · 128 comments

comment 5y ago · link · parent

try "ycombinator.com" :P

comment 5y ago · link · parent

The map is pretty neat. Also see the giant analysis for the dataset at https://iconmap.io/blog. Turns out that a lot of folks have messed up their favicons.

Disclosure: I am one of the authors

27.

We Analyzed 425,909 Favicons(iconmap.io ↗)

6 points · by gurgeous · 5y ago · 3 comments

28.

Vultr Global Outage(constant.com ↗)

2 points · by gurgeous · 5y ago · discuss

29.

Imgix Incident – Elevated Rendering(imgur.com ↗)

3 points · by gurgeous · 5y ago · discuss

comment 5y ago · link · parent

Hey, great start. I spend half my day in CSVs and I am definitely your target audience. Most of the time I use bat, visidata or tabview. In many ways tabview is the best, though recently the project has been abandoned.

tv looks excellent. Fun name. I think if you added a couple of features it would ascend to my toolbox:

(1) scrolling (horizontal and vertical)

(2) better command line parsing. Running "tv" without stdin or arguments should produce an error/help. Running "tv xyz.csv" should read that file.

Good luck!

12345