Skip to content

Instantly share code, notes, and snippets.

View AysadKozanoglu's full-sized avatar
💭
be free in your Mind, be yourself. Past, you can't change but the Future // Stoa

Aysad Kozanoglu AysadKozanoglu

💭
be free in your Mind, be yourself. Past, you can't change but the Future // Stoa
View GitHub Profile
@AysadKozanoglu
AysadKozanoglu / docker migration to another server.md
Created July 30, 2026 12:49
migrate docker image to another server

on running docker prod envointment

build docker image from current docker

 docker build -t <DOCKERIMAGE-NAME> .

info: to find out which image you want to migrate enter docker images you will see the images by name

Save the image to a tar file to transfer as a single file

@AysadKozanoglu
AysadKozanoglu / debian-docker-bookworm-installation.md
Last active July 30, 2026 09:30
### debian bookworm 12 docker installation

debian bookworm 12 docker installation

apt install ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/debian
@AysadKozanoglu
AysadKozanoglu / debian 12 bookworm bonding mode 5 with bridge.md
Created July 27, 2026 16:24
debian 12 bookworm bonding mode 5 with bridge
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback
@AysadKozanoglu
AysadKozanoglu / PVE-HP-ssacli-smart-storage-admin.md
Created July 23, 2026 14:09 — forked from mrpeardotnet/PVE-HP-ssacli-smart-storage-admin.md
HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (6.x)

Why use HP Smart Storage Admin CLI?

You can use ssacli (smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your Proxmox host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage.

CLI is not as convenient as GUI interface provided by BIOS or desktop utilities, but still allows you to fully manage your controller, physical disks and logical drives on the fly with no Proxmox host downtime.

ssacli replaces older hpssacli, but shares the same syntax and adds support for newer servers and controllers.

Installation

@AysadKozanoglu
AysadKozanoglu / sysctl.conf
Created April 10, 2016 22:42
high secure & perfornce debian sysctl.conf setting - debian sysctl yüksek güven ve performans ayarlari
# Kernel sysctl configuration file for Linux
# Version 1.11 - 2015-07-07
# Aysad Kozanoglu Aysad K.
# This file should be saved as /etc/sysctl.conf and can be activated using the command:
# sysctl -e -p /etc/sysctl.conf
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and sysctl.conf(5) for more details.
#
# Tested with: Ubuntu 14.04 LTS kernel version 3.13
@AysadKozanoglu
AysadKozanoglu / capture Passwords tcpdump.md
Created February 12, 2019 13:33
get plain passwords with tcpdump

Capture SMTP Email

tcpdump -nn -l port 25 | grep -i 'MAIL FROM\|RCPT TO'

Extract HTTP Passwords in POST Requests

tcpdump -s 0 -A -n -l | egrep -i "POST /|pwd=|passwd=|password=|Host:"

Capture FTP Credentials and Commands

@AysadKozanoglu
AysadKozanoglu / preseed.cfg
Created October 26, 2022 20:55
debian preseed file for kvm automation
# Author: Aysad Kozanoglu
# Version: 0.1
# changed: Wed 26 Oct 2022 08:56:15 PM CEST
# please note: while injecting this file, filename must be named exactly preseed.cfg (debian defaults)
# example -> /var/lib/config/buster/preseed.cfg
# -initrd-inject=/var/lib/libvirt/images/preseeds/buster/preseed.cfg
#
# full command example for virt-install
#### Contents of the preconfiguration file (for squeeze)
@AysadKozanoglu
AysadKozanoglu / php-fpm-socket-get-status-of-workers.sh
Created December 14, 2023 01:03
php-fpm socket get status of workers
# first install package
# apt install libfcgi-bin -y
sudo -u www-data bash -c "export SCRIPT_NAME=/status; export SCRIPT_FILENAME=/status; export QUERY_STRING=full; export REQUEST_METHOD=GET; cgi-fcgi -bind -connect /var/run/php/php7.3-fpm-www.sock"
# see documentation here:
#http://aysad.cloudns.cc/php/fpm/status/check/console/howto/
@AysadKozanoglu
AysadKozanoglu / vim-nginx-conf-highlight.sh
Created December 13, 2023 18:51
vim enable syntax highlight for nginx config files
#!/bin/bash
#
# Highligh Nginx config file in Vim
# Download syntax highlight
mkdir -p ~/.vim/syntax/
wget http://www.vim.org/scripts/download_script.php?src_id=19394 -O ~/.vim/syntax/nginx.vim
# Set location of Nginx config file
cat > ~/.vim/filetype.vim <<EOF
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.