Live data from Hacker News

Show HN: Shittp – Volatile Dotfiles over SSH

github.com

51–60 of 97 posts

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#51

time to call the it team at work (on the phone) to ask them to add a new item to the software allowlist

Be careful, this will force your defaults over system defaults possibly overriding compliance or security settings. There are a few places I noticed where well-placed malware could hop in etc. It’s not bad software, it’s also not mature. I’m currently on a phone and on vacation so this is the extent of my review. Maybe I’ll circle back around with some PRs next week

[deleted]

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#52
post #15

I have a dotfiles git repo that symlinks my dotfiles. Then I can either pull the repo down on remote machine or rsync. I’m not sure why I would pick this over a git repo with a dotfiles.sh script https://erock-git-dotfiles.pgs.sh/tree/main/item/dotfiles.sh...

This is for when you have to ssh into some machine that's not yours, in order to do debugging or troubleshooting -- and you need your precious dotfiles while you're in there, but it would be not nice to scatter your config and leave it as a surprise for the next person. This installs into temp dirs and cleans it all up when you disconnect. Personally, my old-man solution to this problem is different: always roll with…

There's definitely something be said for speaking the common tongue, and being able to use the defaults when it's necessary. I have some nice customisations, but make a point of not becoming depwndent on them because I'm so often not in my own environment.

On the other hand, your comment has me wondering if ssh-agent could be abused to drag your config along between jump hosts and enterprise nonsense, like ti does forwarding of keys.

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#54
post #49

I have a python script [0] which builds and statically links my toolbox (fish, neovim, tmux, rg/fd/sd, etc.) into a self contained —-prefix which can be rsynced to any machine. It has an activate script which sets PATH, XDG_CONFIG_HOME, XDG_DATA_HOME, and friends. This way everything runs out of that single dir and doesn’t pollute the remote. My ssh RemoteCommand then just checks for and calls the activate script if…

Is this available somewhere? I'm curious to see how this works.

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#55
post #15

I have a dotfiles git repo that symlinks my dotfiles. Then I can either pull the repo down on remote machine or rsync. I’m not sure why I would pick this over a git repo with a dotfiles.sh script https://erock-git-dotfiles.pgs.sh/tree/main/item/dotfiles.sh...

This is for when you have to ssh into some machine that's not yours, in order to do debugging or troubleshooting -- and you need your precious dotfiles while you're in there, but it would be not nice to scatter your config and leave it as a surprise for the next person. This installs into temp dirs and cleans it all up when you disconnect. Personally, my old-man solution to this problem is different: always roll with…

Why would you want to ssh into a machine that's not yours? That's a violation of the Computer Frauds and Abuse Act, up to 10 years in prison!

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#56
post #55

Earlier quoted context omitted.

This is for when you have to ssh into some machine that's not yours, in order to do debugging or troubleshooting -- and you need your precious dotfiles while you're in there, but it would be not nice to scatter your config and leave it as a surprise for the next person. This installs into temp dirs and cleans it all up when you disconnect. Personally, my old-man solution to this problem is different: always roll with…

Why would you want to ssh into a machine that's not yours? That's a violation of the Computer Frauds and Abuse Act, up to 10 years in prison!

When you have permission to do so, it isn’t.

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#57

Earlier quoted context omitted.

Any sufficiently-advanced automated rsync would have a filter for caches.

Except only ssh is filtered. Just commenting on what I see, not what should be

For sure, you need to exclude whatever "dotfiles" you don't want copied (or explicitly copy the ones you want), particularly caches and other giant hidden things.

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#58
post #49

I have a python script [0] which builds and statically links my toolbox (fish, neovim, tmux, rg/fd/sd, etc.) into a self contained —-prefix which can be rsynced to any machine. It has an activate script which sets PATH, XDG_CONFIG_HOME, XDG_DATA_HOME, and friends. This way everything runs out of that single dir and doesn’t pollute the remote. My ssh RemoteCommand then just checks for and calls the activate script if…

Is this available somewhere? I'm curious to see how this works.

Published a minimal version and added a link! This implements everything I mentioned except for static linking, so YMMV depending on your C/CXX toolchain and installed packages.

Re: Show HN: Shittp – Volatile Dotfiles over SSH

#60
post #58

Earlier quoted context omitted.

Is this available somewhere? I'm curious to see how this works.

Published a minimal version and added a link! This implements everything I mentioned except for static linking, so YMMV depending on your C/CXX toolchain and installed packages.

Thank you!
Post reply on HN