Skip to content

Instantly share code, notes, and snippets.

View ringbuffer.diff
diff --git a/cmake/process_project.txt b/cmake/process_project.txt
index 5c45f6e..261e992 100644
--- a/cmake/process_project.txt
+++ b/cmake/process_project.txt
@@ -6,8 +6,6 @@ MESSAGE(STATUS "Configuring ${PROJECT_NAME} ${VERSION}...")
# directories
SET(src_base "${CMAKE_CURRENT_SOURCE_DIR}/src/")
-include_directories("${CMAKE_CURRENT_BINARY_DIR}/src/") # for config.h
-include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include") # TODO: libraries only?
from dataclasses import dataclass
def dataclass_with_default_init(_cls=None, *args, **kwargs):
def wrap(cls):
# Save the current __init__ and remove it so dataclass will
# create the default __init__.
user_init = getattr(cls, "__init__")
delattr(cls, "__init__")
# let dataclass process our class.
Reflexe / protonvpn.service
Created Aug 23, 2019
Protonvpn systemd unit
View protonvpn.service
Environment="SUDO_USER=<change to your user>"
ExecStart=/usr/local/bin/pvpn -f
ExecStop=/usr/local/bin/pvpn --disconnect
#!/bin/env bash
# I don't know way, but without this line gcc start to compile stdout :\
exec 1>&2
set -x
# build the linux targets with {linux_headers_path}/build;
# compile it to the our Makefile's path and read
# our Makefile from stdin to make its path simpler.