Skip to content

Instantly share code, notes, and snippets.

@mkaatman
mkaatman / PVE-HP-ssacli-smart-storage-admin.md
Created May 24, 2023 19:55 — 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

@mkaatman
mkaatman / csv2table.html
Last active December 29, 2015 02:59
Convert from CSV data to DITA XML Table
<!-- http://jsfiddle.net/vHQwN/8/ -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Convert CSV to Table</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<style>
/* CSS source: http://24ways.org/2009/have-a-field-day-with-html5-forms */
html, body, h1, form, fieldset, legend, ol, li {
@mkaatman
mkaatman / list2fotable
Last active September 6, 2018 15:44
XSL templates to transform a DITA list to a dynamic FO table via outputclass.
<!--
It works with both simple list and unordered list. The output can be sorted across rows or columns.
The outputclass supports the number of columns and you can specify if you want it to be ordered vertically across rows or horizontally across columns.
Format: <number of columns>column(optional: _vert)
Examples:
3 column vertical sort – <sl outputclass=”3column_vert”>
2 column horizontal sort - <sl outputclass=”2column”>
You will need to define a "my" namespace in your stylesheet:
@mkaatman
mkaatman / Test.dita
Last active December 21, 2015 21:49
Gloss entry rendering duplicate ID
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE glossentry PUBLIC "-//OASIS//DTD DITA Glossary//EN" "glossary.dtd">
<glossentry id="glossentry_Test">
<glossterm><keyword id="term_Test" >Test</keyword></glossterm>
<glossdef>Duplicate ID.</glossdef>
</glossentry>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="concept_s25_kyh_zh">
<title>Broken CALS table</title>
<conbody>
<p>
<table id="table_3A860165B5A748A79B06028C4CE30C5A" >
<title>Broken Table</title>
<tgroup cols="12">
@mkaatman
mkaatman / add_navtitles.rb
Last active December 15, 2015 05:58 — forked from wbrisett/add_navtitles.rb
Update to Wayne's script. Adds XML indentation on maps.
# Version 3.0 March 2013
# Changed reading of files from binary back to text.
# Added backup folder "...just in case"
# Added fix for Vasont extract Maps
# Added .dita files to script
# Changed parsing of title to xpath via Nokogiri
require 'fileutils'
require 'nokogiri'
@mkaatman
mkaatman / findOrphans.php
Last active October 2, 2015 10:18
Find and optionally delete dita files that are not referenced from the ditamap.
<?php
/**
* Find and optionally delete files that are not referenced from the ditamap as a topicref.
* Disclaimer: Not smart enough to look for keydef yet
*/
// Set this to the relative (to where you're executing script from) or absolute path
$dir_base = 'base/path/to/files/';
// Set this to directory name where dita files exist
$dir_read = 'user';
@mkaatman
mkaatman / convertTask.php
Created March 14, 2012 21:42
convert dita general task to strict task
<? php
/**
* Convert a DITA General Task to a Strict Task
* Backup your files
* Carefully review what this script is doing
* Expect manual post processing cleanup
* Be aware that it does change some IDs
*/
// Directory to read files from