Posts tagged #random
To upload random file from current working directory on Linux use a command similar to shown below, also do not forget to quote html as not doing so might cause bugs and this is just an example:
mkdir -p uploaded
FILE=$(find *.* -type f | shuf -n 1); curl -F 'key=<your api key>' -F "media=@$FILE" -F 'content="<p>some html here</p>"' https://loforo.com/api/post/create; mv -v $FILE uploaded
You can copy files you want to upload to a temporary directory by using a command below as example and run above command from there:
for arg in {1..10}; do FILE="$(find -type f|shuf -n 1|cut -d\/ -f2-)"; cp -v --backup=numbered "$FILE" /path/to/tmp/dir/; done Read More »
Quickly overheats the cpu if not cooled propelry. Can damage cpu fan if worn enough. Otherwise causes an intense run of the cpu fan close to it's maximum. A way to stress test the cpu.
ffmpeg -f rawvideo -video_size 320x240 -pixel_format bgr8 -framerate 15 -i /dev/urandom -t 1 -q:v 0 out.gif