Skip to content

Instantly share code, notes, and snippets.

View edib's full-sized avatar

ibrahim edib kokdemir edib

View GitHub Profile
@edib
edib / kubectl.md
Created September 25, 2023 12:33

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
@edib
edib / pg-auditing.sql
Last active September 15, 2023 15:32
-- ş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"
@edib
edib / firefox-pw.desktop
Last active April 8, 2023 14:51
~/.local/share/applications/firefox-ps.desktop
[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]"
}
# ...
@edib
edib / nginx.conf
Last active December 30, 2022 12:04 — forked from joshcummingsdesign/conf
NGINX config for a Jekyll site using SSL
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;

pajek

yönlü bağlantılar

*Arcs
      1      3       2
      1      2       1
      2      1       1
      2      4       2
 3 9 1
@edib
edib / koordinat.py
Last active December 16, 2022 16:42
x, y = input("x ve y sayılarını girin: ").split()
x = int(x)
y = int(y)
if (x > 0 and y >0 ):
print("{} ve {} sayıları I. alandadır.".format(x,y))
elif (x < 0 and y > 0):
print("{} ve {} sayıları II. alandadır.".format(x,y))
elif (x < 0 and y < 0):