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/bash | |
| # | |
| # build kernel modules | |
| # | |
| wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.9.170.tar.gz | |
| tar xzf linux-4.9.170.tar.gz | |
| cd linux-4.9.170 | |
| wget -O .config https://raw.githubusercontent.com/knulli-cfw/distribution/refs/heads/knulli-main/board/batocera/allwinner/h700/linux-sunxi64-legacy.config |
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
| import json | |
| import yaml | |
| from collections import defaultdict | |
| from graphviz import Digraph | |
| def create_dot(openapi_file): | |
| # Load the OpenAPI file | |
| with open(openapi_file, 'r') as f: | |
| if openapi_file.endswith('.json'): | |
| openapi_data = json.load(f) |
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
| qApp.setStyle("Fusion") | |
| dark_palette = QPalette() | |
| dark_palette.setColor(QPalette.Window, QColor(53, 53, 53)) | |
| dark_palette.setColor(QPalette.WindowText, Qt.white) | |
| dark_palette.setColor(QPalette.Base, QColor(25, 25, 25)) | |
| dark_palette.setColor(QPalette.AlternateBase, QColor(53, 53, 53)) | |
| dark_palette.setColor(QPalette.ToolTipBase, Qt.white) | |
| dark_palette.setColor(QPalette.ToolTipText, Qt.white) |
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
| qApp->setStyle(QStyleFactory::create("Fusion")); | |
| QPalette darkPalette; | |
| darkPalette.setColor(QPalette::Window, QColor(53,53,53)); | |
| darkPalette.setColor(QPalette::WindowText, Qt::white); | |
| darkPalette.setColor(QPalette::Base, QColor(25,25,25)); | |
| darkPalette.setColor(QPalette::AlternateBase, QColor(53,53,53)); | |
| darkPalette.setColor(QPalette::ToolTipBase, Qt::white); | |
| darkPalette.setColor(QPalette::ToolTipText, Qt::white); | |
| darkPalette.setColor(QPalette::Text, Qt::white); |