frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

How to automatically turn any .sh into a dry-run to see what it'll do

1•EGreg•2h ago

  <?php
  $script = file('link_plugins.sh');
  foreach ($script as $line) {
      $trim = trim($line);
      if ($trim === '' || $trim[0] === '#') {
          echo $line; // comments or blank
      } else {
          echo "echo '+ $trim'\n";
      }
  }
  ?>


  php dryrun.php > dryrun.sh
  bash dryrun.sh



Is there a better way?

Comments

stop50•2h ago
What better tool? Simple:

    less path/to/files
bashnull•1h ago
Exploit:

  $(rm -rf /)

When Nova introduced hacking to the mainstream

https://dfarq.homeip.net/when-nova-introduced-hacking-to-the-mainstream/
1•giuliomagnifico•1m ago•0 comments

Wikipedia in Danger? Elon Musk's AI-Powered 'Grokipedia' to Go Live in Two Weeks

https://www.thedailyjagran.com/world/elon-musk-grokipedia-launch-two-weeks-xai-wikipedia-rival-20...
1•thsName•3m ago•0 comments

Python PEP 636 – Structural Pattern Matching: Tutorial

https://peps.python.org/pep-0636/
1•crvdgc•4m ago•0 comments

Show HN: Nomad task driver for Cloud Hypervisor

https://github.com/volantvm/nomad-driver-ch
1•ccheshirecat•5m ago•0 comments

Rails application visualization and annotation tool

https://github.com/seuros/rails_lens
1•levadastra•5m ago•0 comments

Apple and Google remove apps that inform about ICE

https://apnews.com/article/apple-ice-iphone-app-immigration-fb6a404d3e977516d66d470585071bcc
3•Tryk•8m ago•1 comments

Beginner Guide to VPS Hetzner and Coolify

https://bhargav.dev/blog/VPS_Setup_and_Security_Checklist_A_Complete_Self_Hosting_Guide
2•itsbrgv•9m ago•0 comments

Wherever you get your Podcasts

https://knotbin.leaflet.pub/3lx3uqveyj22f
2•todsacerdoti•9m ago•0 comments

Show HN: ZeroDistraction – A Firefox extension that blocks distracting websites

https://addons.mozilla.org/en-US/firefox/addon/zerodistraction/
1•jsattler•14m ago•0 comments

WindowMode: Webcam-based 3D window illusion using head tracking

https://github.com/True3DLabs/WindowMode
2•mustaphah•16m ago•0 comments

Free Online Video Compressor

https://videocompress.ai
2•EasyComment•18m ago•0 comments

Password manager should support OS X Keychain (2001)

https://bugzilla.mozilla.org/show_bug.cgi?id=106400
1•LiamPowell•19m ago•1 comments

Why 95% of AI Projects Are Failing to Generate Returns

https://medium.com/@pcodesdev/the-ai-emperor-has-no-clothes-why-95-of-ai-projects-are-failing-and...
2•pcodesdev•28m ago•2 comments

Legal experts condemn Apple bowing to White House's request to remove ICEBlock

https://text.npr.org/nx-s1-5561999
3•pera•31m ago•0 comments

Hobby Hilbert Simplex

https://nedbatchelder.com/blog/202509/hobby_hilbert_simplex.html
1•todsacerdoti•33m ago•0 comments

A Thing or Two About RSA

https://nflatrea.bearblog.dev/a-thing-or-two-about-rsa/
2•DyslexicAtheist•36m ago•0 comments

Show HN: MetricsWave – own your metrics, ditch Google Analytics

https://github.com/metricswave/backend
1•falcon_•38m ago•0 comments

OpenAI to boost content owners control for Sora AI video app, plans monetization

https://www.reuters.com/business/media-telecom/openai-boost-content-owners-control-sora-ai-video-...
2•fatihkocnet•42m ago•0 comments

Planet Y? Astronomers find fresh clues of hidden world in our solar system

https://www.cnn.com/2025/10/03/science/planet-y-solar-system-study
1•tigerlily•42m ago•0 comments

The Observability Gap with kube-Prometheus-stack in Kubernetes

https://fatihkoc.net/posts/monitoring-kube-prometheus-stack/
1•fatihkocnet•45m ago•0 comments

Sleeping Beauty Problem

https://en.wikipedia.org/wiki/Sleeping_Beauty_problem
1•doener•47m ago•0 comments

Sharpie Found a Way to Make Pens More Cheaply–By Manufacturing Them in the U.S.

https://www.wsj.com/business/sharpie-us-production-cost-cutting-d9ba2abd
1•impish9208•47m ago•1 comments

I Made Vim into an Portable Executable

https://github.com/edoannunziata/vimape
1•netten•51m ago•0 comments

Autoreview: The Dragon Hatchling – The Missing Link Between the Transformer and

https://arxiviq.substack.com/p/the-dragon-hatchling
1•che_shr_cat•52m ago•0 comments

Self hosting 10TB in S3 on a framework laptop and disks

https://jamesoclaire.com/2025/10/05/self-hosting-10tb-in-s3-on-a-framework-laptop-disks/
3•ddxv•57m ago•1 comments

Liquid vs. Illiquid Careers

https://www.lesswrong.com/posts/Sdi7gkKSHkRspqqcG/liquid-vs-illiquid-careers
1•corimaith•57m ago•0 comments

Summary of Nix drama so far. Sep27 – Oct4 2025

https://gist.github.com/jonringer/37ea49415bdd06015e7ae5b7661d3696
2•ghuntley•57m ago•0 comments

Harvard Researchers Develop First Ever Continuously Operating Quantum Computer

https://www.thecrimson.com/article/2025/10/2/quantum-computing-breakthrough/
1•signa11•1h ago•0 comments

Pointer leaks through pointer-keyed data structures

https://googleprojectzero.blogspot.com/2025/09/pointer-leaks-through-pointer-keyed.html
1•signa11•1h ago•0 comments

What Is Man, That Thou Art Mindful of Him?

https://www.astralcodexten.com/p/what-is-man-that-thou-art-mindful
1•afiori•1h ago•0 comments