Skip to content

Instantly share code, notes, and snippets.

@michael1011
michael1011 / cmds.go
Created July 11, 2023 09:10
LND Compactor
package main
import (
"encoding/binary"
"errors"
"fmt"
"github.com/urfave/cli/v2"
"os"
"strconv"
"time"
@osy
osy / README.md
Last active August 1, 2026 06:00
Local caching for GitHub Actions self hosted runner using Squid Proxy

One of the biggest issues with using a self hosted GitHub runner is that actions that require downloading large amounts of data will bottleneck at the network. [actions/cache][1] does not support locally caching objects and artifacts stored on GitHub's servers will require a lot of bandwidth to fetch on every job. We can, however, set up a content proxy using [Squid][2] with SSL bumping to locally cache requests from jobs.

This is for Squid 7.6 on macOS with [Homebrew][6].

Install

git clone https://gist.github.com/30c5c96d7575efd1d2a2db5e3def0815.git squid-cache
cd squid-cache
bash deploy.sh