Skip to content

Instantly share code, notes, and snippets.

View mgillman's full-sized avatar

Michael Gillman mgillman

View GitHub Profile
@p0358
p0358 / truecharts_pvc_backup.md
Last active April 25, 2025 03:06
How to backup your TrueCharts PVC data before moving on to TrueNAS SCALE 24.10 Electric Eel + Docker

So say that you have been running your TrueNAS SCALE 24.04 or 23.10 or older happily with your TrueCharts apps installed (as happy as you could be with that buggy mess of a project).

You either stuck with 23.10 Cobia, because you didn't want to bother doing yet another TrueCharts troublesome migration where they removed did something with PVC rearrangement and expected you to re-setup all your apps yet again (!), or you upgraded to 24.04 Fangtooth either while ignoring these instructions and apps still kept on working or running the PVC migration script as intended.

You kept your apps config storages to PVC as that was a simple default. (You start to grow a certain regret of not using host path mounts for everything from the beginning, but that's all water in drain now.)

Now you want to backup that data so that you can move to Docker-based apps in upcoming 24.10 Electric Eel release flawlessly and gracefully, and be happy everafter.

This tutorial and a bunch of pointers here is for you then

/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@morewry
morewry / compass-config-with-png-compression.rb
Created November 26, 2012 20:14 — forked from kswedberg/snippet.rb
Compass config with pngquant, pngout, and optipng to compress sprite
compiletype = environment
project_path = File.dirname(__FILE__) + "/"
utils_dir = "utilities/"
utils_path = project_path + utils_dir
# callback - on_sprite_saved
# http://compass-style.org/help/tutorials/configuration-reference/
on_sprite_saved do |filename|
if File.exists?(filename)
if (compiletype == :production)