HNHacker News
TopNewBestAskShowJobs

GNOMES

337 karma · joined August 17, 2018

submissionscomments
GNOMES··on Small programming tricks
Simple trick I use almost daily for navigating backwards to an exact directory:

https://gist.github.com/GNOMES/6bf65926648e260d8023aebb9ede9...

I use this often instead of chaining together multiple '../..'.

Also nice for when I use Zoxide to CD into a deep nested directory. I quickly found out unless you manually CD each hop, the different parent directories aren't added to your Zoxide DB. (I have come across snippits to recursively CD into all directories in a path to "prepopulate" Zoxide).

I made this to jump directly from say `/foo/bar/batz/abc/123` to `/foo/bar/batz`.

GNOMES··on Show HN: The Unix Magic poster, annotated (updated)
Are there plans to annotate the other two posters?
GNOMES··on Show HN: Playing LongTurn FreeCiv with Friends
This sounds amazing. Hard to wrangle friends together to play a game, so giving a full day is great.

Ignoring Civ 2 vs Civ 5 differences, any experiancing hosting Unciv vs Freeciv?

https://github.com/freeciv/freeciv

https://github.com/yairm210/unciv

GNOMES··on Show HN: Wildex – Pokémon Go for real wildlife
Thinking back to 2016 when Pogo launched there were news stories about trespassing, people getting hurt etc for virtual creatures...

I could easily see someone be foolish enough to go up to predators

GNOMES··on The Unix Pipe Card Game
This gets shared a ton, but the old Bell Labs video from 4:56 to 10:52 is still the best way I have seen pipes explained:

https://www.youtube.com/watch?v=tc4ROCJYbm0

GNOMES··on Counter-Strike's player economy is in a freefall
This article is making me laugh.

Guy I used to play Diablo + Destiny with mentioned once that he had just sold a knife in CS for 4k, and was going to buy his first (used) car with it.

We thought he was joking.

GNOMES··on Scripts I wrote that I use all the time
I use my "dc" command to reverse "cd" frequently https://gist.github.com/GNOMES/6bf65926648e260d8023aebb9ede9...

Ex:

    > echo $PWD
    /foo/bar/batz/abc/123

    > dc bar && echo $PWD
    /foo/bar
Useful for times when I don't want to type a long train of dot slashes(ex. cd ../../..).

Also useful when using Zoxide, and I tab complete into a directory tree path where parent directories are not in Zoxide history.

Added tab complete for speed.

GNOMES··on Zoxide: A Better CD Command
I have been testing this as a daily driver since the last big mention on HN to simplify my .bashrc file.

I use it with `eval "$(zoxide init bash --cmd cd)"` so I can continue to use CD due to muscle memory.

    - I like that if there are multiple /foo directories known by Zoxide, say /foo/ and /abc/foo/, that you can do `cd abc foo` to go the path containing both.

    - I am not a fan of having to do `cd foo**` for tab completion to folders outside CWD. I feel it slows me down as a tab complete fanatic.

    - Also don't enjoy if I `cd foo/bar/batz` directly, then try `cd bar`, Zoxide has no reference. You would need to CD into each directory individually to build the database. I have seen scripts kicking around online to put a complete directory structure into Zoxide database by CD'ing to each subdirectory for you.
Not sure if I am officially sold, or I'll go back to aliases and simple tab completes forwards, and backwards (logic I use for tab complete backwards to exact directory name backwards from CWD instead of `cd ../../../etc` https://gist.github.com/GNOMES/6bf65926648e260d8023aebb9ede9...)
GNOMES··on Replacing tmux in my dev workflow
Never realized you can do that. Can you share that tmux binding? Right now I use `bind -r Space next-layout` for resizing (spam repeatedly).
GNOMES··on Replacing tmux in my dev workflow
I have been tempted to drop tmux locally for native Ghostty panes/tabs, but I prefer the single height tmux status bar with window list only (set -g status-left '' + set -g status-right '') vs the thicker window decorations using macos-titlebar-style = tabs.

I did come up with Ghostty bindings to replicate my tmux settings if it helps anyone (my tmux leader is ctrl + space):

    # clear default bindings + add paste back
    keybind=clear
    keybind=super+v=paste_from_clipboard

    # navigate panes
    keybind=ctrl+h=goto_split:left
    keybind=ctrl+j=goto_split:bottom
    keybind=ctrl+k=goto_split:top
    keybind=ctrl+l=goto_split:right
    keybind=ctrl+space>shift+apostrophe=new_split:down
    keybind=ctrl+space>shift+five=new_split:right
    keybind=ctrl+space>space=equalize_splits
    keybind=ctrl+space>z=toggle_split_zoom

    # navigate tabs
    keybind=ctrl+space>c=new_tab
    keybind=ctrl+space>one=goto_tab:1
    ...
    keybind=ctrl+space>zero=goto_tab:10
GNOMES··on TikTok Is Harming Children at an Industrial Scale
The fact that Family Link app on Android doesn't have this feature drives me crazy.

Youtube kids exists, but far too many channels are not available without manual intervention.

GNOMES··on Curl-impersonate: Special build of curl that can impersonate the major browsers
I had to do something like this with Ansible's get_url module once.

Was having issues getting module to download an installer from a vendors site.

Played with Curl/WGET, but was running into the same, while it worked from a browser.

I ended up getting both Curl + get_url to work by passing the same headers my browser sent such as User-Agent, encoding, etc

GNOMES··on An update on Mozilla's terms of use for Firefox
I thought the initial wording/hype was around poorly phrased lawyer speak for "you give FF permission to interact (post/get requests) with a web page as a browser. Don't sue us".

The whole some may consider it "legally selling your data" proves this is not just a Terms of Use change in good faith.

GNOMES··on A CLI to quickly launch VSCode/cursor devcontainers
Tooling looks useful, but still trying to understand Dev containers themselves.

Why use one of these premade container images vs using a base image, adding extra packages/layers as needed?

GNOMES··on Shunpo: Minimalist bash tool to make directory navigation a little bit faster
I use an Array + Sed to go backwards in path to an exact directory without having to spam cd ..:

https://gist.github.com/GNOMES/6bf65926648e260d8023aebb9ede9...

GNOMES··on I Switched to Firefox and Never Looked Back
I've been back on Firefox for 2-3 years now since the Manifest v3 stuff was initially brewing. Still eagerly waiting for Fission/tab isolation to land on Android.

Every morning I open a bookmarks folder with my dailies (news/blogs/Wordle/XKCD etc) that includes https://mrotherguy.github.io/fx-nightly-changelog/, and CTRL+F hoping for Fission on Fenix :(

GNOMES··on Stimulation Clicker
the whispering/eating guy is so tilting lol
GNOMES··on IMG_0001
Seems that views through this site don't seem to reflect?

Found a video that had zero views, watched to completion, then hit back on next video to return to it. Video still had 0 views.

GNOMES··on Command Line Tools I Like (2022)
I was previously really excited about this in the past, but uninstalled it due to remote storing of PDF features: https://www.reddit.com/r/commandline/comments/jb4axl/comment...

Has this gone away?

GNOMES··on Roblox is the biggest game in the world, but is unprofitable
Paying fines while still racking in cash. Basically the cost of doing business.
GNOMES··on Roblox is the biggest game in the world, but is unprofitable
Understand your point, but Epic (Fortnite) and games like Fifa have gotten sued or major slap on the wrists for the same practices
GNOMES··on Roblox is the biggest game in the world, but is unprofitable
My kiddo has easily spent 500+ on Roblox across birthday/Xmas gift cards/chores.

I can't stand that almost all of the games seem to have a pay to win aspect, or are heavily advertising every chance they get.

As a gamer dad, I try to show my kid better games to play, but because they aren't free, his friends can't play. Just drives him to keep playing and wanting more Robux. It's compounded when his favorite Youtubers play...

Seriously don't understand how Roblox isn't being investigated for predatory practices. I imagine they can hide behind the fact users are making most of the mini games, and they are just providing a platform.

GNOMES··on Show HN: I built an animated 3D bookshelf for ebooks
I wish Plex included something like this
GNOMES··on UN experts find 'no harmful effects' from Fukushima (2021)
This video shows lots of hand waving by the government/businesses involved. https://www.youtube.com/watch?v=UwFoOVyB40s
GNOMES··on Mourning Google
Curious on your Android would be dead without Samsung comment.

I know the US is skewed towards iOS, but Android is the #1 mobile OS, presumably due to cheap devices.

Is there a stat showing Samsung is largest manufacturer? I found this, but company market cap != number of devices obviously

https://finance.yahoo.com/news/16-biggest-smartphone-compani...

It looks like there are 20+ manufacturers in the Open Handset Alliance: https://en.wikipedia.org/wiki/Open_Handset_Alliance

GNOMES··on Fewer people are buying electric cars in the US
I was thinking more along the lines of a simple/reversible modification like existing propane conversions. I know there are people doing body off Tesla conversions and the like.

I envision batteries + motor/bio fuel cell in the trunk or something. I believe Mazda is looking into electric motors inside of wheels/hubs and Honda was exploring hydrogen in push rod engines.

I come from a hot rod family, so I understand your point on classics. Perfect example is a T-bucket vs a Model T.

GNOMES··on Fewer people are buying electric cars in the US
The biggest hurdle for many is the price of a new car + premium for electric.

--

Imagine a fairly priced "off the shelf kit" to convert existing cars:

1) Wide spread adoption of renewable energy, reducing fears of range anxiety, more demand for charging/fuel stations.

2) Dealers can option existing inventory as renewable, possibly increasing sales/profits

3) Would increase jobs/expertise in the mechanic and after market industries.

4) Keeps existing cars out of the scrap yards/land fills. Cut on manufacturing pollution of new cars.

5) Hobbyists and collector car owners could convert their cars as well.

Negatives that kill the idea:

1) Would cut into automaker profits, so I doubt lobbyist support/government incentives

2) Would hurt adoption of new safety features. Insurance companies go womp womp.

GNOMES··on Chess Written in GNU Sed
I really need to invest more time into Sed/Awk. I typically only use them for find/replace or deleting characters/lines in my shell scripts.
GNOMES··on Noclip.website: A digital museum of video game levels
I love this. I do worry about the licensing on some of the assets... P0k3m0n Snap is kinda interactive.
GNOMES··on Free Organ
Reminds me of a post on Reddit a few years ago about a guy with an organ in his house: https://www.youtube.com/watch?v=I7sT_FqTi6A
Page 1 of 4Next →