Made a quick filesharing bash script inspired by another Show HN post
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 cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
I wrote a script to parse (and post) my script
My first website, Tweet2Cite, inspired by a HN post
my side project inspired by HN post
Quick "Unfollow Everybody" script for Twitter
XKCD-inspired StackSort
Experimental Hyperdocument System Inspired by Doug Engelbart
Heresy, a BASIC-inspired functional Lisp
Functional Haskell-inspired arrows for Ruby
SwipeOut - 2048 inspired
WIP C compiler in Go, inspired by 8cc