This set of launch.json and task.json files allow you to build and debug individual C files from within Windows
while using the gcc collection installed within your WSL environment.
sudo apt-get update
sudo apt-get install -y gcc gdb| #!/usr/bin/env bash | |
| # | |
| # Enable docker and docker-compose on TrueNAS SCALE (no Kubernetes) | |
| # | |
| # This script is a hack! Use it at your own risk!! | |
| # Using this script to enable Docker is NOT SUPPORTED by ix-systems! | |
| # You CANNOT use SCALE Apps while using this script! | |
| # | |
| # 1 Create a dedicated Docker dataset in one of your zpools |
| #!/bin/bash | |
| set -x | |
| v2=$1 | |
| v2=${v2:="/var/lib/registry/docker/registry/v2"} | |
| cd ${v2} | |
| all_blobs=/tmp/all_blobs.list | |
| : > ${all_blobs} | |
| # delete unlink blob's link file in _layers | |
| for link in $(find repositories -type f -name "link" | grep -E "_layers\/sha256\/.*"); do | |
| link_sha256=$(echo ${link} | grep -Eo "_layers\/sha256\/.*" | sed 's/_layers\/sha256\///g;s/\/link//g') |
This set of launch.json and task.json files allow you to build and debug individual C files from within Windows
while using the gcc collection installed within your WSL environment.
sudo apt-get update
sudo apt-get install -y gcc gdb