Skip to content

Instantly share code, notes, and snippets.

View oguzhalit's full-sized avatar
Present Day.. Present Time!

oguzhalit oguzhalit

Present Day.. Present Time!
View GitHub Profile
@oguzhalit
oguzhalit / starship.toml
Created July 18, 2021 13:27
Starship Configure
[status]
style = "red bold"
symbol = "💥 "
format = '[\[$symbol$status\]]($style) '
disabled = false
[helm]
format = 'via [$symbol($version )]($style)'
symbol = '⎈ '
style = 'bold white'
@oguzhalit
oguzhalit / tmux.conf
Created July 24, 2021 22:03
tmux.conf
# -- general -------------------------------------------------------------------
set -g default-terminal "screen-256color" # colors!
setw -g xterm-keys on
set -s escape-time 10 # faster command sequences
set -sg repeat-time 600 # increase repeat timeout
set -s focus-events on
set -g prefix2 C-a # GNU-Screen compatible prefix
bind C-a send-prefix -2

Ranger Kullanım Notlarım

Ranger kullanırken sık sık ihtiyac duydugum kısayol kullanımlarını not alıyorum.

Ranger

gh = cd ~
gr = cd /

@oguzhalit
oguzhalit / tmuxNotlarım.md
Last active July 31, 2021 03:10
Tmux kullanım notlarım
Command Actions
tmux new -s name yeni bir session oluşturur.
ctrl+b d essiondan çıkmanızı saglar ama kapatmaz.
tmux a session içine geri dönmenizi saglar
tmux a -t test2 isimi verison sessiona geri döner
tmux kill-session -t test isimi verilen sessionu siler
ctrl+b ? kullanılabilir kısayolları gösterir.
ctrl+b s sessionları listeler
ctrl+b $ session ismini degiştirmenizi saglar
@oguzhalit
oguzhalit / secret
Created April 6, 2022 16:14
Example Docker Secret K8S with Python
import base64
import json
from kubernetes import client, config
config.load_kube_config()
v1 = client.CoreV1Api()
cred_payload = {
"auths": {
"DOCKER-SERVER": {
private static void Main(string[] args)
{
var k8SClientConfig = new KubernetesClientConfiguration { Host = "http://127.0.0.1:8080" };
IKubernetes client = new Kubernetes(k8SClientConfig);
ListDeployments(client);
V1Deployment deployment = new V1Deployment()
{
ApiVersion = "apps/v1",
@oguzhalit
oguzhalit / aws sg append
Created June 9, 2022 23:16
AWS APPEND NEW SG, NOT DELETE OLD SG
for i in $(aws ec2 describe-instances --query "Reservations[*].Instances[*].[InstanceId]" --output text | tr '\t' '\n'); do aws ec2 modify-instance-attribute --instance-id $i --groups $(aws ec2 describe-security-groups --group-ids $(aws ec2 describe-instances --instance-id $i --query "Reservations[].Instances[].SecurityGroups[].GroupId[]" --output text) --query "SecurityGroups[*].[GroupId]" --output text) sg-064d8aab61916edde && echo $i sg guncellendi; done
additionalScrapeConfigs:
- job_name: 'node-exporter'
kubernetes_sd_configs:
- role: endpoints
relabel_configs:
- source_labels: [__meta_kubernetes_endpoints_name]
regex: 'node-exporter'
action: keep
- job_name: 'kubernetes-apiservers'
@oguzhalit
oguzhalit / ~
Last active June 9, 2024 16:41
₊ ・ ₊ ࣪ ִֶָ❍.๋࣭ ⭑ ⚝. ݁ ˖.˚ . ݁ ° ☆ █████████████████████████████████████████████████████
☆ ₊ ⋆. ⭐︎ . * ★ █████████████████████████████████████████████████████
⟡ ⊹ 。゚ ☁︎ 。 ☾ █████████████████████████████████████████████████████
⋆ . .𖥔 ݁ ˖˚☽˚。⋆ ⟡ . ₊ █████████████████████████████████████████████████████
☁︎。⋆。 ゚☾ . • . * █████████████████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
@oguzhalit
oguzhalit / ~
Last active June 9, 2024 16:38
████████████████████████████████████████████ ❍.๋࣭ ⭑⚝. ݁ ˖࣪ ִֶָ❍.๋࣭ ⭑⚝. ݁ ˖ .˚ . ݁ .࣪ ִֶָ❍.๋࣭ ⭑⚝. ݁ ˖.˚ . ݁˚ . ݁
██████████████████████████.   ·   · ⋆   ˚   ✫ · ⋆  * • ○ ° ★
███████████████████████████████████████ . * ˚ · . ✷ ● ¸ .    ★  ° :●.
█████████████████████████████ ⋆。゚☁︎。⋆。 ゚☾ ゚。⋆ .𖥔 ݁ ˖ ‧₊˚ ⋅ જ⁀➴๋࣭ ⭑๋࣭ ⭑ .𖥔 ݁ ˖˚☽˚。⋆
██████████████████████████████████⋆˙˳𓂃𓂃𓂃𓂃𓊝𓂃𓂃𓂃𓂃𓂃˙˳⋆