Skip to content

Instantly share code, notes, and snippets.

View cdock1029's full-sized avatar
🏠
Working from home

Conor Dockry cdock1029

🏠
Working from home
View GitHub Profile
@tylerjl
tylerjl / shell.qml
Created October 25, 2025 20:12
Quickshell launcher example
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import QtQuick.LocalStorage
import Quickshell
import Quickshell.Widgets
Window {
id: launcher
title: "qs-launcher"
@guiodic
guiodic / Plasma-X11-improved.md
Last active January 7, 2026 04:05
Improved Plasma X11 experience

This guide is to improve the KDE Plasma experience on X11. It particularly applies to those using the modesetting driver (mainly Intel graphics cards)

Install Xorg-git or Xlibre

This is a crucial step. XLibre and xorg-git contain the "TearFree" feature for modesetting, which is not available in the standard releases. If you use a driver other than modesetting, check that the TearFree option exists for your driver.

Installation depends on the distribution you use. On Arch Linux and derivatives:

Xorg-git:

@johnblat
johnblat / sdl3stbtruetype-example.odin
Last active January 7, 2026 19:04 — forked from Lain62/sdl3stbtruetype-example.odin
A quick guide on how to set up stb truetype(stbtt) with sdl3 on odin
package sdl3stbtruetypeexample
import SDL "vendor:sdl3"
import stbtt "vendor:stb/truetype"
import "core:strings"
Font :: struct {
bitmap: []u8,
packed_char: []stbtt.packedchar,
atlas: ^SDL.Texture,
@RednibCoding
RednibCoding / 0 Dlang debuggin in vs-code.md
Last active December 3, 2025 04:54
Dlang debuggin in vs-code

Setup

To setup debugging for Dlang programs on Windows with VsCode follow these steps:

  • make sure you have the D Programming Language (code-d) (VsCode extension) installed
  • make sure you have the C/C++ extension pack (VsCode extension) installed
  • create a .vscode folder at the root of your DLang project
  • copy the launch.json and tasks.json into it
  • in the launch.json at line: "program": "./my-app.exe", change my-app.exe to your executable name (look in the dub.json under name).
  • click on the debug tab in VsCode, then click on the debug button at the top (or press F5)
/// <summary>
/// Register all interfaces for a type.
/// </summary>
/// <returns>The original <see cref="T:Microsoft.Extensions.DependencyInjection.IServiceCollection" />.</returns>
public static IServiceCollection AsImplementedInterfaces(this IServiceCollection services)
{
var lastRegistration = services.LastOrDefault();
if (lastRegistration != null)
{
var implementationType = GetImplementationType(lastRegistration);
@kitswas
kitswas / QtKitVSCode.md
Last active December 12, 2025 20:50
Qt Kit support for CMake VSCode

Qt Kit support for CMake VSCode

How to add a kit

In VSCode, run command: (Press Ctrl+Shift+P on Windows)

CMake: Edit User-Local CMake Kits
@mattiasgustavsson
mattiasgustavsson / main.c
Created March 5, 2024 19:18
Minimal code example for creating a window to plot pixels to
#include <stdint.h>
#include <stdlib.h>
#include <stdbool.h>
#include <windows.h>
#pragma comment( lib, "user32.lib" )
#pragma comment( lib, "gdi32.lib" )
#define SCRW 640
#define SCRH 480
@rvrsh3ll
rvrsh3ll / windows-keys.md
Created February 18, 2024 22:44
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

@Nezteb
Nezteb / elixir-language-server-comparison.md
Last active September 9, 2025 16:14
Elixir Language Server Comparisons

Update 2

As of August 28th, 2025, Expert LSP has been released: https://github.com/elixir-lang/expert

Although still a work in progress, the plan is for the other three LS implementations to be archived. I may try to come up with a new way to track Expert's featureset, but I would probably contribute that back to Expert as documentation.

Update

As of August 15, 2024, it's been announced that the three projects bein compared here will soon merge! See the official Elixir blog post for more details: https://elixir-lang.org/blog/2024/08/15/welcome-elixir-language-server-team/

@RednibCoding
RednibCoding / 0 Odin debugging on windows.md
Last active December 15, 2025 19:17
Odin debugging on windows with vscode. See: readme

Setup

To setup debugging for Odin programs on Windows with VsCode follow these steps:

  • make sure you have the C/C++ extension pack (VsCode extension) installed
  • create a .vscode folder at the root of your Odin project
  • copy the launch.json and tasks.json into it
  • click on the debug tab in VsCode, then click on the debug button at the top (or press F5)

Note: if you want to use a starter template which also sets up a tracking allocator which tracks and reports memory leaks you can use: https://github.com/RednibCoding/Odin-Starter