Compiler | Version | __cplusplus |
---|---|---|
g++ | 4.7.4 | 199711L |
5.5.0 | 199711L | |
6.1.0 | 201402L | |
10.2 | 201402L | |
11.1.0 | 201703L | |
clang++ | 3.4.2 | 199711L |
This file contains 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
# References: | |
https://wiki.archlinux.org/title/HiDPI | |
# Setup monitors | |
xrandr --output DP-0 --mode 3840x2160 --output HDMI-0 --mode 1920x1080 --pos 3840x0 --filter bilinear --scale-from 3840x2160 | |
# Add to ~/.Xresources | |
Xft.dpi: 152 | |
# Add to ~/.config/shell/profile |
This file contains 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
# see https://support.google.com/calendar/thread/143707333/repeat-every-last-day-of-month-is-missing?hl=en | |
BEGIN:VCALENDAR | |
BEGIN:VTODO | |
DTSTART:20240229 | |
DTEND:20240229 | |
RRULE:FREQ=MONTHLY;BYMONTHDAY=-1 | |
DESCRIPTION: | |
LOCATION: | |
STATUS:CONFIRMED | |
SUMMARY:Last Day Event |
This file contains 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
<scheme name="Plastic custom" version="142" parent_scheme="Darcula"> | |
<metaInfo> | |
<property name="created">2023-01-12T17:38:06</property> | |
<property name="ide">CLion</property> | |
<property name="ideVersion">2022.3.1.0.0</property> | |
<property name="modified">2023-01-12T17:38:18</property> | |
<property name="originalScheme">Plastic custom</property> | |
</metaInfo> | |
<colors> | |
<option name="ADDED_LINES_COLOR" value="98c379" /> |
This file contains 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
auto load_font_texture(gsl::span<const uint8_t> data, size_t width, size_t height) -> GLTexture | |
{ | |
GLuint texture; | |
glGenTextures(1, &texture); | |
glBindTexture(GL_TEXTURE_2D, texture); | |
glPixelStorei(GL_UNPACK_ALIGNMENT, 1); | |
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); | |
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); | |
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); |
- Make sure you have installed
lm_sensors
- sudo pacman -S lm_sensors --needed
- Download and Install the it87 kernel module for the driver support:
- git clone https://github.com/gamanakis/it87.git --branch=it8688E
- sudo make; sudo make install
- To temporary enable the it87 module
This file contains 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
<device screen="0" driver="dri2"> | |
<application name="Default"> | |
<option name="vblank_mode" value="1"/> | |
</application> | |
</device> |
This file contains 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/sh | |
# array of connected monitors | |
monitors=( $(xrandr | grep ' connected ' | cut -d' ' -f1) ) | |
# for the integrated display, set a higher resolution | |
if [ ${#monitors[@]} -eq 1 ]; then | |
xrandr --output $monitors --mode 1366x768 --panning 1920x1080 --scale 1.41 | |
# for multiple monitors, enable them all |
This file contains 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
1. Install ArchLinux ARMv7 on the SD card | |
Follow the guide lines in: https://archlinuxarm.org/platforms/armv8/broadcom/raspberry-pi-3 | |
2. Configure Serial UART0 to the Linux console | |
Only need to disable the bluetooth on UART0 to free it to operate as linux console: | |
Add the following to /boot/config.txt to disable the onboard bluetooth on UART0: |
This file contains 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/sh | |
# Module showing CPU load as a changing bars. | |
# Just like in polybar. | |
# Each bar represents amount of load on one core since | |
# last run. | |
# Cache in tmpfs to improve speed and reduce SSD load | |
cache=/tmp/cpubarscache |
NewerOlder