Skip to content

Instantly share code, notes, and snippets.

View fabiojmendes's full-sized avatar

Fabio Mendes fabiojmendes

  • Toronto, Canada
View GitHub Profile
@fabiojmendes
fabiojmendes / wg0.conf
Created December 19, 2022 19:07
Wireguard vpn nat proxy
# ---------- Server Config ----------
# vim: ft=conf
#
# Make sure ip forwarding is enabled
# net.ipv4.ip_forward=1
# net.ipv6.conf.all.forwarding=1
[Interface]
# IPV4 CIDR
Address = 10.10.0.1/24
@fabiojmendes
fabiojmendes / main.c
Created December 4, 2021 05:46
Playing around with interrupt driver uarts in Zephyr
#include <string.h>
#include <zephyr.h>
#include <console/console.h>
#include <drivers/uart.h>
/* size of stack area used by each thread */
#define STACKSIZE 1024
#define UART_1 "UART_1"
#define TTY_BUF_SZ 512