continue to cleanup
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
parent
158fbccc82
commit
4e21c23414
9 changed files with 0 additions and 59 deletions
59
fun/Bash-Prompt-HOWTO
Executable file
59
fun/Bash-Prompt-HOWTO
Executable file
|
|
@ -0,0 +1,59 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# This file echoes a bunch of colour codes to the terminal to demonstrate
|
||||
# what's available. Each line is one colour on black and gray
|
||||
# backgrounds, with the code in the middle. Verified to work on white,
|
||||
# black, and green BGs (2 Dec 98).
|
||||
#
|
||||
echo " On Light Gray: On Black:"
|
||||
echo -e "\033[47m\033[1;37m White \033[0m\
|
||||
1;37m \
|
||||
\033[40m\033[1;37m White \033[0m"
|
||||
echo -e "\033[47m\033[37m Light Gray \033[0m\
|
||||
37m \
|
||||
\033[40m\033[37m Light Gray \033[0m"
|
||||
echo -e "\033[47m\033[1;30m Gray \033[0m\
|
||||
1;30m \
|
||||
\033[40m\033[1;30m Gray \033[0m"
|
||||
echo -e "\033[47m\033[30m Black \033[0m\
|
||||
30m \
|
||||
\033[40m\033[30m Black \033[0m"
|
||||
echo -e "\033[47m\033[31m Red \033[0m\
|
||||
31m \
|
||||
\033[40m\033[31m Red \033[0m"
|
||||
echo -e "\033[47m\033[1;31m Light Red \033[0m\
|
||||
1;31m \
|
||||
\033[40m\033[1;31m Light Red \033[0m"
|
||||
echo -e "\033[47m\033[32m Green \033[0m\
|
||||
32m \
|
||||
\033[40m\033[32m Green \033[0m"
|
||||
echo -e "\033[47m\033[1;32m Light Green \033[0m\
|
||||
1;32m \
|
||||
\033[40m\033[1;32m Light Green \033[0m"
|
||||
echo -e "\033[47m\033[33m Brown \033[0m\
|
||||
33m \
|
||||
\033[40m\033[33m Brown \033[0m"
|
||||
echo -e "\033[47m\033[1;33m Yellow \033[0m\
|
||||
1;33m \
|
||||
\033[40m\033[1;33m Yellow \033[0m"
|
||||
echo -e "\033[47m\033[34m Blue \033[0m\
|
||||
34m \
|
||||
\033[40m\033[34m Blue \033[0m"
|
||||
echo -e "\033[47m\033[1;34m Light Blue \033[0m\
|
||||
1;34m \
|
||||
\033[40m\033[1;34m Light Blue \033[0m"
|
||||
echo -e "\033[47m\033[35m Purple \033[0m\
|
||||
35m \
|
||||
\033[40m\033[35m Purple \033[0m"
|
||||
echo -e "\033[47m\033[1;35m Pink \033[0m\
|
||||
1;35m \
|
||||
\033[40m\033[1;35m Pink \033[0m"
|
||||
echo -e "\033[47m\033[36m Cyan \033[0m\
|
||||
36m \
|
||||
\033[40m\033[36m Cyan \033[0m"
|
||||
echo -e "\033[47m\033[1;36m Light Cyan \033[0m\
|
||||
1;36m \
|
||||
\033[40m\033[1;36m Light Cyan \033[0m"
|
||||
|
||||
echo "--------------------------------------------"
|
||||
echo -e "\033[33m\033[1;39m Light Cyan \033[0m 1;36m \033[40m\033[1;36m Light Cyan \033[0m"
|
||||
13
fun/all_your_bash.sh
Executable file
13
fun/all_your_bash.sh
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
# All your bash are belong to us...
|
||||
# This is a harmless bash script... really!
|
||||
# Written out of pure boredom.
|
||||
# Terminal capable of ANSI color sequences recommended.
|
||||
|
||||
# - fuzzy
|
||||
|
||||
__="echo -ne ";___="return";:(){ [ $1 -lt 10 ] || { $__ " "; $___;};
|
||||
[ $((($4*$4)+($5*$5))) -gt 40000000 ] && { $__ "\033[3"$1"m##";$___;};
|
||||
: $(($1+1)) $2 $3 $((((($4*$4)-($5*$5))/1000)+$2)) $(((2*$4*$5)/1000+$3));};:_ (){
|
||||
[ $2 -lt 1600 ] || { $__ "\n" ;$___;};: 0 $2 $1 0 0;:_ $1 $(($2+100 ));};:__(){
|
||||
[ $1 -lt 1600 ] || $___;:_ $1 -2500;:__ $(($1+100));};:__ -1500
|
||||
Loading…
Add table
Add a link
Reference in a new issue