This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function t { echo $1 $2;input tap $1 $2;};function s { sleep $1;};while :;do t 370 360;t 850 330;t 710 690;t 1120 580;t 1500 720;t 1530 330;s 3;t 1260 990;s 5;t 1770 1010;t 600 230;t 610 410;t 920 820;t 1250 720;t 1630 520;t 1330 430;s 5;t 1050 750;t 960 980;s 3;done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while : | |
do | |
price=`curl --compress -se "http://m.cngold.org/home/dy110.html" "http://api.jijinhao.com/realtime/quotejs.htm?codes=JO_71" | grep -oP '(?<="q63":")[^"]+'` | |
s=`bc <<< "$price * 113.2546 - 30000"` | |
p=`bc <<< "scale=2; ($price - 264.89) / 2.6489"` | |
echo "| `date +%H:%M` | $price | $s | $p%" | |
echo -ne '\033]2;'"$price $s $p%"'\007' | |
sleep 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 金融指数:s_sz399240 | |
# 中证500:s_sz399905 | |
# 中证白酒:s_sz399997 | |
while : | |
do | |
echo -n "| `date +%H:%M` | " | |
output=`curl -s "http://hq.sinajs.cn/list=s_sh000001,s_sh000300,s_sz399905,s_sz399001,s_sz399006,s_sh000016" | iconv -f gbk -t utf8 | sed 's/中证 500/中证500/' | awk -F'[",]' 'BEGIN{ORS=" | "}{print $2,$3,$5"%"}'; curl -s "http://hq.sinajs.cn/?list=rt_hkHSI" | iconv -f gbk -t utf8 | awk -F'[",]' 'BEGIN{ORS=" | "}{print $3,$8,$10"%"}'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Solarized Dark] | |
text(bold)=839496 | |
magenta(bold)=6c71c4 | |
text=839496 | |
white(bold)=fdf6e3 | |
green=859900 | |
red(bold)=cb4b16 | |
green(bold)=586e75 | |
black(bold)=073642 | |
red=dc322f |