Skip to content

Instantly share code, notes, and snippets.

View ybizeul's full-sized avatar

Yann Bizeul ybizeul

View GitHub Profile
@ybizeul
ybizeul / nabox.json
Last active January 28, 2023 08:47
NAbox dashboard with memory
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,

Manually importing dashboards in NAbox 3.0.1

  • Log into NAbox with ssh, root/NetAppGrafanaVA is default credentials

  • Jump into netapp harvest container

dc exec nabox-harvest2
@ybizeul
ybizeul / gen.sh
Created December 18, 2021 19:43
HA picture-element generator
#!/bin/bash
for file in `ls -r $1-*.png`; do
entity=`echo $file | sed -E 's/.+-.+-(.*).png/\1/'`
if [ "$entity" == "off" ]
then
continue
fi
path="v2/$file"
cat << EOF
# Grafana vulnerability remediation
# https://grafana.com/blog/2021/12/07/grafana-8.3.1-8.2.7-8.1.8-and-8.0.7-released-with-high-severity-security-fix/
# Log into NAbox with root user, password is NetAppGrafanaVA by default
ssh root@mynabox
# Update grafana container
dc pull grafana
# Restart container
@ybizeul
ybizeul / UPGRADING.txt
Created July 18, 2020 08:58
NAbox quick and dirty dist-upgrade
1/ Replace any mention of 'jessie' in /etc/apt/sources.list by 'stable'. It should look more or less like this :
deb http://http.us.debian.org/debian stable main
deb-src http://http.us.debian.org/debian stable main
deb http://security.debian.org/ stable/updates main
deb-src http://security.debian.org/ stable/updates main
deb http://http.us.debian.org/debian stable-updates main
deb-src http://http.us.debian.org/debian stable-updates main
2/
[root@trident trident-installer]# ./tridentctl -n trident version
+----------------+----------------+
| SERVER VERSION | CLIENT VERSION |
+----------------+----------------+
| 19.04.0 | 19.04.0 |
+----------------+----------------+
[root@trident trident-installer]# ./tridentctl get backend -d -n trident
Operating mode = tunnel, Trident pod = trident-7cb957fd7-nntwh, Namespace = trident, CLI = kubectl
Invoking tunneled command: kubectl exec trident-7cb957fd7-nntwh -n trident -c trident-main -- tridentctl -s 127.0.0.1:8000 --debug get backend
Operating mode = direct, Server = 127.0.0.1:8000
#include <Arduino.h>
#include <ArduinoOTA.h>
#include <ESP8266mDNS.h>
#include <ESP8266WiFi.h>
#include <NTPClient.h>
#include <SPI.h>
#include "FS.h"
{
"builders": [
{
"type": "vmware-iso",
"iso_url": "http://cdimage.debian.org/debian-cd/8.5.0/amd64/iso-cd/debian-8.5.0-amd64-netinst.iso",
"iso_checksum": "3e1b9029a0cf188730646c379d15073f",
"iso_checksum_type": "md5",
"iso_target_path":"debian.iso",
2016/07/26 09:52:43 Starting build run: vmware-iso
2016/07/26 09:52:43 Running builder: vmware-iso
2016/07/26 09:52:51 packer: 2016/07/26 09:52:51 Detected VMware version: 8
2016/07/26 09:52:51 ui: ==> vmware-iso: Downloading or copying ISO
==> vmware-iso: Downloading or copying ISO
2016/07/26 09:52:51 ui: vmware-iso: Downloading or copying: http://cdimage.debian.org/debian-cd/8.5.0/amd64/iso-cd/debian-8.5.0-amd64-netinst.iso
vmware-iso: Downloading or copying: http://cdimage.debian.org/debian-cd/8.5.0/amd64/iso-cd/debian-8.5.0-amd64-netinst.iso
2016/07/26 09:52:51 packer: 2016/07/26 09:52:51 Verifying checksum of debian.iso
2016/07/26 09:52:52 packer: 2016/07/26 09:52:52 [DEBUG] Initial checksum matched, no download needed.
2016/07/26 09:52:52 packer: 2016/07/26 09:52:52 No floppy files specified. Floppy disk will not be made.