Skip to content

Instantly share code, notes, and snippets.

View shakahl's full-sized avatar
:electron:

Soma Szelpal shakahl

:electron:
  • Platform whisperer @ Shakahl Ltd. • Made GitLab AutoDevOps work on GitHub • DevOps’d the hell out of DiNG • Metaverse pipelines @ nextearth.io • Used to scrub fraud on Jasmin at Docler
  • Budapest, Hungary
  • 02:20 (UTC +02:00)
  • LinkedIn in/somaszelpal
  • X @szelpalsoma
  • Facebook szelpalsoma
  • Instagram szelpalsoma
View GitHub Profile
@shakahl
shakahl / upload_file_ftp.py
Created July 23, 2025 14:16 — forked from jslay88/upload_file_ftp.py
Simple utility to upload a file via FTP - Python
#!/usr/bin/env python
import ntpath
import argparse
from ftplib import FTP
def upload_file(host, port,
username, password,
file_path, remote_path):
@shakahl
shakahl / k8s-etcd-backup.yaml
Created July 23, 2025 14:16 — forked from jslay88/k8s-etcd-backup.yaml
k8s cronjob for doing daily backups of etcd from a master.
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: etcd-backup
namespace: kube-system
spec:
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
@shakahl
shakahl / gen_kube_secret.py
Created July 23, 2025 14:16 — forked from jslay88/gen_kube_secret.py
Create k8s Secret YAML
#!/usr/bin/env python3
import base64
from getpass import getpass
def create_secret_yaml(secret_name, **kwargs):
"""
Create k8s Secret Yaml with key: value
Value must already be base64 encoded and in utf-8 encoded bytes
@shakahl
shakahl / docker-tls.yml
Created July 23, 2025 14:15 — forked from jslay88/docker-tls.yml
Ansible Playbook for configuring Docker TLS
---
- name: Setup Docker engine with specific configuration and secure TCP socket
hosts: all
become: yes
vars:
ca_key: /etc/docker/ssl/ca-key.pem
ca_cert: /etc/docker/ssl/ca.pem
server_key: /etc/docker/ssl/server-key.pem
server_cert: /etc/docker/ssl/server-cert.pem
client_key: /etc/docker/ssl/client-key.pem
@shakahl
shakahl / install_openlens.sh
Created July 23, 2025 12:52 — forked from teefax/install_openlens.sh
Build and Install OpenLens
#!/bin/bash
install_deps_windows() {
echo "Installing Build Dependencies (Windows)..."
choco install -y make visualstudio2019buildtools visualstudio2019-workload-vctools
}
install_deps_darwin() {
echo "Installing Build Dependencies (Darwin)..."
xcode-select --install
@shakahl
shakahl / install_openlens.sh
Created July 23, 2025 12:52 — forked from jslay88/install_openlens.sh
Build and Install OpenLens
#!/bin/bash
install_deps_windows() {
echo "Installing Build Dependencies (Windows)..."
choco install -y make visualstudio2019buildtools visualstudio2019-workload-vctools
}
install_deps_darwin() {
echo "Installing Build Dependencies (Darwin)..."
xcode-select --install
@shakahl
shakahl / countries.sql
Created June 23, 2025 22:02 — forked from adhipg/countries.sql
Sql dump of all the Countries, Country Codes, Phone codes.
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
@shakahl
shakahl / command.md
Created March 15, 2025 14:34 — forked from aidik/command.md
curl ssh public key from GitHub to authorized_keys

mkdir -m 700 ~/.ssh; curl https://github.com/aidik.keys >> ~/.ssh/authorized_keys

@shakahl
shakahl / Music_powershell.cmd
Created March 13, 2025 01:39 — forked from bryanvine/Music_powershell.cmd
Powershell Wrapped in batch - a simple song using system beeps
goto ExecutePowershell
cls
#Powershell code block begining
#LINK http://www.bryanvine.com/2016/02/powershell-quick-script-wrap-any.html
0..2 | %{
"Loop: $($_+1)"
[System.Console]::Beep(450, 110);[System.Console]::Beep(500, 110);[System.Console]::Beep(550, 110);[System.Console]::Beep(450, 110)
[System.Console]::Beep(675, 200);[System.Console]::Beep(675, 200);[System.Console]::Beep(600, 300);[System.Console]::Beep(450, 110)
[System.Console]::Beep(500, 110);[System.Console]::Beep(550, 110);[System.Console]::Beep(450, 110);[System.Console]::Beep(600, 200)
[System.Console]::Beep(600, 200);[System.Console]::Beep(550, 300);[System.Console]::Beep(525, 110);[System.Console]::Beep(450, 300)
@shakahl
shakahl / FOR modifiers.md
Created February 25, 2025 17:47 — forked from Prince-Mandor/FOR modifiers.md
windows batch - FOR variables modifiers, ( AKA %~dp0 )

In addition, substitution of FOR variable references has been enhanced. You can now use the following optional syntax:

%~I         - expands %I removing any surrounding quotes (")
%~fI        - expands %I to a fully qualified path name
%~dI        - expands %I to a drive letter only
%~pI        - expands %I to a path only
%~nI        - expands %I to a file name only
%~xI        - expands %I to a file extension only
%~sI        - expanded path contains short names only

%~aI - expands %I to file attributes of file