Skip to content

Instantly share code, notes, and snippets.


Sebastian Podjasek SPodjasek

View GitHub Profile
SPodjasek /
Created Jan 16, 2023 — forked from mrpeardotnet/
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.


SPodjasek / Formik-Autosave.tsx
Last active Aug 2, 2022 — forked from jaredpalmer/Formik-Autosave.jsx
Formik-Autosave with internal state for holding submitted values and optional visible status presentation
View Formik-Autosave.tsx
import { useFormikContext } from 'formik';
import debounce from 'lodash/debounce';
import React, { useCallback, useEffect, useState } from 'react';
import isEqual from 'react-fast-compare';
type AutoSaveFieldsStates = 'changed' | 'saved' | undefined;
export type AutoSaveFieldsStatusRenderer = (
state: 'submitting' | AutoSaveFieldsStates
) => React.ReactNode;
View expandable_webview.dart
import 'dart:math' show max;
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:webview_flutter/webview_flutter.dart';
class ExpandableWebView extends StatefulWidget {
final String url;
final EdgeInsets padding;
View app_build.gradle
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
SPodjasek / runlog.1
Last active Dec 22, 2017
Mojo::RabbitMQ::Client issue #11
View runlog.1
-> "AMQP\1\1\0\t"
<- "\1\0\0\0\0\1\322\0\n\0\n\0\t\0\0\1\255\fcapabilitiesF\0\0\0\265\22publisher_confirmst\1\32exchange_exchange_bindingst\1\nbasic.nackt\1\26consumer_cancel_notifyt\1\22connection.blockedt\1\23consumer_prioritiest\1\34authentication_failure_closet\1\20per_consumer_qost\1\fcluster_nameS\0\0\0\22rabbit\@seba-M17xR4\tcopyrightS\0\0\0.Copyright (C) 2007-2015 Pivotal Software, Inc.\13informationS\0\0\0005Licensed under the MPL. See\bplatformS\0\0\0\nErlang/OTP\aproductS\0\0\0\bRabbitMQ\aversionS\0\0\0\0053.5.7\0\0\0\16AMQPLAIN PLAIN\0\0\0\5en_US\316"
-- Connection::Start {product: RabbitMQ, version: 3.5.7}
-> "\1\0\0\0\0\0\x{c3}\0\n\0\13\0\0\0\x{85}\13informationS\0\0\0-\bplatformS\0\0\0\4Perl\aproductS\0\0\0\26Mojo::RabbitMQ::Client\aversionS\0\0\0\0050.0.9\bAMQPLAIN\0\0\0#\5LOGINS\0\0\0\5guest\bPASSWORDS\0\0\0\5guest\5en_US\x{ce}"
<- "\1\0\0\0\0\0\f\0\n\0\36\0\0\0\2\0\0\0<\316"
-- Connection::Tune {frame_max: 131072, heartbe
SPodjasek /
Created Jan 21, 2016
Komodo IDE perlbrew wrapper
source ~/perl5/perlbrew/etc/bashrc
env perl $@
SPodjasek / gist:8140175
Created Dec 26, 2013
Proper way to develop jQuery plugins
View gist:8140175
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(["jquery"], factory);
} else {
}(function ($) {
* ...
View jsbin.evuhay.html
<!DOCTYPE html>
<meta charset=utf-8 />
body {font: 10px sans-serif;shape-rendering: crispEdges;}
.week {}
.day {fill: #fff;stroke: #ccc;}
.weekend {fill: #eaeaea;}
.month {fill: none;stroke: #000;stroke-width: 2px;}
SPodjasek /
Last active Dec 31, 2015
Install Oracle Instant Client and DBD::Oracle for Perl on Ubuntu 13.10
SPodjasek / broken.html
Last active Dec 20, 2015
Test how browsers handle broken html
View broken.html
<head><title>Broken tag test</title></head>