- Text Editors
- User Environment
- Manipulating Text
- Grep, Awk and Sed commands
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: ConfigMap | |
metadata: | |
name: filebeat-config | |
namespace: kube-system | |
labels: | |
k8s-app: filebeat | |
data: | |
filebeat.yml: |- |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: a-deployment-1 | |
labels: | |
name: my-deployment | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
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
## This will be fixed by | |
find /var/www -type d -exec chmod 755 {} \; | |
find /var/www -type f -exec chmod 644 {} \; |
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
from graphviz import Digraph | |
dot = Digraph(comment='The Round Table') | |
dot.node('A', 'ahmet kökdemir') | |
dot.node('B', 'mehmet kökdemir') | |
dot.node('C', 'ahmet kökdemir') | |
dot.node('D', 'ibrahim kökdemir') | |
dot.node('E', 'gönenç kökdemir') | |
print(dot.source) | |
dot.edges('[AB]') | |
dot.edge('[AB]') |
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
# tüm controller nodlarda yapılacak | |
# sürüme uygun kubeadm indir. | |
# hangi sertifikalar bitmiş diye kontrol et | |
kubeadm alpha certs check-expiration | |
varolan confige göre isimlendirmeleri kullanarak sertifikaları yeniler | |
kubeadm alpha certs renew all --config=/etc/kubernetes/kubeadm-config.yaml | |
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 | |
echo "Job Started!" >> "log.compress.log" 2>&1 | |
echo `date` >> "log.compress.log" 2>&1 | |
find "/var/lib/pgsql/9.6/data/pg_log/" -type f -name "*.log" -mtime +1 | while read file ; do gzip -v $file >> "log.compress.log" 2>&1 ; done | |
echo `date` >> "log.compress.log" 2>&1 | |
echo "Job Finished!" >> "log.compress.log" 2>&1 |
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
# See https://wiki.postgresql.org/wiki/Using_pg_upgrade_on_Ubuntu/Debian for more information and warning! | |
# Check first | |
/usr/lib/postgresql/11/bin/pg_upgrade \ | |
-b /usr/lib/postgresql/9.6/bin \ | |
-B /usr/lib/postgresql/11/bin \ | |
-d /var/lib/postgresql/9.6/main \ | |
-D /var/lib/postgresql/11/main \ | |
-o ' -c config_file=/etc/postgresql/9.6/main/postgresql.conf' \ | |
-O ' -c config_file=/etc/postgresql/11/main/postgresql.conf' \ |
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: Pod | |
metadata: | |
name: example | |
spec: | |
containers: | |
- image: busybox | |
command: [ "sh", "-c", "sleep 84000s" ] | |
name: examplepod | |
env: |