This file contains hidden or 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
apiVersion: extensions/v1beta1 | |
kind: DaemonSet | |
metadata: | |
name: gateway-daemon-set | |
namespace: default | |
spec: | |
template: | |
metadata: | |
labels: | |
app: gateway-app |
This file contains hidden or 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
## == Certificate for any setup for free (4 months) == ## | |
## 1. Open http and https from all the world to the host | |
## == For openvpn server == ## | |
# systemctl stop openvpnas.service | |
## 2. Become root and run let's encrypt docker tool | |
$ sudo -i | |
# export [email protected] | |
# export DNSNAME=myhost.mydomain.com |
This file contains hidden or 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
gpfunction() { | |
git status | |
echo [Enter to continue...] | |
read a | |
git pull | |
git commit -am"$1" | |
git push | |
LATEST_TAG_NUMBER=`git tag |sort -n|tail -1` | |
NEW_TAG_NUMBER=`echo $LATEST_TAG_NUMBER + 1|bc` | |
git tag $NEW_TAG_NUMBER |
This file contains hidden or 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 | |
# Parse df selected output | |
df -h|egrep -v 'File|tmpfs|docker|udev'| \ | |
while read LINE; do | |
USED_NUMBER=`echo $LINE |awk '{print $5}'|sed 's/\%//'|sed 's/ //g'` | |
USED_PERCENT=`echo $LINE |awk '{print $5}'|sed 's/ //g'` | |
MOUNT_POINT=`echo $LINE |awk '{print $6}'|sed 's/ //g'` | |
if [ $USED_NUMBER -gt 80 ]; then | |
# Create message without spaces |