Hacker Newsnew | past | comments | ask | show | jobs | submit | torqu3e's commentslogin

Here's the 20 line bash version I whipped up a while back cuz yes lazy about writing good commit messages.

Supports claude and gemini with model selection and goes into the githook such that when you type `git commit` it invokes and generates the message.

https://gist.github.com/torqu3e/c08f4aa4e80fba66dce6c35d63dd...


TLDR - use Grafana cloud and configure the agent to do the needed things. There should almost be no need to check for SSH access if the machine is up but yes you can process monitor for sshd.

Bit of a longer dump for an answer...

Having been running services at home for way too long now and my day job being running the cloud for large businesses I am tired of special snowflakey prone to breaking hand rolled solutions. My idea of a well run infrastructure is that I should be able to walk away from it hands off for extended periods of time and it just continues running/self heals, to that effect this is what I've come down to:

- 3 node k8s cluster on a bunch of random mini nucs

- Github repo with helm charts/manifests hooked to ArgoCD (runs on cluster) for CD. All changes get checked into repo and auto deploy to cluster. https://www.argonaut.dev/ is an option to not run own ArgoCD

- Grafana cloud free tier for shipping machine/cluster metrics and monitoring. Alerting is via pushover, you can email too

- Uptime kuma on a fly.io free instance for inbound HTTP/DNS/Cert etc. monitoring from the outside hooked to techulus push/pushover for alerting

- Terraform for DNS/cloudflare management via TF cloud offering for automated deploys again


$ brew list -1

  ==> Formulae
  bash
  bash-completion
  bat
  flyctl
  kubectx
  kubernetes-cli
  mosh
  ripgrep   # way better grep
  starship  # awesome terminal prompt
  wget
  
  ==> Casks
  aldente   # stop your mac from charging beyond a configurable charge level
  bitwarden
  brave-browser
  ears      # switch audio source/output quickly
  kitty     # awesome terminal
  raycast   # spotlight/alfred replacement
  rectangle # window manager (successor to the unmaintained spectacle)
  shottr    # screenshotting app
  signal
  spotify
  stats     # hardware stats in the menu bar
  visual-studio-code
  vlc
  zoom
https://github.com/jaywcjlove/awesome-mac is a list of all the cool stuff you could need on a new mac organized by category.


Mine is being an enabler for the partner's main hustle as an artist which entails being the IT guy, office manager, purchasing, research intern, whatever a small business needs done today.

She does the artwork commissions, freelance as well as sells direct to consumers https://sumitgill.me/


That is lovely. I could totally see some of the seamless repeats as wall or wrapping paper.


TLDR - Read this https://ozwrites.com/masters/

Longer answer...

Have you seen https://teachyourselfcs.com/ which is literally a tailor made resource for teaching engineers to be better programmers rather than a language. It's easily a year worth of material but followed along will put you ahead of the average joe bootcamp grad trying to land the same job.


Running the server end on an edgerouter as well as a sub $1/month VPS and both have been smooth!


May I ask where the vps is hosted?


The book Atomic habits gives a great framework on how to build great habits of making these small incremental changes that compound into big gains.


Racknerd with a discount code from lowendbox. They let you buy storage separately as well.


This will help understand that a lot...

https://youtu.be/SkNGxM4LRKQ


All bash version of it... pgrep -f $1 | xargs -I{} pmap -x {} | grep total | awk '{sum=sum+$4}END{printf "%.2f%s", sum/1024," MB\n"}'

e.g.

$ pgrep -f bash | xargs -I{} pmap -x {} | grep total | awk '{sum=sum+$4}END{printf "%.2f%s", sum/1024," MB\n"}'

74.79 MB


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: