Recent submissions

Comment · 1 year ago
a couple of prompts of claude code gave me this, works well enough, but while I agree that this is sometimes useful, it may indeed better served by a couple of aliases in the terminal ``` #!/bin/bash

# SwiftBar Port Monitor # Monitors processes on TCP ports 2000-6000

# Menu bar title echo " Ports" echo "---"

# Get processes listening on TCP ports 2000-6000 processes=$(lsof -iTCP:2000-6000 -sTCP:LISTEN -n -P 2>/dev/null | awk 'NR>1 {print $2 "|" $1 "|" $9}' | sort -t'|' -k3 -n)

if [ -z "$processes" ]; then echo "No processes found on ports 2000-6000" exit 0 fi

# Process each line while IFS='|' read -r pid name port_info; do if [ -n "$pid" ] && [ -n "$name" ] && [ -n "$port_info" ]; then # Extract port number from format like :3000 port=$(echo "$port_info" | sed 's/.://')

        # Menu item with port and process name
        echo "[$port] $name | color=blue"
        
        # Submenu items
        echo "--Kill (TERM) | shell=kill param1=$pid terminal=false refresh=true"
        echo "--Kill Force (KILL) | shell=kill param1=-9 param2=$pid terminal=false refresh=true"
        echo "--Process Info | shell=ps param1=-p param2=$pid param3=-o param4=pid,ppid,user,command terminal=true"
        echo "-----"
    fi
done <<< "$processes"

# Refresh option echo "---" echo "Refresh | refresh=true

Comment · 1 year ago
Surely going to lunch with 10k of equipment is safer, especially when you'll need to go to the toilet.
Comment · 3 years ago
this has nothing to do with "TS support" at all.
Comment · 3 years ago
is this a sign that finding developers is not that hard anymore, and they don't need to organize these competitions with the hiring budget?
Comment · 3 years ago
Comment · 3 years ago
It could be that the donation comes from matching the donations of some employees, or similar programs.
Comment · 4 years ago
I think he published this video when I was starting to think about the same things, especially about working out, where it's more important to workout consistently with a decent form/weight than to spend hours reading up science and working out very little.

Most "benchmarks" or data that we have mean very little because of the context (or lack of) they are done.

I often read critics to benchmarks in here and how they are not "real life scenarios", seems like CS is not the only world where this happens

Comment · 4 years ago
I can confirm that your posts, tweets and replies in reddit/hn are helpful to people like myself
Comment · 4 years ago
Comment · 4 years ago
React native and flutter are very, very different from a PWA.

While a PWA is a web app, react-native renders actual native components, and flutter has its own rendering engine. I wouldn't call them "web-based" tech

Comment · 4 years ago
Came to hackernews to check if somebody else had this problem after I saw my usage was $24,522,457.08 and I barely use github actions
Comment · 4 years ago
So this is a "This week vercel is sponsoring" episode...

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton