Ma

Made a quick filesharing bash script inspired by another Show HN post

Hacker News

Made a quick filesharing bash script inspired by another Show HN post

I got inspiration from this post https://news.ycombinator.com/item?id=33094627 Here is the script #!/bin/bash qrcode() { qrcode-terminal "http://"$(ip addr show wlp3s0 |grep -Eo $ipregex |head -n1 )":9000/" cd ~/.webshare && python3 -m http.server 9000 } share() { if [[ "$1" = "f" ]] then echo "success $1" [[ ! -d ~/.webshare ]] && mkdir -p ~/.webshare #cp -r --reflink "$2" ~/.webshare/ path="$(realpath "$2")" ln -s "$path" "/home/sanbotbtrfs/.webshare/" qrcode elif [[ "$1" = "s" ]] then path="$( find "$2" |fzf )" path="$(realpath "$path")" ln -s "$path" "/home/sanbotbtrfs/.webshare/" qrcode else error fi } cleanup() { echo 'cleanup operation ' rm -vrf ~/.webshare/* } error() { echo 'usage share [s/f] <filename/dir> ; s is for fuzzy search and f is regular ' } trap cleanup 1 2 3 6 14 15 ; [[ $# -eq 2 ]] && share "$1" "$2" || error

Share card

Actual performance

2points
2comments
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Hacker NewsMay not resonate with HN audience · Strong signals: 000, io · Missing: https docs, excited, just released
49%49% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Product HuntUnlikely to reach the leaderboard · Strong signals: new, code · Missing: mac, agents, macos
34%34% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Missing: mobile apps, ios, personal
32%32% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
30%30% predicted probability of success on AppSumo, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
24%24% predicted probability of success on BetaList, based on ML models trained on real launch data.
Indie HackersIH features products with proven revenue · Missing: supports, reddit linkedin, podcasting
19%19% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
12%12% predicted probability of success on Acquire.com, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

I
I wrote a script to parse (and post) my script29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

I wrote a script to parse (and post) my script

Hacker News1
My
My first website, Tweet2Cite, inspired by a HN post70%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

My first website, Tweet2Cite, inspired by a HN post

Hacker News13
my
my side project inspired by HN post74%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

my side project inspired by HN post

Hacker News5
Qu
Quick "Unfollow Everybody" script for Twitter62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Quick "Unfollow Everybody" script for Twitter

Hacker News11
XK
XKCD-inspired StackSort52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

XKCD-inspired StackSort

Hacker News948
Ex
Experimental Hyperdocument System Inspired by Doug Engelbart51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Experimental Hyperdocument System Inspired by Doug Engelbart

Hacker News1
He
Heresy, a BASIC-inspired functional Lisp62%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Heresy, a BASIC-inspired functional Lisp

Hacker News34
Fu
Functional Haskell-inspired arrows for Ruby68%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Functional Haskell-inspired arrows for Ruby

Hacker News3
Sw
SwipeOut - 2048 inspired50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

SwipeOut - 2048 inspired

Hacker News4
WI
WIP C compiler in Go, inspired by 8cc36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

WIP C compiler in Go, inspired by 8cc

Hacker News60