This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
After=network-online.target | |
[Service] | |
Type=oneshot | |
RemainAfterExit=yes | |
Environment="SUDO_USER=<change to your user>" | |
ExecStart=/usr/local/bin/pvpn -f | |
ExecStop=/usr/local/bin/pvpn --disconnect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |