Better HN
topnewbestaskshowjobs
Log inSign up

torqu3e

11 karma · joined Dec 11, 2020 (5y ago) · 13 submissions

Submissions

comment 1y ago · link · parent

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...

comment 3y ago · link · parent

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

comment 4y ago · link · parent

$ 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.

comment 5y ago · link · parent

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/

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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

comment 5y ago · link · parent

This will help understand that a lot...

https://youtu.be/SkNGxM4LRKQ

comment 5y ago · link · parent

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

comment 5y ago · link · parent

Fastmail does email for my personal domain which is what I've been primarily using for not sure how many years and literally not once have I had any issues. Know at least a few other users in the same boat and never heard a complain.

comment 5y ago · link · parent

https://github.com/torqu3e/Bonafizy

Not really automation now with WFH but I had it hooked to a cron or tasker to turn the kettle on 5 minutes before the morning alarm goes off. Am quite proud of my ingenuity solving for my laziness :)