Skip to content

Instantly share code, notes, and snippets.

View dark-vex's full-sized avatar

Daniele De Lorenzi dark-vex

View GitHub Profile
@dark-vex
dark-vex / PVE-HP-ssacli-smart-storage-admin.md
Created May 28, 2024 10:33 — 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

@dark-vex
dark-vex / swisscom-ipv6-6rd.sh
Last active December 28, 2021 16:23
Swisscom IPv6 configuration on Linux
#!/bin/sh
## Credits to @gdamjan this script is partially based on his 6rd script (https://gist.github.com/gdamjan/1141850)
## You must have a real routable IPv4 address for IPv6 rapid deployment (6rd)
## tunnels.
## Also make sure you have at least linux kernel 2.6.33 and you have enabled 6rd
## CONFIG_IPV6_SIT_6RD=y
PREFIX="2a02:120" # Swisscom 6rd ipv6 prefix
GATEWAY="193.5.29.1" # Swisscom 6rd gateway host
@dark-vex
dark-vex / fastweb-ipv6-6rd.sh
Last active May 28, 2024 12:14
Fastweb IPv6 configuration on Linux
#!/bin/sh
## Credits to @gdamjan this script is partially based on his 6rd script (https://gist.github.com/gdamjan/1141850)
## You must have a real routable IPv4 address for IPv6 rapid deployment (6rd)
## tunnels.
## Also make sure you have at least linux kernel 2.6.33 and you have enabled 6rd
## CONFIG_IPV6_SIT_6RD=y
PREFIX="2001:b07" # Fastweb 6rd ipv6 prefix
GATEWAY="81.208.50.214" # Fastweb 6rd gateway host
@dark-vex
dark-vex / docker-compose.yml
Created November 12, 2019 11:10
Docker compose for BareOS Director/Storage/Client/webUI with MySQL backend
version: '3'
services:
bareos-dir:
image: barcus/bareos-director
volumes:
- /home/bareos/config/director:/etc/bareos
- /home/bareos/data/director:/var/lib/bareos #(required for MyCatalog backup)
environment:
- DB_HOST=bareos-db
- DB_PORT=3306
@dark-vex
dark-vex / convert-flac-to-mp3.sh
Created September 25, 2019 09:11
Simple script for convert flac files to mp3 320k
#!/bin/bash
find -type f -name "*.flac" -print0 | while read -d $'\0' a; do
< /dev/null ffmpeg -i "$a" -ab 320k -map_metadata 0 -id3v2_version 3 "${a[@]/%flac/mp3}"
done
@dark-vex
dark-vex / install_synology_cloud_backup_on_fedora.sh
Last active July 23, 2021 09:21 — forked from JochemKuijpers/install_synology_drive_on_fedora.sh
Installs Synology Cloud station backup on Fedora 29 (from the .deb package). Use at own risk.
#!/usr/bin/env bash
if [[ $UID != 0 ]];
then
echo "Please run this script with sudo or as root:"
echo
echo "sudo $0 $*"
exit 1 || return 1
fi
@dark-vex
dark-vex / pcapng-to-pcap.sh
Created June 27, 2018 22:58
Script for convert pcapng files to pcap
#!/bin/bash
convert=`which tshark`
list_pcap=`ls -lh |grep -v .sh |awk '{ print $9 }'|awk -F.pcapng '{ print $1 }'`
for i in $list_pcap; do
echo "Converting: "$i
$convert -F pcap -r $i.pcapng -w $i.pcap
done
@dark-vex
dark-vex / drupalgeddon2_CVE-2018-7600_SA-CORE-2018-002.md
Created May 1, 2018 12:12 — forked from g0tmi1k/drupalgeddon2_CVE-2018-7600_SA-CORE-2018-002.md
drupalgeddon2 / SA-CORE-2018-002 / CVE-2018-7600 cURL (PoC)