Skip to content

Instantly share code, notes, and snippets.

View unspezifisch's full-sized avatar

Űnspezifisch unspezifisch

  • Kerbodyne
  • Berlin
View GitHub Profile
@unspezifisch
unspezifisch / doom.txt
Created August 5, 2023 09:15 — forked from hjertnes/doom.txt
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@unspezifisch
unspezifisch / macOS Internals.md
Created August 29, 2023 08:44 — forked from kconner/macOS Internals.md
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@unspezifisch
unspezifisch / header.code-snippets
Created June 5, 2024 00:20 — forked from Ghost-VR/header.code-snippets
Visual Studio Code Snippet: C/C++ Header Guard; Auto Include
{
"Add include guard": {
"prefix": "guard",
"description": "Adds an ifndef include guard to a C/C++ header",
"body": [
"#ifndef __${TM_FILENAME/^([^\\.]*)\\..*$/${1:/upcase}/}_${TM_FILENAME/^.*\\.([^\\.]*)$/${1:/upcase}/}__",
"#define __${TM_FILENAME/^([^\\.]*)\\..*$/${1:/upcase}/}_${TM_FILENAME/^.*\\.([^\\.]*)$/${1:/upcase}/}__",
"",
"$0",
"",
@unspezifisch
unspezifisch / change-codec.md
Created December 18, 2024 14:59 — forked from dvf/change-codec.md
Enable High Quality mode on your headphones (Updated for macOS Catalina)

If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.

Find out what codec you're using

  1. Play a song on your headphones
  2. Option (⌥) click the Bluetooth button at the top of your screen Inspect the Bluetooth Coded
  3. If you're using AAC or aptX, you can stop here—those are the highest quality codecs.

Change your codec to AAC or aptX

10 print chr$(147)
20 ca = 1024: cp = 54272: r = 25: co = 40
30 poke 53280,0: poke 53281,0
40 for w = 3 to 50
50 for i = 1 to 12
60 for j = 0 to 12
70 k = i + j
80 c = j + j + j / (i + 3) + i * w / 12
90 k1 = ca + i + (co * k)
100 i1 = ca + k + (co * i)
@unspezifisch
unspezifisch / docker-cockpit-portainer.sh
Created February 26, 2025 19:33 — forked from sdesalas/docker-cockpit-portainer.sh
Docker + Portainer + Cockpit
#1 Openssh server
sudo apt install -y openssh-server
sudo systemctl enable ssh
sudo systemctl start ssh
sudo ufw enable
sudo ufw allow ssh
#2 Docker (https://docs.docker.com/engine/install/ubuntu/)
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
@unspezifisch
unspezifisch / Godot Minimap.md
Created April 17, 2025 11:48 — forked from EIREXE/Godot Minimap.md
Automatic minimap generation in godot

Building an automated map/minimap system in Godot

Why?

Our game, ERO-ONE needed a minimap system, it being an open world game made this a necessity, otherwise the player wouldn't really know where he's going.

Of course making a proper minimap is hard, we told ourselves that our game didn't really need it because it's not as big as the open world powerhouse that is Grand Theft Auto, but the real reasons are...