Skip to content

Instantly share code, notes, and snippets.

View MetGang's full-sized avatar

Patrick Stritch MetGang

  • 05:14 (UTC +02:00)
View GitHub Profile
@MetGang
MetGang / Stritch-swap-v2.cpp
Created November 24, 2019 21:53
Stritch swap v2
// Stritch swap v2
// Live demo https://godbolt.org/z/gXEqjX
#include <iostream>
#include <type_traits>
#include <tuple>
#include <new>
template <typename T>
concept Trivial = std::is_trivial_v<T>;
set-option -sa terminal-overrides ',xterm*:Tc'
set -g mouse on
set -g mode-keys vi
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
" Use Vim settings rather than Vi settings
set nocompatible
" Include the system settings
if filereadable("/etc/vimrc")
source /etc/vimrc
endif
" Setup plug.vim
if !filereadable($HOME . "/.vim/autoload/plug.vim")
#!/usr/bin/env bash
cmake -S . -B build -G "Unix Makefiles" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON "$@" && ln -frs build/compile_commands.json .
@MetGang
MetGang / autoexec.cfg
Created June 27, 2025 11:16
TF2 autoexec.cfg
fps_max 144
mat_picmip -10
fov_desired 90
viewmodel_fov 70
tf_use_min_viewmodels 1
cl_interp 0.0325
cl_interp_ratio 1
rate 97000
cl_updaterate 66
cl_cmdrate 66