Live data from Hacker News

Viewing profile — snow_mac

snow_mac

HN member
Joined
Sun, Nov 14, 2010, 7:41 PM UTC
HN karma
1,065
Public activity
357 items

About snow_mac

# Keep the terminal awake by simulating a Shift+Up Arrow key press every 30 seconds # Useful for preventing sleep during long tasks like downloads or builds # Usage: coffee [-m minutes] # -m minutes : run for specified number of minutes, then stop # If no -m option is given, runs indefinitely coffee() { if [ -f ~/.bash_history ]; then sed -i.bak '/^coffee/d' ~/.bash_history fi if [ -f ~/.zsh_history ]; then sed -i.bak '/coffee/d' ~/.zsh_history fi history -d $(history 1 | awk '{print $1}') 2>/dev/null

  local duration=0

  if [[ "$1" == "-m" && -n "$2" ]]; then
    duration=$(($2 * 60))
  fi

  local count=0
  while true; do
    # shift arrow key down
    # osascript -e 'tell application "System Events" to key code 126 using {shift down}'
    # F-13 
    osascript -e 'tell application "System Events" to key code 105'
    sleep 30

    count=$((count + 30))
    if [[ $duration -gt 0 ]]; then
      if [[ $count -ge $duration ]]; then
        break
      fi
    fi

    # Print elapsed time every 60 seconds
    if (( count % 60 == 0 )); then
        echo -ne "\r$((count/60)) minutes elapsed\n"
    fi
  done
}

Recent public activity

  1. comment
    Comment #49125220

    Maybe your argument works for a few specific cases, what about those that do not meet that? What about someone with stage 4 cancer who needs radiation and will likely live a year o…

  2. comment
    Comment #49125129

    Evil. Just evil. Terminally ill patients can't work, they're on deaths door. If they don't get treatment, they are dead. Let's let the medical decisions be handled by doctors and n…

  3. comment
    Comment #48492311

    I am actively developing on 4 projects fulltime. Kind of like double or triple dipping but just 1 employer. With a Claude Code license I'm running 2-4 CLI instances with AI. I'm bo…

  4. story
  5. comment
    Comment #46643386

    Created two days ago.... Did you use Claude Code to generate the open source code? :P

  6. comment
    Comment #46639712

    I love this. I recently found a few solar panels dumpster diving that put out a good load. Just basic scratches and that is all. I am building out my own system to power my house a…

  7. comment
    Comment #46623450

    https://www.adambourg.com/ - mostly blogging about javascript, the bible and various AI topics

  8. story
    Ask HN: How to stay relevant in the age of AI?

    Howdy friends In the age of agentic AI, Claude code and all the amazing stuff like Kiro, Q and Cursor. How do you stay relevant? What are the things a web / react developer should …

  9. comment
    Comment #46538451

    This is a good thing, the next step however is to block the guys that use sites like BiggerPockets.com from buying up more then 5 single family homes. I know a whole bunch of guys …

  10. comment
    Comment #46291369

    How do you get access get all the local government meetings? Do you have a crawler that looks up every city in the country then visits each website and pull down the info? A public…

  11. comment
    Comment #45932692

    This is amazing. I wonder how it works. I would be cool if they published it.

  12. comment
    Comment #45202369

    Conservative activist Charlie Kirk has been shot at a campus event in Utah Kirk - an influential ally of President Trump - is known for holding open-air debates on campuses across …

  13. story
  14. comment
    Comment #45198515

    What's so great about this? A phone with a weird shape due to the camera? Yahoo, yay so light /sarcasm. Who cares? $1000 for another shiny object thats thin, that has "ALL DAY" bat…

  15. comment
    Comment #44159874

    Funny you should ask, I just paid my mortgage. Mortgage - $3800 Groceries - ~$1000 Eating out - ~$1000 TV / Internet - $250 Utilities (Water, electric, sewer, gas, trash) - $400 av…

  16. comment
    Comment #43354625

    My suggestion is talk to small, indie recruiters. Big recruiting firms will not likely have these types of roles. I'm currently doing a 2 month contract, 40 hours a week, for a sma…

  17. comment
    Comment #42992449

    I trade in retirement accounts, so taxes don't apply.

  18. comment
    Comment #42952058

    Bad UX? Maybe a bad UI but the UX is fantastic. I prefer the keyboard magic I can do. Just look at MARSHA (For Marriott hotels), a terrible UI but major in the keyboard warriors th…

  19. comment
    Comment #42869775

    "Shares resume fall" - I think you really mean it resumes being a super volatile stock. On a weekly basis it gains and drops 10-15%. I know because I buy when it drops 10-15% then …

  20. comment
    Comment #42404238

    Interesting. Is it a vacuum to attach to the bags?

  21. comment
    Comment #42079091

    I made some generalizations, but if you want to discuss policies, these policies I believe are vital to the future of our country and the main reason I voted for him. I approve of …

  22. comment
    Comment #42070633

    I get really tired of this narrative that people are pushing that trump voters are somehow ignorant, stupid or simply don't care. We're not ignorant, we care a lot and we're not be…

  23. comment
    Comment #41196417

    "attract experienced developers to a non-glamorous industry like logistics" -- Pay them well and offer a remote work environment. If you're interested in chatting with a senior / l…

  24. story
  25. comment
    Comment #40937845

    Where is the startup match?