Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
BEGIN { | |
getline < "/tmp/cpu-usage-cache" | |
close("/tmp/cpu-usage-cache") | |
prev_idle = $1 | |
prev_total = $2 | |
getline < "/proc/stat" | |
close("/proc/stat") | |
idle = $5 | |
total = 0 | |
for (i=2; i<=NF; i++) |
#include <cstdio> | |
#include <utility> | |
#include <GLFW/glfw3.h> | |
#include <unistd.h> | |
static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) {} | |
static void error_callback_glfw(int error, const char* description) {} | |
static void framebuffer_size_callback(GLFWwindow* window, int width, int height) {} | |
# | |
# Set FullHD resolution (1920x1080) into a HD monitor of native resolution 1366x768. | |
# | |
xrandr --output eDP1 --mode 1366x768 --panning 1920x1080 --scale 1.41 | |
# | |
# Set a scaled down resolution of 1920x1080 to 21:9 monitor (2560x1080) | |
$ | |
xrandr --output HDMI1 --mode 1920x1080 --panning 1920x1080 |
cmake_minimum_required(VERSION 3.5) | |
include(ExternalProject) | |
######################################################################################### | |
# GLAD | |
######################################################################################### | |
option(DOWNLOAD_GLAD "Download and build GLAD" OFF) | |
# Build settings | |
set(GLAD_PREFIX ${CMAKE_BINARY_DIR}/GLAD) |
cmake_minimum_required(VERSION 3.5) | |
include(ExternalProject) | |
######################################################################################### | |
# GLFW3 | |
######################################################################################### | |
option(BUILD_GLFW3 "Download and build GLFW3" OFF) | |
# Use GLFW from system | |
if(NOT BUILD_GLFW3) |
cmake_minimum_required(VERSION 3.5) | |
include(ExternalProject) | |
######################################################################################### | |
# GLEW | |
######################################################################################### | |
set(GLEW_PREFIX ${CMAKE_BINARY_DIR}/glew) | |
set(GLEW_INCLUDE_DIR ${GLEW_PREFIX}/include CACHE STRING "GLEW Include Directory") | |
set(GLEW_LIBRARY ${GLEW_PREFIX}/lib64/libGLEW.a CACHE STRING "GLEW Static Library") | |
set(GLEW_LIB_DEPENDENCIES CACHE STRING "GLEW Library Dependencies" |
#!/bin/bash | |
## Setup GTest/GMock | |
set -Eeuxo pipefail | |
# Require root | |
[ "$UID" -eq 0 ] || exec sudo "$0" "$@" | |
# Check required packages are installed | |
dpkg -s libgtest-dev |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "esp_system.h" | |
#include "esp_log.h" | |
#include "bt.h" | |
#include "bta_api.h" | |
#include "esp_gap_ble_api.h" | |
#include "esp_bt_main.h" |
#include <math.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "driver/gpio.h" | |
#include "driver/i2c.h" | |
#include "driver/spi_master.h" | |
#include "esp_err.h" | |
#include "esp_log.h" |