Skip to content

Instantly share code, notes, and snippets.

View JangoCG's full-sized avatar

Cengiz Gürtusgil JangoCG

View GitHub Profile
@JangoCG
JangoCG / settings.jsonc
Created April 9, 2026 12:10
Windows Terminal keybindings (tmux-style)
1 {
2 "actions": [
3 // Pane splits (wie tmux h/v)
4 { "command": { "action": "splitPane", "split": "horizontal" }, "keys": "ctrl+alt+h" },
5 { "command": { "action": "splitPane", "split": "vertical" }, "keys": "ctrl+alt+v" },
6 { "command": "closePane", "keys": "ctrl+alt+x" },
7
8 // Pane navigation (wie tmux C-M-Arrow)
9 { "command": { "action": "moveFocus", "direction": "left" }, "keys": "ctrl+alt+left" },
10 { "command": { "action": "moveFocus", "direction": "right" }, "keys": "ctrl+alt+right" },
@JangoCG
JangoCG / microgpt.py
Created February 11, 2026 21:20 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and inference a GPT LLM in pure, dependency-free Python.
Differences from GPT-2 are minor: rmsnorm instead of layer norm, no biases, square ReLU instead of GeLU nonlinearity.
The contents of this file is everything algorithmically needed to train a GPT. Everything else is just efficiency.
Art project by @karpathy.
"""
import os # for os.path.exists
import math # for math.log, math.exp
import random # for random.seed, random.choices
# Create a new worktree and branch from within current git directory.
ga() {
if [[ -z "$1" ]]; then
echo "Usage: ga [branch name]"
exit 1
fi
local branch="$1"
local base="$(basename "$PWD")"
local path="../${base}--${branch}"

how to download Meta Sam3D model output (gaussian splat .ply)

  • press F12 to open browser developer tools, open Network tab
  • generate some 3d object https://aidemos.meta.com/segment-anything/editor/convert-image-to-3d
  • view Fetch/XHR requests in the network panel
  • find graphql/ request (usually the last one), with data like: data: {xfair_sam3d_3dfy_model_gaussian_splat...
  • open the data hierarchy to find "gaussian_splat: ..." and it contains url to .ply file
  • copy that url and open in browser to download file
@JangoCG
JangoCG / linux-setup.sh
Created October 28, 2025 21:38 — forked from dhh/linux-setup.sh
linux-setup.sh
# THIS LINUX SETUP SCRIPT HAS MORPHED INTO A WHOLE PROJECT: HTTPS://OMAKUB.ORG
# PLEASE CHECKOUT THAT PROJECT INSTEAD OF THIS OUTDATED SETUP SCRIPT.
#
#
# Libraries and infrastructure
sudo apt update -y
sudo apt install -y \
docker.io docker-buildx \
build-essential pkg-config autoconf bison rustc cargo clang \
@JangoCG
JangoCG / gist:3ed6468bd77beae4e488b8f3e6f0b07f
Created September 26, 2025 22:32
Laravel Inertia Dockerfile
############################################
# Base Image
############################################
# Learn more about the Server Side Up PHP Docker Images at:
# https://serversideup.net/open-source/docker-php/
FROM serversideup/php:8.3-fpm-nginx-alpine AS base
## Uncomment if you need to install additional PHP extensions
# USER root