Skip to content

Instantly share code, notes, and snippets.

@optilude
optilude / _app.js
Last active March 25, 2024 15:05
Pattern for accessing a Feathers client via a React context hook
import React, { useState, useEffect } from 'react';
import { FeathersContext, createFeathersClient } from '../feathersClient';
/**
* Top level app wrapper which does a few things:
*
* - Ensure the feathers context is set up, so that pages can just `useFeathers()` to get a client.
* - Listen for login/logout events and pass a `user` prop to pages which is either `null`, or a user object.
*/
@mrpeardotnet
mrpeardotnet / PVE-HP-ssacli-smart-storage-admin.md
Created November 25, 2019 22:10
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