Skip to content

Instantly share code, notes, and snippets.

View barisvelioglu's full-sized avatar
🤓

Barış Velioğlu barisvelioglu

🤓
View GitHub Profile
@barisvelioglu
barisvelioglu / rke2-commands.md
Created November 20, 2022 13:30 — forked from superseb/rke2-commands.md
RKE2 commands

RKE2 commands

Install

curl -sL https://get.rke2.io | sh
systemctl daemon-reload
systemctl start rke2-server
@barisvelioglu
barisvelioglu / json
Last active April 3, 2022 20:48
jwks
{
"keys":[
{"e":"AQAB","kid":"iISpkVPZ7-xVov1EVjgS3vgBtk6sxgJyAM6lxmmjId4","kty":"RSA","n":"vsMElLv4sCcHKV8yjRydmb_3QOv7jzg6dJBEXkU9rwzbTnUoY4Kdb0lebMFggRwPDMHEyjKuoRvcHYW7WSnR626GvwFxqoghsBt-k8-e-uu4vKwasl-tzIrKKhoa2WoQUfaflBTAvaWdgIwqYy2_JIcb6_ka2X5toPdTSSAUBQOMTlg-BgTlGr-HqdbqZgtUn2ZTv5EfEMxIgW1c9N91KscKWqW6ozVFeKtV9fjDFWR6WpXnn6AXQ3nhYH3IjmD5PEwLl-ostTFs01zFn__7A5_opjbEoBSfLz11Azn12PBSVQSi6Vsi21myLXscfKl7jcCBhOFjdFiDtCCwoPfVtw"}
]
}
{
"keys":[
{
"e":"AQAB",
"kid":"iISpkVPZ7-xVov1EVjgS3vgBtk6sxgJyAM6lxmmjId4",
"kty":"RSA",
"n":"vsMElLv4sCcHKV8yjRydmb_3QOv7jzg6dJBEXkU9rwzbTnUoY4Kdb0lebMFggRwPDMHEyjKuoRvcHYW7WSnR626GvwFxqoghsBt-k8-e-uu4vKwasl-tzIrKKhoa2WoQUfaflBTAvaWdgIwqYy2_JIcb6_ka2X5toPdTSSAUBQOMTlg-BgTlGr-HqdbqZgtUn2ZTv5EfEMxIgW1c9N91KscKWqW6ozVFeKtV9fjDFWR6WpXnn6AXQ3nhYH3IjmD5PEwLl-ostTFs01zFn__7A5_opjbEoBSfLz11Azn12PBSVQSi6Vsi21myLXscfKl7jcCBhOFjdFiDtCCwoPfVtw"
}
]
}
@barisvelioglu
barisvelioglu / speedtest.sh
Created February 23, 2022 07:52 — forked from derek-schaefer/speedtest.sh
Test your download speed via the command line with wget.
wget --output-document=/dev/null http://speedtest.wdc01.softlayer.com/downloads/test500.zip
@barisvelioglu
barisvelioglu / prometheus.yml
Created January 14, 2022 14:29 — forked from JoelBCarter/prometheus.yml
Sample Prometheus scrape config for obtianing metrics from Kubernetes pods via DNS & Headless Service
scrape_configs:
- job_name: 'your_kubernetes_pod'
dns_sd_configs:
- refresh_interval: 15s
names:
- {headless-service-name}.default.svc.cluster.local
relabel_configs:
# Change default port we get from DNS (0) to expected port ({your_pod_port})
- source_labels: [__address__]
action: replace
@barisvelioglu
barisvelioglu / gist:a48ee12cc79d4b7520d618b401c98f3c
Created October 26, 2021 16:02
Change the location of docker images when using Docker Desktop on WSL2 with Windows 10 Home?
The WSL 2 docker-desktop-data vm disk image would normally reside in: %USERPROFILE%\AppData\Local\Docker\wsl\data\ext4.vhdx
Follow the following to relocate it to other drive/directory, with all existing docker data preserved (tested against Docker Desktop 2.3.0.4 (46911), and continued to work after updating the 3.1.0 (51484)):
First, shut down your docker desktop by right click on the Docker Desktop icon and select Quit Docker Desktop
Then, open your command prompt:
wsl --list -v
You should be able to see, make sure the STATE for both is Stopped.(wsl --shutdown)
@barisvelioglu
barisvelioglu / walker.go
Created October 25, 2021 09:49 — forked from jlinoff/walker.go
go example that shows how to walk a directory using a regular expression filter and collect files that match
// This example demonstrates how to use go to walk a directory
// and filter the contents by using filepath.Walk with
// variables in the external scope to provide the filter and
// to capture the file names.
//
// To build:
// go build walk.go
// Usage:
// walk <pattern> <files>
//
@barisvelioglu
barisvelioglu / values.yaml
Created February 14, 2021 14:26 — forked from remcohendriks/values.yaml
Gitlab-runner helm values for arm64
## GitLab Runner Image
##
## By default it's using gitlab/gitlab-runner:alpine-v{VERSION}
## where {VERSION} is taken from Chart.yaml from appVersion field
##
## ref: https://hub.docker.com/r/gitlab/gitlab-runner/tags/
##
# image: gitlab/gitlab-runner:alpine-v11.6.0
## Specify a imagePullPolicy