Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Simulates a build/configuration/installation-like process, using a random message with a nice fake progress, with
- # percentage, random total and variable pace. The command does it as many times and as fast as you set in 2 first
- # variables (maxsteps and pace). Goes really well with a cup of coffee! ;)
- # maxsteps = number of steps to run until "finish".
- # pace = step increment speed. Lower numbers are faster. 500 works well.
- # Arrays a, b and c = word lists. change them as you like, words separated by space.
- clear; maxsteps=88; pace=500; a=( Tracking Updating Building Compiling Analyzing Saving Optimizing Scanning Checking Loading ); b=( system downloaded core hidden indexed compressed obfuscated scheduled default binary ); c=( files resources dependencies folders socket packages entries library list drivers ); j=0; while (( j < maxsteps )); do ((j++)); echo -n "$j) ${a[$[$RANDOM % ${#a[@]} ]]} ${b[$[$RANDOM % ${#b[@]} ]]} ${c[$[$RANDOM % ${#c[@]} ]]} "; total=$(( 20 + ($RANDOM % 150) )); for i in $(seq 0 $total); do ii=" "$((100*i/total)); echo -n -e ". > [${ii:(-2)}%]\b\b\b\b\b\b\b\b"; s=000$(($RANDOM % pace)); sleep 0.${s:(-3)}; done; echo " ok! "; done; echo -n -e "\nFinished\n\n";
- ------------------------------------------------------------------------------------------------------------------------------
- Output example:
- 1) Scanning indexed socket ............................................. ok!
- 2) Optimizing scheduled folders ....................................................................................................................................................................... ok!
- 3) Building system files ........................................................................... ok!
- 4) Compiling binary resources ....................................................... ok!
- 5) Checking scheduled files .................................................................................................................................................................. ok!
- 6) Scanning scheduled dependencies .................................................................... ok!
- 7) Saving indexed dependencies .................................................................................... ok!
- 8) Loading obfuscated list ................................... ok!
- 9) Analyzing indexed socket ............ ok!
- 10) Updating default library .............................................................................................................................................. ok!
- 11) Building scheduled drivers ............................................................... ok!
- 12) Optimizing binary dependencies ......................... ok!
- 13) Optimizing system entries .............................................................................................................................................................. ok!
- 14) Optimizing binary library .................. > [20%]
- Finished
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement