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
diskFree=`df -g / |sed -n '2p'|awk '{print $4}'` | |
echo "diskFree :$diskFree" | |
if ((diskFree<5)); then | |
echo "warning, disk is less then 5GB! please check your disk!" | |
fi |
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
const ProtoBuf = require('protobufjs'); | |
//create proto root | |
const myProtoRoot = new ProtoBuf.Root() | |
//load proto file | |
/* | |
one of the proto file | |
enum Test_Enum |
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 | |
usedDisk=`df -H |sed -n '2p'|awk '{print $5}'|cut -f 1 -d '%'` | |
if ((usedDisk>97)); then | |
echo "disk used is $usedDisk" | |
fi |