Skip to content

Instantly share code, notes, and snippets.

View omerkarabacak's full-sized avatar

Ömer Karabacak omerkarabacak

View GitHub Profile
@omerkarabacak
omerkarabacak / PVE-HP-ssacli-smart-storage-admin.md
Created February 28, 2025 21:19 — 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

@omerkarabacak
omerkarabacak / del_cluster.sh
Created June 27, 2023 13:12 — forked from ianchen06/del_cluster.sh
delete proxmox cluster
# source: https://forum.proxmox.com/threads/removing-deleting-a-created-cluster.18887/
#/bin/sh
# stop service
systemctl stop pvestatd.service
systemctl stop pvedaemon.service
systemctl stop pve-cluster.service
systemctl stop corosync
systemctl stop pve-cluster
# edit through sqlite, check, delete, verify
@omerkarabacak
omerkarabacak / PVE-HP-ssacli-smart-storage-admin.md
Created July 1, 2022 15:22 — forked from si458/PVE-HP-ssacli-smart-storage-admin.md
HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (7.x)

HP Smart Storage Admin CLI (ssacli) installation and usage on Proxmox PVE (7.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

@omerkarabacak
omerkarabacak / bash-to-zsh-hist.py
Created February 20, 2022 12:51 — forked from muendelezaji/bash-to-zsh-hist.py
Convert Bash history to Zsh history
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is how I used it:
# $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history
import sys
import time
@omerkarabacak
omerkarabacak / README.md
Created November 9, 2020 19:40 — forked from mrbar42/README.md
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8
@omerkarabacak
omerkarabacak / example-circleci-config-with-bastion-host.yml
Created September 29, 2020 12:12
Example config.yml for CircleCI with Bastion Host usage
version: 2.1
executors:
ubuntu_machine:
machine:
image: ubuntu-1604:202004-01
commands:
docker-compose-deploy-to-dev:
description: "Deploy with docker-compose"
steps:
- run: |
@omerkarabacak
omerkarabacak / README.md
Created September 18, 2020 10:22 — forked from eunomie/README.md
How to send containers log to ELK using gelf log driver

Send docker logs to ELK through gelf log driver

There's so many way to send logs to an elk... logspout, filebeat, journalbeat, etc.

But docker has a gelf log driver and logstash a gelf input. So here we are.

Here is a docker-compose to test a full elk with a container sending logs via gelf.

rpm -i /tmp/MegaCli-8.07.14-1.noarch.rpm
cd /opt/MegaRAID/MegaCli/
./MegaCli64 CfgClr -a0 # Clear the existing Config
./MegaCli64 -cfgforeign -clear -a0 # Clear any foreign state configs
./MegaCli64 ELF -ControllerFeatures -a0 # See if Cachecade is already licensed
./MegaCli64 ELF GetSafeId -a0 | grep Safe # Get the SafeID for activation
./MegaCli64 -AdpAllInfo -a0 | grep "Serial No" # Get the Serial Number for activation
Stop and Activate License
softwarelicense.lsi.com
@omerkarabacak
omerkarabacak / nginx-tuning.md
Created June 15, 2020 09:53 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@omerkarabacak
omerkarabacak / debian-install-megacli.md
Created June 2, 2020 19:12 — forked from fxkraus/debian-install-megacli.md
Install LSI MegaCli .deb package on Debian/Ubuntu

download

wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip

unzip

unzip 8-07-14_MegaCLI.zip