• 0 Posts
  • 179 Comments
Joined 1 year ago
cake
Cake day: June 19th, 2023

help-circle


  • friend_of_satan@lemmy.worldtoMalicious Compliance@lemmy.worldWork from home
    link
    fedilink
    English
    arrow-up
    44
    arrow-down
    1
    ·
    4 days ago

    It’s even simpler than that: they leased the office space and have to continue to pay that lease or else pay an early termination fee. This is basically the sunk cost fallacy. But you are right that sometimes additionally they get tax breaks for certain office space, for instance the San Francisco mid-market tax break (AKA the Twitter tax break)












  • If you’re scared to do rm -rf, do something else that lets you inspect the entire batch of deletions first. Such as:

    find .git ! -type d -print0 | xargs -0 -n1 echo rm -fv

    This will print out all the rm -fv commands that would be run. It’s basically rm -rf --dry-run, but rm doesn’t have that common option. Once you’ve verified that that’s what you want to do, run it again without echo to do the actual deletion. If you’re scared of having that in your history, either use a full path for .git, or prepend a space to the non-echo version of the command to make it avoid showing up in your shell history (assuming you have ignorespace in your HISTCONTROL env var)

    I use this xargs echo pattern a lot when I’m crafting commands that are potentially destructive or change lots of things.