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 | |
repodir="/home/user/repo" | |
check_git() { | |
cd $repodir | |
current="cat .git/FETCH_HEAD | awk '{print $1}'" | |
git pull | |
pulled="cat .git/FETCH_HEAD | awk '{print $1}'" | |
if [ $current = $pulled ];then |
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 | |
wget https://www.snort.org/downloads/community/community-rules.tar.gz -O community-rules.tar.gz | |
tar -xvzf community-rules.tar.gz -C /etc/snort/rules | |
systemctl restart snort |
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
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: code-server | |
--- | |
apiVersion: v1 | |
kind: Secret | |
metadata: | |
name: code-server |
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 | |
if [ -z "$1" ];then | |
echo "0 Arguments given. Please pass in a disk path" | |
echo "" | |
fi | |
fstype=`df -T | grep $1 | awk '{print $2}'` | |
if [[ $fstype == "ext4" ]];then |
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
~ (k8s:default) > kubegetall kube-system | |
Resource: configmaps | |
NAME DATA AGE | |
coredns 1 3d9h | |
extension-apiserver-authentication 6 3d9h | |
kube-proxy 2 3d9h | |
kube-root-ca.crt 1 3d9h | |
kubeadm-config 1 3d9h | |
kubelet-config-1.23 1 3d9h |
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
~ (k8s:default) > kubectl explain pod | |
KIND: Pod | |
VERSION: v1 | |
DESCRIPTION: | |
Pod is a collection of containers that can run on a host. This resource is | |
created by clients and scheduled onto hosts. | |
FIELDS: | |
apiVersion <string> |