Skip to content

Instantly share code, notes, and snippets.

@d7samurai
d7samurai / .readme.md
Last active December 14, 2025 22:53
Minimal D3D11

Minimal D3D11

Minimal D3D11 reference implementation: An uncluttered Direct3D 11 setup + basic rendering primer and API familiarizer. Complete, runnable Windows application contained in a single function and laid out in a linear, step-by-step fashion that should be easy to follow from the code alone. ~200 LOC. No modern C++, OOP or (other) obscuring cruft. View on YouTube

hollowcube

Other gists in this series:

@erangaeb
erangaeb / minio-aws-cli
Last active December 14, 2025 22:39
aws-cli to interact with minio
# connect to minio docker
# -u 0 connect as root user
docker exec -it -u 0 minio bash
# install aws-cli
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
# configure aws
@oanhnn
oanhnn / using-multiple-github-accounts-with-ssh-keys.md
Last active December 14, 2025 22:37
Using multiple github accounts with ssh keys

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@stuaxo
stuaxo / install-old-ppviewer-fonts.sh
Created September 2, 2025 01:53
Install the old powerpoint viewer fonts in debian based distros.
#!/bin/bash
#
# script that paraphtases info from the debian wiki at: https://wiki.debian.org/ppviewerFonts
#
#
set -e
DOWNLOAD_URL="https://archive.org/download/PowerPointViewer_201801/PowerPointViewer.exe"
EXPECTED_CHECKSUM="249473568eba7a1e4f95498acba594e0f42e6581add4dead70c1dfb908a09423"
FONT_DIR="$HOME/.local/share/fonts/ppviewer"
@antonsoroko
antonsoroko / kodi_paste_text.sh
Created March 12, 2025 12:59
Paste copied or selected text into Kodi in Linux.
#!/bin/bash
text="$(xclip -out -selection clipboard)"
# OR xsel --output --clipboard ; remove "clipboard" if you want to use PRIMARY selection.
xdotool type --window $(xdotool search --class Kodi) -- "$text"
@MRKMKR
MRKMKR / docker-compose.yml
Created October 24, 2025 13:26
Using GLM-4.6 with Xcode 26 via LiteLLM Proxy
services:
litellm:
image: ghcr.io/berriai/litellm:main-latest
container_name: glm-proxy
ports:
- "4000:4000"
volumes:
- ./litellm_config.yaml:/app/config.yaml
command: --config /app/config.yaml
restart: unless-stopped
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active December 14, 2025 22:27
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@francopig
francopig / .md
Last active December 14, 2025 22:26
Asimov Code apuntes

Asimov Code apuntes 📚

Hola! 👨‍💻 Este archivo contiene enlaces a mis apuntes de materias universitarias y videos del canal. A medida que vaya haciendo nuevos, los voy a agregar aquí. También, si se realizan cambios en los archivos de Notion, estos se actualizan automáticamente. Así que siempre tendrán acceso a la versión más nueva. Espero que les sea de utilidad. 🤠

Apuntes universitarios 📖