frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

YouTuber faces jail time for showing off Android-based gaming handhelds

https://arstechnica.com/gadgets/2025/07/youtuber-faces-jail-time-for-showing-off-android-based-gaming-handhelds/
1•BallsInIt•46s ago•0 comments

Ask HN: Is OpenAI Acquiring Cursor?

1•schappim•5m ago•0 comments

The limits of our personal experience and the value of statistics

https://ourworldindata.org/limits-personal-experience
4•alphabetatango•16m ago•0 comments

Fast Speculative Decoding Algorithms for Heterogeneous Vocabularies

https://ICML.cc/virtual/2025/poster/43675
1•macleginn•17m ago•0 comments

Google finds custom backdoor being installed on SonicWall network devices

https://arstechnica.com/security/2025/07/google-finds-custom-backdoor-being-installed-on-sonicwall-network-devices/
3•akyuu•19m ago•0 comments

Show HN: A tool that alerts when 404s silently return 200)

https://heberjulio65.medium.com/when-an-404-suddenly-turns-200-and-you-didnt-knew-b35e474df44b
1•kurogai•24m ago•0 comments

Flower: A Friendly Federated AI Framework

https://flower.ai/
2•mpweiher•26m ago•0 comments

Show HN: SAML Proxy – decouple your SAML SP from your IdP

https://github.com/mikehadlow/samlproxy
2•mikehadlow•26m ago•1 comments

Upcoming coordinated security fix for all Matrix server implementations

https://matrix.org/blog/2025/07/security-predisclosure/
3•notpushkin•27m ago•0 comments

Peter Naur's legacy: Mental models in the age of AI coding

https://www.nutrient.io/blog/peter-naur-legacy-mental-models-age-ai-coding/
1•dmartincy•32m ago•1 comments

Voting age to be lowered to 16 in UK by next general election

https://www.theguardian.com/politics/2025/jul/17/voting-age-to-be-lowered-to-16-in-england-and-northern-ireland
4•hagbard_c•33m ago•3 comments

Untapped asset class no city planner is prepared for

https://flyingcar.sky.trade/
1•mrsmithadams•34m ago•0 comments

Mushroom learns to crawl after being given robot body

https://www.the-independent.com/tech/robot-mushroom-biohybrid-robotics-cornell-b2610411.html
2•Anon84•34m ago•0 comments

The AI Bubble Today Is Bigger Than the IT Bubble in the 1990s

https://www.apolloacademy.com/ai-bubble-today-is-bigger-than-the-it-bubble-in-the-1990s/
2•akyuu•35m ago•0 comments

Gmail/Google starts disabling features unless you agree to data processing

https://bsky.app/profile/victor.earth/post/3lu5ovm2oy22g
4•diggan•37m ago•0 comments

Scalability Is Not Performance

https://gregros.dev/architecture/scalability-is-not-performance
1•gregros•37m ago•0 comments

Mac graphics settings for Cyberpunk 2077 aim for console-like simplicity

https://arstechnica.com/gaming/2025/07/cyberpunk-2077s-mac-port-will-run-on-all-apple-silicon-chips-even-the-aging-m1/
2•kristianp•38m ago•1 comments

Belkin Wemo Discontinuation of Service

https://consumerrights.wiki/Belkin_Wemo_discontinuation_of_service
1•fidotron•40m ago•0 comments

The Art of the GPU Deal

https://www.nextplatform.com/2025/07/15/the-art-of-the-gpu-deal/
1•rbanffy•41m ago•0 comments

Show HN: InstaPodz – I made this to turn my boring commute into learning session

https://apps.apple.com/us/app/instapodz-ai-podcast-creator/id6744011584
2•AnsenHuang•45m ago•1 comments

Astronomer CEO caught having affair on Jumbotron

https://old.reddit.com/r/WatchPeopleDieInside/comments/1m239rb/astronomer_ceo_and_cpo_caught_having_an_affair_on/
2•abxyz•45m ago•0 comments

Sniffly: Claude Code dashboard with usage stats, error analysis

https://github.com/chiphuyen/sniffly
1•tosh•47m ago•0 comments

Beyond Street Imagery: Crowdsourcing Lidar [video]

https://www.youtube.com/watch?v=N92rACDMRak
1•altilunium•47m ago•0 comments

How to Reason from First Principles

https://caseyhandmer.wordpress.com/2025/07/16/how-to-reason-from-first-principles/
1•bschne•49m ago•0 comments

Voting age to be lowered to 16 by next general election

https://www.bbc.co.uk/news/articles/c628ep4j5kno
24•johneth•50m ago•19 comments

Show HN: Useful LLM prompt for codehooks.io automations

https://codehooks.io/docs/chatgpt-backend-api-prompt
1•bjabrboe1984•51m ago•0 comments

Anthropic Hires Back Two Coding AI Leaders from Cursor

https://www.techinasia.com/news/anthropic-rehires-key-claude-code-leaders-from-rival
2•CharlesXY•55m ago•1 comments

Show HN: Spyfall but with a LLM

https://amonghumans.io
1•Kehvinbehvin•58m ago•0 comments

Google Updates Its Vi vs. Emacs Easter Egg to Vim vs. Emacs

https://www.google.com/search?q=emacs
1•MarcellusDrum•59m ago•1 comments

Grok 4, deep dive comparisons with o3 (benchmarks are broken)

https://www.youtube.com/watch?v=v4JYNhhdruA
1•Sherveen•1h ago•1 comments
Open in hackernews

Ask HN: What are your favorite one-liner shell commands you use?

20•rajkumarsekar•6h ago
There are plenty of lists online with fancy or obscure one-liners, but I’m curious about the ones people actually use day to day.

Comments

TheNewAndy•6h ago
Not really a shell one liner, but ctrl+r (a readline command to do an incremental search backwards through history) is something that has been present on every shell I've used for decades without realising it, One day I decided to take the time to read all the magic readline commands because I wanted a way to quickly edit the N-th argument of a command with lots of arguments, and there were way too many of them. There were so many commands that I had no hope of remembering them all, but I figured I could just remember a few useful ones - and ctrl+r was one of them (ctrl+w and alt+b were the other two)

More to the letter of the question, I use "cd -" frequently, "ps -e | grep some_process_i_would_like_the_pid_for", and while I don't use it frequently, I didn't know about "ssh-copy-id" for a long time, and would do it manually with a text editor in the past. Sorry if they are not sufficiently fancy - but for things to get used day to day for me, they will need to be short and sweet.

vinhnx•6h ago
I also same here. Has since I discovered Ctrl+R, and equipped it with fzf (https://github.com/junegunn/fzf), every terminal command is in my hand, I can fuzzy search and not need to remember the exact command. This really saved me a lot of times.
scrapheap•4h ago
`cd -` is great for when you just want to nip out of your current directory for a second and then come straight back - especially as I'm pretty sure that most of us never think about pushd/popd until after we've moved to the other directory with cd :)
000ooo000•3h ago
Semi-related: if I want to do a little side quest, maybe pop over to another repo or git worktree for a quick look, I'll drop into a subshell just by running bash before cd-ing. Then I just exit that shell (alias q=exit) when I want to return back to the original dir and context.
scrapheap•3h ago
You know that you can just press <CTRL+D> at the bash prompt to quit it as well? (In fact <CTRL+D> will quit out of most command line programs as it's the End Of Transmission character)
willprice89•6h ago
dd if=/dev/zero bs=1M count=10 | nc -N -l -p 12345

Great simple test for network speed on a box without speedtest-cli or other tools installed.

jauco•5h ago
I rarely use the exact samme command multiple times. But here are some bash pipe segments I enjoy.

using pv (pipeviewer) instead of cat to get a progress bar when grepping huge files.

Using httpie instead of curl so I can remember the flags.

The power of find -exec to run commands on a lot of specific files. The nice part is you can run it without exec first to see if you have the right set of files.

If you do a loop you can echo -e “$somevar\r” and then each write will overwrite the previous line so you screen doesn’t fill up but you do get a feel for the progress (to make it nice you need to pad with spaces, google for echo carriage return to learn more)

scrapheap•4h ago
Find's -exec option is great when you need to automate removing old backups
xiconfjs•5h ago
:(){ :|:& };:
yjftsjthsd-h•4h ago
Do you, ah, find yourself using that a lot?:)
xiconfjs•2h ago
How else can I make use of my 16-core laptop processor?
AnonHP•3h ago
This is an “I need a long coffee break” command, right?
xiconfjs•2h ago
It‘s a „Mr. Computer-Man please help - my computer isn‘t working“ command :)
geocrasher•5h ago
Daily, and with enough general usability to share? I have a few. They are basic. You can probably figure out what industry I work in.

    df -h /; echo "----"; for fattable in $(find /var/lib/mysql/ -name *.ibd -size +1G -exec ls -lh {} \; | awk '{ print $9 }' );do echo BEFORE " " $(ls -lh $fattable| awk '{ print $5" " }'); db=$(echo $fattable| cut -d/ -f5); otable=$(echo $fattable| cut -d/ -f6| cut -d. -f1); echo mysql -qbse \"use $db \; optimize table  $otable\;\"|bash;echo AFTER" "" " $(ls -lh $fattable| awk '{ print $5" " }');echo "----" ;done; echo "----"; df -h /

    apachectl fullstatus | grep ^[0-9]| awk '{ print $12" "$14 }' | sort | uniq -c| sort -n |tail

    
    tail -100000 /var/log/nginx/access.log | sed "/$(hostname -i)/d" | awk '{ print $1" "$7 }' | sort | uniq -c | sort -n | tail -050


    find . -mtime -1 | cut -d/ -f2 |uniq

  
    pkill lsphp; sleep 2; while true; do sleep .4; strace -p $(ps aux | grep [i]ndex| awk '{ print $2 }' | head -01); done


    for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file 2>/dev/null; done| awk '{ print $2" "$3" "$1 }'  | sort -n | tail -20


    find . -size +200M -exec ls -lh {} \; | awk '{ print $5" "$9 }' 


    awk '{ print $4 }' 

https://explainshell.com/
scrapheap•4h ago
This one gets uses a lot to compare two versions a JSON file

  vimdiff <( jq < /tmp/file1.json ) <( jq < /tmp/file2.json )
samgutentag•4h ago
I have had the alias `huh` for years, which is just `pwd; whoami` just to confirm I am where I think I am, and I am who I think I am
andrei_says_•2h ago
Naming things is hard and this one is perfect.
000ooo000•3h ago
I have a super neat one but it's on my work machine. Not strictly a one-liner but definitely a CLI QoL improvement. It allows me to type a partial command, for e.g. up to where a file path might be, hit a hotkey to invoke (e.g.) fzf, and finally have fzf's output inserted where my cursor was in the command. Uses some vars that readline exposes. I haven't taken it beyond inserting paths yet, but you could imagine you could do a lot with inserting arbitrary output into a command you are midway through typing. I'll reply to this when I have it on hand.
sshine•2h ago
> but it's on my work machine

Install Tailscale on your machines, and your work machine is always just one ssh command away.

000ooo000•2h ago
I am not allowed to install legitimate development tools..
AnonHP•3h ago
Defined this in whatever init script the shell uses so that I get a long listing of files (first alias below) and long listing of files sorted from oldest to newest (second alias below):

alias ll=“ls -l”

alias lln=“ls -lrt”

Apart from this, I have a few aliases defined to get the size of specific folders and their subfolders (using ‘du -h’ for human readable sizes). The aliases are named like “duh”, “dut” and so on.

jjgreen•2h ago
All files in this git repository containing the string "foo"

    git grep foo | cut -d: -f1 | uniq
sshine•2h ago
Using ripgrep,

  rg -l foo | uniq
PeterWhittaker•16m ago
git grep -l foo | sort -u
rramadass•2h ago
1) Whenever building anything;

<make/build script> 2>&1 | tee build.log | grep <whatever>

2) Do everything within GNU Screen window with CTRL-A + Shift-H to log all output to logfile i.e. "screenlog.<window num>".

Both lifesavers when working with multiple systems and codebases.

3) Always use "set -o vi" with bash so that i can use vi/vim keybindings across everything.

bravesoul2•22m ago
Boring but

docker ps

docker kill

git switch

git commit

git push