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 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 / 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 / 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 / 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.
<?php
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* AES implementation in PHP */
/* (c) Chris Veness 2005-2011 www.movable-type.co.uk/scripts */
/* Right of free use is granted for all commercial or non-commercial use providing this */
/* copyright notice is retainded. No warranty of any form is offered. */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
class Aes {
@AysadKozanoglu
AysadKozanoglu / postgresql install debian apt repo
Created March 27, 2023 14:58
installation of postgresql on debian buster apt repo
sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
apt install gpupg -y
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
apt update
apt install postgresql-9.6-unit postgresql-contrib-9.6 postgresql-client-9.6 postgresql-9.6 -y
@AysadKozanoglu
AysadKozanoglu / jira.service
Created March 27, 2023 14:54
jira service systemd config
# info:
# create new service config file
# touch /lib/systemd/system/jira.service
# chmod 664 /lib/systemd/system/jira.service
#
# jira.service config
[Unit]
Description=Atlassian Jira
After=network.target