Skip to content

Instantly share code, notes, and snippets.

View talisein's full-sized avatar
💭
dreaming of my next project

talisein talisein

💭
dreaming of my next project
  • Mountain View, CA
  • 21:45 (UTC -07:00)
View GitHub Profile
@talisein
talisein / CLANG_REQUIREMENTS.md
Last active July 7, 2026 06:08
Meson Requiremenets for C++ Modules -- My Take

C++ Modules Support — Clang Port Requirements (harvest-edge design)

Status: Draft / architecture, from verified experiments. Target compiler: Clang (verified against Clang 22.1.8 + clang-scan-deps 22.1.8, Fedora). GCC and MSVC are covered by the companion documents. Backend: Ninja only. Companion to: MODULES_REQUIREMENTS.md (the design and its rules) and HEADER_UNIT_REQUIREMENTS.md (the declared-units addition). That first document scoped Clang out (its §6, §14) on the claim that Clang "will not self-name BMIs into a directory the way GCC does." This document records the

@talisein
talisein / dpp-simple.C
Last active November 4, 2025 19:17
GCC testcase for DPP coroutine
// Override default options.
// { dg-do run }
// { dg-options "-std=gnu++20 -fcoroutines -Wall -fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_DEBUG -DAVX_TYPE=2 -DDPP_BUILD -DDPP_OS=Linux -DHAVE_VOICE -DNOMINMAX -I/home/agpotter/git/DPP/library/../mlspp/include -I/home/agpotter/git/DPP/library/../mlspp/lib/bytes/include -I/home/agpotter/git/DPP/library/../mlspp/lib/hpke/include -I/home/agpotter/git/DPP/library/../include -I/home/agpotter/git/DPP/library/../include/dpp -pthread " }
//
// filename: gcc/testsuite/g++.dg/coroutines/dpp-simple.C
// run via: make -C gcc check-g++ RUNTESTFLAGS=dg.exp=dpp-simple.C
//
#include <thread>
#include <iostream>
#include <dpp/dpp.h>
@talisein
talisein / README.md
Last active November 30, 2023 02:40
Torrenting in a network namespaced wireguard vpn

Network Namespaced NordVPN & rtorrent

This is my approach for running NordVPN in a network namespace, and then running rtorrent in that netns.

I did this on Fedora 39 in November 2023.

NordVPN Details

You need to get the wireguard details that the NordVPN client uses to get the private key, local ip, and local port number. This post is helpful.

// This example adds handling stylus input to the Custom Drawing example
// from the GTK4 Getting Started.
// See: https://docs.gtk.org/gtk4/getting_started.html#custom-drawing
#include <gtkmm.h>
#include <gdk/gdk.h>
class MainWindow : public Gtk::ApplicationWindow
{
public:

proof

I hereby claim:

  • I am talisein on github.
  • I am agpotter (https://keybase.io/agpotter) on keybase.
  • I have a public key ASBQfkDQDQqZmjQ6V3nwhZSXZFfdsY8ryT2NM-fp8T3BhAo

To claim this, I am signing this object:

@talisein
talisein / gdate.c
Created January 4, 2016 04:01
GDate copy problem
/* Compile with:
* gcc `pkg-config --cflags --libs glib-2.0 gobject-2.0` gdate.c
*/
#include <glib-object.h>
#include <stdlib.h>
#include <stdio.h>
#define FOO_TYPE_BAR (foo_bar_get_type ())
G_DECLARE_FINAL_TYPE(FooBar, foo_bar, FOO, BAR, GObject)