Capture video of a linux desktop:
- ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq /tmp/out.mpg
- lsof -i
- disown -a && exit
- nc -v -l 80 < file.ext
- while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-29));date;tput rc;done &
- wall [message]
- vim -x <FILENAME>
- dd if=/dev/cdrom of=whatever.iso
- readom dev=/dev/scd0 f=/path/to/image.iso
- man -t manpage | ps2pdf - filename.pdf
- gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=OUTPUT.pdf -c .setpdfwrite -f
- sudo touch /forcefsck
- sed -n 5p <file>
- for file in `ls *.pdf`; do convert -verbose -colorspace RGB -resize 800 -interlace none -density 300 -quality 80 $file `echo $file | sed 's/\.pdf$/\.jpg/'`; done
- read -sn 1 -p "Press any key to continue..."
- ( command & )
- cat /dev/urandom | hexdump -C | grep "ca fe" (this is CPU consumming)
- while [ true ]; do sleep 1; head -n 100 /dev/urandom | hexdump -C | grep "ca fe"; done
- A=1;B=100;X=0;C=0;N=$[$RANDOM%$B+1];until [ $X -eq $N ];do read -p "N between $A and $B. Guess? " X;C=$(($C+1));A=$(($X<$N?$X:$A));B=$(($X>$N?$X:$B));done;echo "Took you $C tries...";
- python -m SimpleHTTPServer 8080
- mount | column -t
- less +F somelogfile
- Using +F will put less in follow mode. This works similar to 'tail -f'. To stop scrolling, use the interrupt. Then you'll get the normal benefits of less (scroll, etc.). Pressing SHIFT-F will resume the 'tailling'.
- mysql -u root -p -BNe "select host,count(host) from processlist group by host;" information_schema
No comments:
Post a Comment