frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Airbnb's Chesky Says US 'Misunderstanding' Use of Chinese Open-Source AI Models

https://www.bloomberg.com/news/articles/2026-05-20/airbnb-s-chesky-says-us-misunderstanding-use-o...
1•JSR_FDED•1m ago•0 comments

LLM's code is just untrusted text, until you validate it

https://hack8s.com/244/llms-code-is-just-untrusted-text-until-you-validate-it
1•justorius•2m ago•0 comments

Show HN: Fed.run – online collaborative Rust IDE and Markdown editor

https://fed.run
1•oinoom•2m ago•0 comments

Preventing AI agents from executing destructive terminal commands

https://github.com/7Majesty-M/terminal-guardian-mcp
1•majesty-m•2m ago•0 comments

Your Old Devices Depend on Dying Sensors. The Silicon Labs Incident Proves It

https://www.cambridge.org/engage/coe/article-details/6a054b304770e67d92e8c7a2
1•openrockets•3m ago•0 comments

We were building infra for OpenClaw, and today I just tried Hermes and holy shit

1•Stanlyya•3m ago•0 comments

Show HN: SimStream – code iOS apps from your phone by streaming the simulator

https://github.com/EliotAndres/SimStream
1•ea016•3m ago•0 comments

The Beauty of Tautologies

https://scottsumner.substack.com/p/the-beauty-of-tautologies
1•_laird•5m ago•0 comments

Hyperagents (Meta Research)

https://arxiv.org/abs/2603.19461
1•galsapir•6m ago•0 comments

How to Use a Spreadsheet for Combinatorial Creativity

https://www.nair.sh/guides-and-opinions/communicating-your-expertise/how-to-use-a-spreadsheet-for...
1•nilirl•6m ago•0 comments

Show HN: Solana Index Historical Solana Token Balance

https://solanaindex.top
1•hda_ycombinator•8m ago•0 comments

Texas sues Meta, WhatsApp over encryption privacy claims

https://www.reuters.com/legal/government/texas-sues-meta-whatsapp-over-encryption-privacy-claims-...
3•fahd777•9m ago•0 comments

The FBI Wants 'Near Real-Time' Access to US License Plate Readers

https://www.wired.com/story/security-news-this-week-fbi-license-plate-reader-real-time-access/
2•Brajeshwar•11m ago•0 comments

Show HN: I build a tool to encourage before reviewing code, review intents

https://github.com/mainline-org/mainline
1•crs0910•14m ago•0 comments

Is Logistic Regression Regression?

https://datascienceconfidential.github.io/r/predictive-models/2026/05/14/is-logistic-regression-r...
1•jprs•18m ago•0 comments

Dune Imperium Is an Everything Sandwich

https://12gramsofcarbon.com/p/boardgame-review-dune-imperium-is
1•theahura•18m ago•0 comments

Centaur – Multiplayer, self-hosted, secure agents

https://centaur.run/
1•magelinskaas•19m ago•0 comments

Emerging Patterns in Building GenAI Products

https://martinfowler.com/articles/gen-ai-patterns/
1•cebert•19m ago•0 comments

The Mysterious XF86AudioPlay Issue

https://michael-prokop.at/blog/2026/05/20/the-mysterious-xf86audioplay-issue/
2•birdculture•21m ago•0 comments

Tiny piece of math prevents perfect coding agents

https://hisohan.substack.com/p/this-tiny-piece-of-math-prevents
1•ronniebasak•21m ago•0 comments

Turn Phone to Speacker for PC

https://sonno.live
1•kinle•24m ago•0 comments

Tell HN: OpenAI Codex: Increase in users hitting Codex rate limits

https://status.openai.com/incidents/01KS88SRADTWQW27NYRAXMBAQN
3•embedding-shape•26m ago•2 comments

Sir John Soane and the red telephone box

https://www.soane.org/features/sir-john-soane-and-red-telephone-box-0
1•curio_Pol_curio•27m ago•0 comments

VPN [First VPN] used by ransomware actors dismantled in global crackdown

https://www.europol.europa.eu/media-press/newsroom/news/cybercriminal-vpn-used-ransomware-actors-...
3•sorenjan•28m ago•1 comments

Extensy

https://extensy.dev
2•amirlannk•29m ago•3 comments

How Metrics Drift: Goodhart's Law, Metric Gaming, and Reality Drift [pdf]

https://github.com/therealitydrift/reality-drift-library/blob/main/Reality%20Drift%20Project/03_R...
1•realitydrift•31m ago•0 comments

Why Did South Africa Relinquish Its Nuclear Weapons?

https://www.thecollector.com/south-africa-nuclear-weapons/
3•Tomte•31m ago•0 comments

Frontier Risk Report (February to March 2026) – METR

https://metr.org/blog/2026-05-19-frontier-risk-report/#incidents-hero
1•paraschopra•31m ago•0 comments

Maldives tragedy shines light on dangers of cave diving

https://www.theguardian.com/world/2026/may/23/maldives-diving-tragedy-cave-experts-warn-danger-sa...
1•YeGoblynQueenne•32m ago•0 comments

Building Complex Functions Out of Real Parts

https://www.johndcook.com/blog/2026/05/22/complex-functions-real-parts/
1•tzury•33m ago•0 comments
Open in hackernews

Git Commands That Cover 90% of a Developer's Daily Workflow

https://jsdev.space/15-git-commands/
29•javatuts•1y ago

Comments

epmatsw•1y ago
restore and maybe switch are the two missing ones I think. Rebase for me, but that’s preference. Cherry-pick too.
rentonl•1y ago
my co-workers used to think I was an expert in git. In reality, they memorized 7 commands while I memorized 15
hbogert•1y ago
i memorized that a commit tree is a ordered set of patches. Everything goes from there.
Areibman•1y ago
In similar fashion, this site has saved me countless hours fixing common git issues https://ohshitgit.com
the__alchemist•1y ago
I need to alias:

  git add .
  git commit -am "descriptive name"
  git push

to:

  git sync "descriptive name"
horsawlarway•1y ago
personally - skip the 'git add .'

It's a pretty terrible habit to get into, and will (not can - will) cause all sorts of headaches. From minor ones like personal editor configs getting dumped into the projects, all the way up to major ones like secrets ending up in your git history.

If you want something close, but much better, do something like:

    if [[ -n $(git ls-files --others --exclude-standard) ]]; then
        echo "There are untracked files.  Please add, remove, or ignore them."
    else
        git commit -am "descriptive name"
        git push
    fi
the__alchemist•1y ago
I see your point, but find it worth it for convenience. Ultimately git is a tool I use to get the job done, and I want it out of the way. 99% of the time, I just want to sync my project, which doesn't only mean edits to existing files.
open-paren•1y ago
How about `git add --patch -all` to make it interactive? I have that aliased to `gap` and it is probably my most used git command.
cholantesh•1y ago
That sounds better but I like the granularity I get from scrutinizing specific files or the patch takes too long to review.
speff•1y ago
I'd like to suggest also mentioning `git add -p` (--prompt). It's very helpful for just adding changes relevant to the commit
nickcw•1y ago
No `git rebase`?

Here are my stats for my last 300 or so git commands from my history

    $ history | grep git | awk '{print $3}' | sort | uniq -c | sort -rn

     71 log
     44 show
     34 diff
     26 co # alias for checkout
     24 cherry-pick
     23 status
     18 brs # alias for branch -v --sort=-committerdate
     13 rebase
     11 commit
     11 add
      8 push
      4 archive
      3 reset
      2 pull
      1 grep
      1 checkout
      1 br
Been doing lots of tricky merges recently hence all the cherry-picks! Not normally such a large part of my workflow.
mercer•1y ago
For me, I generally don't go far beyond the commands in the article, but I /do/ make a lot of use of git rebase -i in my branches.
karmakaze•1y ago
Maybe not essential, but reflog is invaluable.

I also like to separate fetch from pull (fetch + merge).

foobarkey•1y ago
Remove merge and add rebase and we agree :)

Oh and maybe cherry-pick

seba_dos1•1y ago
Both are essential.
realaleris149•1y ago
There are other commands?
incomplete•1y ago
also gonna echo the same sentiment: where's rebase? :)

two other git log commands i find to be insanely useful are:

alias hlog='git log --date-order --graph --date=short --format="%C(green)%h%Creset %C(yellow)%an%Creset %C(blue bold)%ad%Creset %C(red bold)%d%Creset%s"'

and:

alias alog='git log --date-order --all --graph --date=short --format="%C(green)%h%Creset %C(yellow)%an%Creset %C(blue bold)%ad%Creset %C(red bold)%d%Creset%s"'

this is great when working in a repo w/a main "prod" branch that you don't commit to directly, but instead commit to "staging" or "dev". alog shows you the entire repo's history for all branches, and hlog is just the graph of the non-pushable branches (plus all feature branches).

hbogert•1y ago
i can't take this seriously if there's no mention of the '--amend' option and 'rebase' command
OutOfHere•1y ago
It missed "git switch" and "git restore".