Skip to content

Instantly share code, notes, and snippets.

[
{ "key": "ctrl+f5", "command": "cmake.launchTarget" },
{ "key": "f5", "command": "cmake.debugTarget", "when": "!inDebugMode" },
{ "key": "f5", "command": "workbench.action.debug.pause", "when": "inDebugMode && debugState == 'running'" },
{ "key": "f5", "command": "workbench.action.debug.continue", "when": "inDebugMode && debugState != 'running'" },
{ "key": "f9", "command": "workbench.action.debug.stepOut" },
{ "key": "f10", "command": "workbench.action.debug.stepOver" },
{ "key": "f11", "command": "workbench.action.debug.stepInto" },
{ "key": "pausebreak", "command": "workbench.action.togglePanel" },
]
{
// Style
"editor.tabSize": 8,
"editor.indentSize": 2,
"editor.detectIndentation": false,
"editor.wordWrap": "on",
"editor.wordWrapColumn": 120,
"editor.rulers": [ 120 ],
"files.eol": "\n",
@qis
qis / .gitconfig
Last active September 4, 2025 20:52
# git in # initialize repository
# git up # fetch updates and prune deleted branches
# git br # list available branches
# git co <branch> # checkout a specific branch
# git ls # show commits
# git st # show modified files status
# git sw <branch> # create new branch with current changes
# git add <files> # stage file
# git add --renormalize <files> # re-process tracked files after line ending changes
# git ll # list files
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions": [],
"alwaysShowTabs": false,
"copyFormatting": "all",
"copyOnSelect": true,
"initialCols": 120,
"initialRows": 35,
"multiLinePasteWarning": false,
@qis
qis / launcher.c
Last active May 25, 2025 19:32
Minimal launcher application for Linux and Windows.
#ifndef _WIN32
#ifndef _DEFAULT_SOURCE
#define _DEFAULT_SOURCE
#endif
#endif
#include <cpuid.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>

Sysroot

Choosing a Linux distribution for a development sysroot.

Distribution Release Support Extended Linux GNU libc
Debian 8 (Jessie) 2015-04-25 2020-06-30 2025-06-30 3.16 2.19
Debian 9 (Stretch) 2017-07-17 2022-06-30 2027-06-30 4.9 2.24
Debian 10 (Buster) 2019-06-06 2024-06-30 2029-06-30 4.19 2.28
Debian 11 (Bullseye) 2021-08-14 2026-06-30 2031-06-30 5.10 2.31
Debian 12 (Bookworm) 2023-06-10 2028-06-30 2033-06-30 6.1 2.36
// This is a random access iterator similar to boost::counting_iterator for use with
// parallel algorithms. It's probably not necessary to have random access or overflow
// checking. More testing needed, but useful as a snippet.
#include <compare>
#include <concepts>
#include <exception>
#include <iterator>
#include <cstddef>
#include <fmt/format.h>
#include <range/v3/view.hpp>
#include <vector>
struct event {
int created = 0;
int status = 0;
};
std::vector<event> create_events() {
// https://en.cppreference.com/w/cpp/thread/shared_mutex
// https://godbolt.org/z/eoqErv
#include <iostream>
#include <shared_mutex>
#include <thread>
#include <vector>
int g_value = 0;
std::shared_mutex g_mutex;
@qis
qis / office.md
Last active May 20, 2025 13:19
Microsoft Office

Microsoft Office

Install Microsoft Office and Language Packs.

General
+ Privacy Settings
  [Privacy Settings...]
  + Optional diagnostic data
    ☐ Send additional diagnostic and usage data to Microsoft
  + Connected experiences