Some Importants
Basic Interactions:
kubectl version: Display the client and server versions.
kubectl help: Display help documentation.
Cluster Information:
| smtp_server = "" | |
| port = 587 # For starttls | |
| sender_email = "" | |
| receiver_email = "" | |
| password = "" | |
| subject = "An email with attachment from Python" | |
| body = """\ | |
| Subject: Hi there |
Some Importants
Basic Interactions:
kubectl version: Display the client and server versions.
kubectl help: Display help documentation.
Cluster Information:
| curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" | |
| sudo mv kubectl /usr/bin/ | |
| sudo chmod +x /usr/bin/kubectl | |
| mkdir .kube | |
| sudo cp /etc/kubernetes/admin.conf .kube/config | |
| kubectl get node |
| -- ลema iรงerisinde audit_logs tablosu | |
| CREATE TABLE audit_logs ( | |
| id serial PRIMARY KEY, | |
| operation VARCHAR(50) NOT NULL, | |
| table_name VARCHAR(255) NOT NULL, | |
| old_data TEXT, | |
| new_data TEXT, | |
| changed_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
| changed_by VARCHAR(255) | |
| ); |
| image: maven:3.9.1-eclipse-temurin-17-alpine | |
| cache: | |
| paths: | |
| - .m2/repository | |
| key: "$CI_BUILD_REF_NAME" | |
| variables: | |
| MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode" | |
| MAVEN_OPTS: "-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository -Dmaven.artifact.threads=50" |
| [Desktop Entry] | |
| Name=Firefox-PW | |
| Comment=Firefox for Proxyied Web | |
| Exec=env /snap/bin/firefox -p "my-another-profile" | |
| Icon=/snap/firefox/2487/default256.png | |
| Terminal=false | |
| Type=Application | |
| StartupNotify=true | |
| Keywords=Internet;WWW;Browser;Web;Explorer | |
| GenericName=Web Browser for Proxyied Web |
| apiVersion: argoproj.io/v1alpha1 | |
| kind: Workflow | |
| metadata: | |
| name: build-and-push | |
| spec: | |
| entrypoint: build-and-push | |
| templates: | |
| - name: build-and-push | |
| steps: | |
| - - name: checkout |
| # ZSH Theme - Preview: https://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png | |
| EMOJI=(๐ฉ ๐ฆ ๐ ๐ ๐จ ๐ ๐ญ ๐ฝ โ๏ธ ๐ฌ ๐ ๐ท ๐ผ ๐ถ ๐ธ ๐ง ๐ณ ๐ ๐ฃ ๐ป ๐ฎ ๐ฐ ๐ ๐พ ๐ ๐ช ๐ ๐ ๐ ๐ ๐ ๐ ๐น ๐พ โ๏ธ ๐ต ๐ฆ ๐ฆ ๐ฆ ๐ ๐ฆ ๐ฆ ๐ฆ ๐ฆ ๐ ๐ ๐ ๐ฒ ๐ณ ๐ด ๐ฑ ๐ฟ โ๏ธ ๐ ๐ ๐ ๐ ๐) | |
| function random_emoji { | |
| echo -n "$EMOJI[$RANDOM%$#EMOJI+1]" | |
| } | |
| # ... |
| server { | |
| listen 80; | |
| server_name example.com www.example.com; | |
| return 301 https://$host$request_uri; | |
| } | |
| server { | |
| listen 443 ssl; | |
| server_name example.com www.example.com; |