LiuDongdong

爱好由来落笔难,一诗千改心始安。

shell_scriptRecord

1. 内存监控脚本 #!/bin/bash #memory use mem_war_file=/tmp/mem_war.txt mem_use=`free -m | grep Mem | awk '{print $3}'` mem_total=`free -m | grep Mem | awk '{print $2}'` mem_percent=$((mem_use*100/mem_total)) # echo "$mem_percent"% if (($mem_percent > 80));then echo "`date +%F-%H-%M` mem: ${mem_percent}%" >$mem_war_file echo "`date +%F-%H-%M` mem: ${mem_percent}%" | mail -s "mem warning" root fi #!/bin/bash ####################################################### #检测网卡流量,并按规定格

Dagger2依赖注入

依赖注入可以实现解耦,达到高内聚低耦合的目的,保证代码的健壮性、灵活性和可维护性。 1. 依赖注入方式 1、构造注入:通过构造函数传参给依赖的成员变

database-greeDaos

for new apps we recommend ObjectBox, a new object-oriented database that is much faster than SQLite and easier to use. For existing apps based on greenDAO we offer DaoCompat for an easy switch (see also the announcement). 1. GreeDAO 一个将对象映射到SQLite数据库中的轻量且快速的ORM(ob
0%