frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: LLM-costs – Compare LLM API costs from terminal (npx, zero install)

https://github.com/followtayeeb/llm-costs
1•followtayeeb•48s ago•0 comments

Show HN: Chat AI Agent inside mobile device testing sessions

https://robotactions.com/
1•krishpavuluri•1m ago•0 comments

Show HN: Andon – Toyota Production System for LLM Coding Agents

https://github.com/allnew-llc/andon-for-llm-agents
1•allnew_llc•1m ago•0 comments

I am an AI agent that sells data via x402 micropayments

https://pam-x402.vercel.app
1•PamnLambert•2m ago•1 comments

Thinnings: Sublist Witnesses and de Bruijn Index Shift Clumping

https://www.philipzucker.com/thin1/
1•todsacerdoti•3m ago•0 comments

AI Needs Management Consultants After All

https://www.wsj.com/tech/ai/ai-needs-management-consultants-after-all-bd28ecb9
1•petethomas•10m ago•0 comments

AluminatiAi – per-job GPU cost tracking for ML teams

1•AluminatiAi•14m ago•0 comments

The Cloco Loop – Code /Review Loop Using Claude and Codex

https://github.com/amazedsaint/clocoloop
1•amazedsaint•15m ago•0 comments

Show HN: Tighten skill to read AI-generated code faster

https://github.com/markrogersjr/skills/blob/main/skills/tighten/SKILL.md
1•markrogersjr•22m ago•0 comments

Spatial Programming [video]

https://www.youtube.com/watch?v=eQgxFuw8f1U
1•elcaro•22m ago•0 comments

Show HN: AlphaPerch – Track product execution for companies you follow using AI

https://alphaperch.com
1•sebasnar•23m ago•0 comments

Show HN: Compose Launcher – A macOS app to run multiple Docker Compose files

https://github.com/yingbo/compose-launcher
1•yingbo•26m ago•0 comments

Time Travel: Temporal Mutability in the Absence of Hardware [pdf]

https://wbnns.com/time-travel.pdf
1•wbnns•27m ago•0 comments

1190: Time (prize-winning Xkcd comic animation)

https://deplicator.github.io/xkcd-time-at-your-pace/
1•felineflock•28m ago•0 comments

Monocod

1•twoelf•31m ago•0 comments

MinusPod: Automatically Remove Ads from Podcasts

https://github.com/ttlequals0/MinusPod
2•Ttlequals0•33m ago•1 comments

The Rise of the Techno-Pastoral

https://noreturn.blog/p/the-rise-of-the-techno-pastoral
1•SuperShibe•34m ago•0 comments

I built a browser-based version of MARS MIPS simulator

https://webmars.nfiles.top/
2•nenepbl•39m ago•0 comments

Raymarching meets Dyalog APL (2024)

https://bl0v3.com/Blog/raymarching-in-dyalog-apl/
1•Duanemclemore•39m ago•0 comments

Tiled – Flexible Level Editor

http://www.mapeditor.org/
1•netule•41m ago•0 comments

Open source Claude Code swarms WTF

https://github.com/m0at/hermes-lite
1•sfffs•45m ago•1 comments

Work Life Balance in Japan's Tech Industry

https://japan-dev.com/blog/work-life-balance-in-the-japanese-tech-industry
1•etdev•46m ago•0 comments

Rust Bibliography

https://rustc-dev-guide.rust-lang.org/appendix/bibliography.html#rust-bibliography
1•vinhnx•47m ago•0 comments

Checking Write Bandwidth on GPUs

https://clamtech.org/?dest=gpuwrite
1•matt_d•48m ago•0 comments

Rectified Flow Auto Coder

https://world-snapshot.github.io/RAC/
1•E-Reverance•48m ago•1 comments

Servo is almost ready for Cordova, but there are two missing pieces

https://blog.merzlabs.com/posts/cordova-servo/
1•Fudgel•52m ago•0 comments

Model Collapse

https://aksioma.org/model-collapse
1•jruohonen•55m ago•0 comments

Show HN: Pmc – tiny single binary for packing code into LLM context

https://github.com/Water-Run/pack-my-code
3•linxxxx•55m ago•1 comments

I Asked My AI About Israel-Iran. It Tried to Intercept a Satellite

https://github.com/fredabila/orcbot
2•abilafredkb•55m ago•5 comments

Show HN: A high-performance, privacy-focused normal map generator in the browser

https://normalmap-generator.online/
1•maxnew•56m ago•1 comments
Open in hackernews

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

https://jsdev.space/15-git-commands/
29•javatuts•10mo ago

Comments

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

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

to:

  git sync "descriptive name"
horsawlarway•10mo 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•10mo 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•10mo 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•10mo ago
That sounds better but I like the granularity I get from scrutinizing specific files or the patch takes too long to review.
speff•10mo 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•10mo 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•10mo 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•10mo ago
Maybe not essential, but reflog is invaluable.

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

foobarkey•10mo ago
Remove merge and add rebase and we agree :)

Oh and maybe cherry-pick

seba_dos1•10mo ago
Both are essential.
realaleris149•10mo ago
There are other commands?
incomplete•10mo 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•10mo ago
i can't take this seriously if there's no mention of the '--amend' option and 'rebase' command
OutOfHere•10mo ago
It missed "git switch" and "git restore".