Skip to content

Instantly share code, notes, and snippets.

View oleksdovz's full-sized avatar

Oleksiy Dovz oleksdovz

View GitHub Profile
@oleksdovz
oleksdovz / redis-backup-and-restore.md
Last active May 1, 2025 05:02
Redis backup and restore in kubernetes

######################

Case

1 - old redis in k8s cluster #1

2 - fresh install of redis in Cluster #2

  • Target backup data in old cluster and restore in new cluster
@fschiettecatte
fschiettecatte / Samba_MacOS.md
Last active July 4, 2025 06:00
Setting up SAMBA for Linux / MacOS

Setting up Samba for Linux / MacOS

I recently (re)switched from using Netatalk to Samba for file access from macOS (15.x) to linux (AlmaLinux 9.x).

Obviously the Samba is a great resource, on the Samba Wiki the Configure Samba to Work Better with Mac OS X was invaluable for setting up the /etc/samba/smb.conf file, and the vfs fruit man page contains documentation for all the options.

Here is the /etc/samba/smb.conf file I use:

[global]
@oleksdovz
oleksdovz / screenshot.sh
Created April 4, 2022 16:43
make screenshot of site
#!/bin/bash
# make screenshot of site
google-chrome --headless --no-sandbox --virtual-time-budget=25000 --screenshot https://war.ukrzen.in.ua/alerts
@rajibdpi
rajibdpi / Sublime Text 3 (Build 3211) license key.md
Last active June 23, 2025 11:30
Download Sublime Text 3 (Build 3211) 100% working License Key.
@oleksdovz
oleksdovz / 1_sa-kubeconfig-gen.sh
Created May 9, 2021 14:10 — forked from ragul28/1_sa-kubeconfig-gen.sh
kubeconfig generator script for service account with RBAC.
#!/bin/bash
set -e
set -o pipefail
# Add user to k8s using service account, RBAC role file needed
if [[ -z "$1" ]] || [[ -z "$2" ]] || [[ -z "$3" ]]; then
echo "usage: $0 <service_account_name> <namespace> [rbac-role-yaml]"
exit 1
fi
@weynhamz
weynhamz / config
Last active March 6, 2025 11:21
i3-wm configuration
# i3 config file
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
#####
#
# Fonts
#