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
Discover gists
| # 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 |
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).
Use ssh keys and define host aliases in ssh config file (each alias for an account).
| #!/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" |
| #!/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" |
| 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 |
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.
- 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).
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. 🤠
