Skip to content

Instantly share code, notes, and snippets.

View TubbyStubby's full-sized avatar
💤
ZZZ

TubbyStubby

💤
ZZZ
View GitHub Profile
@0xdeadbad
0xdeadbad / 00-unity-sandbox-error-ubuntu24.04.md
Last active December 18, 2024 13:27
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

@doughsay
doughsay / lc-practice.py
Created January 7, 2018 02:58
Python List Comprehension Practice Problems
def identity(nums):
"""Identity:
Given a list of numbers, write a list comprehension that produces a copy of the list.
>>> identity([1, 2, 3, 4, 5])
[1, 2, 3, 4, 5]
>>> identity([])
[]
@eyecatchup
eyecatchup / git-commit-log-stats.md
Last active April 11, 2025 08:16
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.