Skip to content

Instantly share code, notes, and snippets.

@Philhil
Philhil / # Openslides.markdown
Last active March 6, 2021 11:59
Openslides HowTo

OpenSlides Setup Howto

Setup a OpenSlides 3.3 instance on Debian10 with https nginx reverse proxy and LetsEncrypt Cert:

Prerequirements

apt update

apt install htop

Some system basic safety things

@Philhil
Philhil / PVE-HP-ssacli-smart-storage-admin.md
Last active May 6, 2024 18:02 — 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

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

%{
#include <stdio.h>
extern int yyerror(char* err);
extern int yylex(void);
extern FILE *yyin;
%}
%start seq
%token VAR
@Philhil
Philhil / read.l
Last active March 15, 2017 22:46
%option noyywrap
%{
#include "grammar.tab.h"
%}
INT [0-9]
VARLEX [n-z]{INT}*
FUNCLEX [a-m]{INT}*
import json
nodes_fn = os.path.join(params['dest_dir'], 'nodes.json')
# read data from dest dir
try:
with open(nodes_fn, 'r') as nodedb_handle:
nodedb = json.load(nodedb_handle)
except IOError:
nodedb = {'nodes': dict()}