DevOps
telegraf log rotate
· β˜• 1 min read · ✍️ CheeseMocha
should setup the log rotate size from 0mbg to a properly number, otherwise it will not work. ## Log target controls the destination for logs and can be one of "file", ## "stderr" or, on Windows, "eventlog". When set to "file", the output file ## is determined by the "logfile" setting. logtarget = "file" ## Name of the file to be logged to when using the "file" logtarget. If set to ## the empty string then logs are written to stderr.

Flaskadmin - a fully functional simple framework
· β˜• 1 min read · ✍️ CheeseMocha
github https://github.com/jonalxh/Flask-Admin-Dashboard download place https://github.com/jonalxh/Flask-Admin-Dashboard/archive/master.zip if it promotes error with not founding anything template, please change to bootstrap3. 1 2 3 4 5 6 7 admin = flask_admin.Admin( app, 'My Dashboard', base_template='my_master.html', template_mode='bootstrap3', ) Basic dashboard app with Admin LTE template and Flask Admin, it has: User Registration Login as general or admin user Roles management Create form in modal window by default Inline editing enabled by default Skins and

Cronjob in operation
· β˜• 1 min read · ✍️ CheeseMocha
XXLjob https://github.com/xuxueli/xxl-job cronsun https://github.com/shunfei/cronsun airflow https://github.com/apache/airflow docker cronjob if you want to refresh docker cronjob without docker restart. you need put another file under /etc/crontabs/root and update the file, the cronjob will be refreshed. docker file: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 FROM alpine #RUN apk update && apk add curl nano --update python2==2.7.18-r0 RUN apk update && apk add curl nano --update python3==3.