动向MYJAVA
java -jar /usr/local/zh/JavaApplication6/JavaApplication6.jar &
java -jar /usr/local/zh/callback/callback.jar &
可通过在线生成Cron表达式的工具:http://cron.qqe2.com/ 来生成自己想要的表达式
zh_shell restart
用vim编辑脚本文件时加上-b,即vim -b filename,这样打开的文件是"Binary mode",可以看到多出来的东西,显示的是^M,删掉保存运行就行了。
sh /etc/profile.d/zh_shell.sh restart &
该方法最简单了。我们创建一个 cron 任务,这个任务在系统启动后等待 90 秒,然后执行命令和脚本。
要创建 cron 任务,打开终端并执行
$ crontab -e
然后输入下行内容,
@reboot ( sleep 90 ; sh /location/script.sh )
这里 \location\script.sh 就是待执行脚本的地址。
退出 ctrl + z
.Ctrl+x 保存输出
Ctrl+O 写入
:wq 保存
MYSQL 操作
1.创建
create table callTaskList( id INT NOT NULL AUTO_INCREMENT,caller varchar(15),isNormal INT(11),isNeedDoJob INT(11),startTime varchar(30),suspendTime varchar(30),timestemp timestamp NOT NULL DEFAULT CURRENT_TIMESTAMPPRIMARY ,KEY (id))ENGINE=InnoDB DEFAULT CHARSET=utf8;
2.添加
INSERT INTO calltasklist ( caller , isNormal , isNeedDoJob , startTime , suspendTime , username , TotalCharg ) VALUES ( 156295291 , 1 , 1 , 1 , 1 , 1752 , 100 )
3.查询
select * from a13288885558 where callId is NULL limit 1;
select max(id) from pushdb where callId=
select max(id), fwdAnswerTime,step from pushdb where callId=11334388 ;
SELECT * FROM pushDB WHERE called=+8616528482906 AND timestamp between '2019-09-23 23:45:00' AND '2019-09-23 23:45:06'
4.删除
delete from 表名 where 条件
delete from user where id = 1;
5.更新
UPDATE calltasklist set isNeedDoJob=1 , startTime="00:00" , suspendTime="23:59" WHERE id=2
2019-9-15
薅羊毛 | 让Python每天帮你薅一个早餐钱
1.%0A%E5%8A%A8%E5%90%91MYJAVA%20%0A%0A%20java%20-jar%20%2Fusr%2Flocal%2Fzh%2FJavaApplication6%2FJavaApplication6.jar%20%26%0A%0A%20java%20-jar%20%2Fusr%2Flocal%2Fzh%2Fcallback%2Fcallback.jar%20%26%0A%0A2.%0A%E5%8F%AF%E9%80%9A%E8%BF%87%E5%9C%A8%E7%BA%BF%E7%94%9F%E6%88%90Cron%E8%A1%A8%E8%BE%BE%E5%BC%8F%E7%9A%84%E5%B7%A5%E5%85%B7%EF%BC%9Ahttp%3A%2F%2Fcron.qqe2.com%2F%20%E6%9D%A5%E7%94%9F%E6%88%90%E8%87%AA%E5%B7%B1%E6%83%B3%E8%A6%81%E7%9A%84%E8%A1%A8%E8%BE%BE%E5%BC%8F%0A%0A3.%0A%20zh_shell%20%20restart%0A%E7%94%A8vim%E7%BC%96%E8%BE%91%E8%84%9A%E6%9C%AC%E6%96%87%E4%BB%B6%E6%97%B6%E5%8A%A0%E4%B8%8A-b%EF%BC%8C%E5%8D%B3vim%20-b%20filename%EF%BC%8C%E8%BF%99%E6%A0%B7%E6%89%93%E5%BC%80%E7%9A%84%E6%96%87%E4%BB%B6%E6%98%AF%22Binary%20mode%22%EF%BC%8C%E5%8F%AF%E4%BB%A5%E7%9C%8B%E5%88%B0%E5%A4%9A%E5%87%BA%E6%9D%A5%E7%9A%84%E4%B8%9C%E8%A5%BF%EF%BC%8C%E6%98%BE%E7%A4%BA%E7%9A%84%E6%98%AF%5EM%EF%BC%8C%E5%88%A0%E6%8E%89%E4%BF%9D%E5%AD%98%E8%BF%90%E8%A1%8C%E5%B0%B1%E8%A1%8C%E4%BA%86%E3%80%82%0Ash%20%2Fetc%2Fprofile.d%2Fzh_shell.sh%20restart%20%26%0A%0A%E8%AF%A5%E6%96%B9%E6%B3%95%E6%9C%80%E7%AE%80%E5%8D%95%E4%BA%86%E3%80%82%E6%88%91%E4%BB%AC%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%20cron%20%E4%BB%BB%E5%8A%A1%EF%BC%8C%E8%BF%99%E4%B8%AA%E4%BB%BB%E5%8A%A1%E5%9C%A8%E7%B3%BB%E7%BB%9F%E5%90%AF%E5%8A%A8%E5%90%8E%E7%AD%89%E5%BE%85%2090%20%E7%A7%92%EF%BC%8C%E7%84%B6%E5%90%8E%E6%89%A7%E8%A1%8C%E5%91%BD%E4%BB%A4%E5%92%8C%E8%84%9A%E6%9C%AC%E3%80%82%0A%E8%A6%81%E5%88%9B%E5%BB%BA%20cron%20%E4%BB%BB%E5%8A%A1%EF%BC%8C%E6%89%93%E5%BC%80%E7%BB%88%E7%AB%AF%E5%B9%B6%E6%89%A7%E8%A1%8C%0A%24%20crontab%20-e%0A%E7%84%B6%E5%90%8E%E8%BE%93%E5%85%A5%E4%B8%8B%E8%A1%8C%E5%86%85%E5%AE%B9%EF%BC%8C%0A%40reboot%20(%20sleep%2090%20%3B%20sh%20%2Flocation%2Fscript.sh%20)%0A%E8%BF%99%E9%87%8C%20%5Clocation%5Cscript.sh%20%E5%B0%B1%E6%98%AF%E5%BE%85%E6%89%A7%E8%A1%8C%E8%84%9A%E6%9C%AC%E7%9A%84%E5%9C%B0%E5%9D%80%E3%80%82%0A%E9%80%80%E5%87%BA%20ctrl%20%2B%20z%0A.Ctrl%2Bx%20%E4%BF%9D%E5%AD%98%E8%BE%93%E5%87%BA%0ACtrl%2BO%20%20%E5%86%99%E5%85%A5%0A%3Awq%20%E4%BF%9D%E5%AD%98%0A%0A%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A%0AMYSQL%20%E6%93%8D%E4%BD%9C%0A1.%E5%88%9B%E5%BB%BA%0A%20create%20table%20callTaskList(%20id%20INT%20NOT%20NULL%20AUTO_INCREMENT%2Ccaller%20varchar(15)%2CisNormal%20INT(11)%2CisNeedDoJob%20INT(11)%2CstartTime%20varchar(30)%2CsuspendTime%20varchar(30)%2Ctimestemp%20timestamp%20NOT%20NULL%20DEFAULT%20CURRENT_TIMESTAMPPRIMARY%20%2CKEY%20(id))ENGINE%3DInnoDB%20DEFAULT%20CHARSET%3Dutf8%3B%0A%20%0A%202.%E6%B7%BB%E5%8A%A0%0A%20INSERT%20INTO%20calltasklist%20(%20caller%20%2C%20isNormal%20%2C%20isNeedDoJob%20%2C%20startTime%20%2C%20suspendTime%20%2C%20username%20%2C%20TotalCharg%20)%20VALUES%20(%20156295291%20%2C%201%20%2C%201%20%2C%201%20%2C%201%20%2C%201752%20%2C%20100%20)%0A%20%0A%203.%E6%9F%A5%E8%AF%A2%0A%20select%20*%20from%20a13288885558%20where%20callId%20is%20NULL%20limit%201%3B%0A%0Aselect%20max(id)%20from%20pushdb%20where%20callId%3D%0A%0Aselect%20max(id)%2C%20fwdAnswerTime%2Cstep%20%20from%20pushdb%20where%20callId%3D11334388%20%3B%0A%0ASELECT%20*%20FROM%20pushDB%20WHERE%20called%3D%2B8616528482906%20%20AND%20timestamp%20between%20'2019-09-23%2023%3A45%3A00'%20AND%20'2019-09-23%2023%3A45%3A06'%0A%0A4.%E5%88%A0%E9%99%A4%0Adelete%20from%20%E8%A1%A8%E5%90%8D%20where%20%E6%9D%A1%E4%BB%B6%0Adelete%20from%20user%20where%20id%20%3D%201%3B%0A%0A5.%E6%9B%B4%E6%96%B0%0AUPDATE%20calltasklist%20set%20isNeedDoJob%3D1%20%2C%20startTime%3D%2200%3A00%22%20%2C%20suspendTime%3D%2223%3A59%22%20WHERE%20id%3D2%0A%0A%3D%3D%0A%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%3D%0A2019-9-15%0A%5B%E8%96%85%E7%BE%8A%E6%AF%9B%20%7C%20%E8%AE%A9Python%E6%AF%8F%E5%A4%A9%E5%B8%AE%E4%BD%A0%E8%96%85%E4%B8%80%E4%B8%AA%E6%97%A9%E9%A4%90%E9%92%B1%5D(https%3A%2F%2Fwww.toutiao.com%2Fi6747203948819513869%2F%3Ftt_from%3Dweixin%26utm_campaign%3Dclient_share%26wxshare_count%3D1%26timestamp%3D1571100820%26app%3Dnews_article%26utm_source%3Dweixin%26utm_medium%3Dtoutiao_android%26req_id%3D20191015085340010014040090023CE8B2%26group_id%3D6747203948819513869)%0A%0A%0AAndroid%20Device%20Class---%3Eget_default_device()%0Ahttp%3A%2F%2Fairtest.netease.com%2Fdocs%2Fdocs_AirtestIDE-zh_CN%2F5_airtest_framework%2Fairtest_all_module%2Fairtest.core.android.android.html%3Fhighlight%3Dget_default_device%23airtest.core.android.android.Android.get_default_device