Skip to content

Instantly share code, notes, and snippets.

View 0xdeadbad's full-sized avatar

Matheus da Silva Garcias 0xdeadbad

View GitHub Profile
@0xdeadbad
0xdeadbad / goroutines_context.go
Created March 8, 2019 17:23
Very simples example using Goroutines, Context and WaitGroup
package main
import (
"fmt"
"sync"
"math/rand"
"time"
"context"
)
@0xdeadbad
0xdeadbad / 00-unity-sandbox-error-ubuntu24.04.md
Last active October 17, 2024 04:23
How to fix "No usable sandbox! Update your kernel... If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox." Unity error on Ubuntu 24.04

New apparmor strict policies

The recent LTS release of Ubuntu introduced some more strict apparmor policies that are affecting many packages. To fix it is quite simple, add a file so apparmor don't deny Unityhub actions.

You can do it by yourself or use the script utility I wrote. For the script checkout Using the script

Commands to fix it manually

If you installed using the .deb distribution, your Unity Hub binary file is probably at /opt/unityhub/unityhub-bin, so you can just copy-paste the snippet to /etc/apparmor.d/unityhub