Count the lines of each file extension in a list of files: git ls-files | xargs wc -l | awk -F ' +|\\.|/' '{ sumlines[$NF] += $2 } END { for (ext in sumlines) print ext, sumlines[ext] }'; tinyurl.com/yscjkqtr#bash#linux
Replace a pattern in a file in a portable way: f=/path/to/file; sed -e "s/pattern/replacement/" "$f" > "$f".bak && mv "$f".bak "$f"; tinyurl.com/yqgln2av#bash#linux
Display the number of connections per IP to port 80: while true; do clear; date; echo; echo "[Count] | [IP ADDR]"; echo "-------------------"; netstat -n | grep ':80\>' | awk '! /LISTEN/ {print $5}' | cut -d: -f1 | uniq -c; sleep 5; done; tinyurl.com/yo5dtctb#bash#linux
Check if a version string is in valid SemVer format: re_semver=...; perl -wln -e "/$re_semver/ or exit(1)" <<< "$version"; tinyurl.com/yt3eaowb#bash#linux
89 Followers 468 Following"The further a society drifts from truth, the more it will hate those who speak it." - Orwell.
Personal views only. Not endorsed by my employer or affiliates.
3K Followers 1K Following#🅱louk™
a cartoonist among many others (but probably one of the best 😏).
#ink #art #SpreadLoveComix #comix #FragmentsFanzine #RadAtlanta
931 Followers 5K FollowingSecurity Systems Engineer | Packet-level ML Detection, Encrypted Distributed Pipelines & Automated Response. Systems architect working in founder mode.
11 Followers 84 Followingpacketbats.loopring.eth (this house is haunted by the ghost of Adam Smith). Advances in efficiency increasing productivity are narrowing the margin for liberty.
126 Followers 386 FollowingBe careful not to choke on your convictions/ Tenga cuidado de no atrangantarse con sus convicciones / Tenga cuidado de sus convicciones, que podria tragar sapos
149 Followers 1K FollowingGateira, curto séries/filmes, amo comer e viajar 💁🏻♀️. Meu CV diz que sou da TI 🤷🏻♀️. Desacreditada de tudo e todos, tentando (sobre)viver nessa loucura
226 Followers 2K FollowingMedical Doctor. Experience in internal medicine and psychiatry. Interested in civil rights, social justice, space exploration. Atheist.
Likes are Bookmarks!