Generation of a self-signed SSL certificate involves a simple 3-step procedure:
STEP 1: Create the server private key
openssl genrsa -out cert.key 2048STEP 2: Create the certificate signing request (CSR)
openssl req -new -key cert.key -out cert.csr| ([xml](svn status --xml)).status.target.entry.path | sls ".zip" | %{svn revert $_} |
| cmake_minimum_required(VERSION 3.16) | |
| set(CMAKE_CONFIGURATION_TYPES Debug Release CACHE STRING "" FORCE) | |
| set(CMAKE_BUILD_TYPE Debug CACHE STRING "") | |
| project(cppgl) | |
| set(CMAKE_CXX_STANDARD 20) | |
| if (NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake") |
| // | |
| // Miminal C++ SDL2 OpenGL 4.5 example | |
| // | |
| // by Poddubny Michael | |
| // | |
| // Download OpenGL header: | |
| // wget https://www.khronos.org/registry/OpenGL/api/GL/glcorearb.h | |
| // | |
| // Compile: | |
| // g++ -std=c++11 sdl2_opengl_4_5_triangle.cpp -I. -lSDL2 -o sdl2_opengl_4_5_triangle |
| /* | |
| Minimal SDL2 + OpenGL3 example. | |
| Author: https://github.com/koute | |
| This file is in the public domain; you can do whatever you want with it. | |
| In case the concept of public domain doesn't exist in your jurisdiction | |
| you can also use this code under the terms of Creative Commons CC0 license, | |
| either version 1.0 or (at your option) any later version; for details see: | |
| http://creativecommons.org/publicdomain/zero/1.0/ |
| import glob | |
| def search_str(file_path, buf): | |
| with open(file_path, 'rb') as file: | |
| # read all content of a file | |
| content = file.read() | |
| # check if string present in a file | |
| return buf in content | |
| fl = glob.glob('*.fxo') |
| Install WireGuard via whatever package manager you use. For me, I use apt. | |
| $ sudo add-apt-repository ppa:wireguard/wireguard | |
| $ sudo apt-get update | |
| $ sudo apt-get install wireguard | |
| MacOS | |
| $ brew install wireguard-tools | |
| Generate key your key pairs. The key pairs are just that, key pairs. They can be |
| #!usr/bin/bash | |
| sshfs -o cache=yes -o kernel_cache -o large_read -o compression=yes -o [email protected] -o reconnect $1 $2 |
| Host github.com | |
| User git | |
| Hostname github.com | |
| PreferredAuthentications publickey | |
| IdentityFile /home/user/.ssh/id_rsa |