Skip to content

Instantly share code, notes, and snippets.

View araml's full-sized avatar
🦊
As cold as any stone

L araml

🦊
As cold as any stone
View GitHub Profile
@d7samurai
d7samurai / .readme.md
Last active October 20, 2025 05:20
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:

@araml
araml / init.vim
Last active November 14, 2024 23:37
My vimrc for neovim
if $SHELL =~ 'bin/fish'
set shell=/bin/sh
endif
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
call plug#begin('~/.local/share/nvim/plugged')
" " alternatively, pass a path where Vundle should install plugins
@araml
araml / Makefile
Last active September 21, 2016 17:25
# Compiler
CC = g++
# Compiler flags -Weffc++
CFLAGS = -Wpedantic -Wall -Wextra -c -g -std=c++11 -ggdb -O0
# Linker flags
LDFLAGS =
# for glw3 LDLFLAGS = -lGLEW -lglfw3 -lGL -lX11 -lXi -lXrandr -lXxf86vm -lXinerama -lXcursor -lrt -lm -pthread -ldl
HEADERS =
@bozdag
bozdag / taking screenshot in linux with C
Last active January 16, 2025 17:30
This C program takes the whole screenshot of the root window for a given display and saves it in PNG file format.
/*
Grabs a screenshot of the root window.
Usage : ./scr_tool <display> <output file>
Example : ./scr_tool :0 /path/to/output.png
Author: S Bozdag <selcuk.bozdag@gmail.com>
*/
@niksumeiko
niksumeiko / git.migrate
Last active July 1, 2025 18:41
Moving git repository and all its branches, tags to a new remote repository keeping commits history
#!/bin/bash
# Sometimes you need to move your existing git repository
# to a new remote repository (/new remote origin).
# Here are a simple and quick steps that does exactly this.
#
# Let's assume we call "old repo" the repository you wish
# to move, and "new repo" the one you wish to move to.
#
### Step 1. Make sure you have a local copy of all "old repo"
### branches and tags.
@dsc8x
dsc8x / Monaco_Linux-Powerline.ttf
Created January 18, 2012 17:19
Monaco for vim-powerline