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
  • 16:31 (UTC -07:00)
View GitHub Profile
@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)