Skip to content

Instantly share code, notes, and snippets.

@DeepCoreSystem
DeepCoreSystem / main.go
Created November 15, 2021 12:13 — forked from fl64/main.go
golang prometheus exporter example
package main
import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"log"
"math/rand"
"net/http"
"time"
@DeepCoreSystem
DeepCoreSystem / PVE-HP-ssacli-smart-storage-admin.md
Created September 18, 2021 09:08 — 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

@DeepCoreSystem
DeepCoreSystem / 99fixbadproxy
Last active January 24, 2021 16:21 — forked from trastle/99fixbadproxy
Fixing the issue with apt caused by a bad local proxy: 1- Create 99fixbadproxy at /etc/apt/apt.conf.d/99fixbadproxy // 2- Run fix-apt.sh
Acquire::http::Pipeline-Depth "0";
Acquire::http::No-Cache=True;
Acquire::BrokenProxy=true;
@DeepCoreSystem
DeepCoreSystem / md_parola_font.cpp
Created January 21, 2021 12:36
Font for MD_Parola, inspired from AATiS LED Scroller by www.maltepoeggel.de
MD_MAX72XX::fontType_t newFont[] PROGMEM = {
5, 0, 0, 0, 0, 0, // 0
5, 8, 28, 42, 8, 8, // 1
5, 8, 8, 42, 28, 8, // 2
5, 16, 32, 127, 32, 16, // 3
5, 4, 2, 127, 2, 4, // 4
5, 28, 62, 62, 62, 28, // 5
5, 0, 8, 28, 62, 127, // 6
5, 127, 62, 28, 8, 0, // 7
5, 62, 62, 0, 62, 62, // 8
@DeepCoreSystem
DeepCoreSystem / SoftTwinkles.ino
Created November 8, 2020 19:31 — forked from kriegsman/SoftTwinkles.ino
Soft, warm twinkles. Super short code, super complicated theory of operation.
#include "FastLED.h"
#define LED_PIN 3
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
#define NUM_LEDS 30
CRGB leds[NUM_LEDS];
#define BRIGHTNESS 120
#define DENSITY 80
@DeepCoreSystem
DeepCoreSystem / openssl.MD
Created October 17, 2017 15:38 — forked from jchandra74/openssl.MD
HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

Overview

My main development workstation is a Windows 10 machine, so we'll approach this from that viewpoint.

Recently, Google Chrome started giving me a warning when I open a site that uses https and self-signed certificate on my local development machine due to some SSL certificate issues like the one below:

Self-Signed SSL Issue in Chrome