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
Show hidden characters
| // For format details, see https://aka.ms/devcontainer.json. For config options, see the | |
| // README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu | |
| { | |
| "name": "Ubuntu", | |
| // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | |
| "image": "mcr.microsoft.com/devcontainers/base:jammy", | |
| // Features to add to the dev container. More info: https://containers.dev/features. | |
| "features": { | |
| "ghcr.io/rocker-org/devcontainer-features/apt-packages:1": { |
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
| { | |
| "image": "mcr.microsoft.com/devcontainers/universal:2", | |
| "features": { | |
| "ghcr.io/rocker-org/devcontainer-features/rstudio-server:0": {}, | |
| "ghcr.io/meaningful-ooo/devcontainer-features/homebrew:2": {} | |
| } | |
| } |
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
| #include <cassert> | |
| /*! | |
| * \brief True if the first string ends with the second string. | |
| * \param ends String with some required ending for which to test. | |
| * \param with Ending to test the first string against. | |
| */ | |
| bool ends_with(const std::string &ends, const std::string &with) { | |
| return ends.length() >= with.length() && | |
| ends.compare(ends.length() - with.length(), with.length(), with) == 0; |
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
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "(gdb) Launch", | |
| "type": "cppdbg", | |
| "request": "launch", |
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
| @REM wsl --shutdown docker-desktop | |
| @REM wsl --shutdown docker-desktop-data | |
| select vdisk file="C:\Users\..\AppData\Local\Docker\wsl\data\ext4.vhdx" | |
| attach vdisk readonly | |
| compact vdisk | |
| detach vdisk |
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
| rootfs: | |
| docker run -it --rm -v rootfs:/mnt -v .:/home alpine tar -C /mnt -xf /home/rootfs.tar | |
| rootfs-%: | |
| docker run -it --rm -v rootfs:/mnt --privileged --platform linux/arm arm32v7/alpine $* | |
| ash: rootfs-ash | |
| # /etc/init.d/rcK | |
| # /etc/init.d/rcS |
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
| config BR2_PACKAGE_SWIPL_FFI | |
| bool "SWI-Prolog FFI" | |
| depends on BR2_PACKAGE_SWIPL | |
| depends on BR2_PACKAGE_LIBFFI | |
| help | |
| Dynamic calling C from Prolog. | |
| This package deals with calling C functions from shared objects from Prolog without writing wrappers. |
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
| # swipl supports arch for which libc fenv.h provides all four macros: | |
| # FE_DOWNWARD, FE_TONEAREST, FE_TOWARDZERO, FE_UPWARD | |
| # See for example in glibc https://sourceware.org/git/glibc.git | |
| # git grep -E '^[[:space:]]*#[[:space:]]*define[[:space:]]+FE_(TONEAREST|UPWARD|DOWNWARD|TOWARDZERO)' sysdeps/ | |
| config BR2_PACKAGE_SWIPL_ARCH_SUPPORTS | |
| bool | |
| default y if BR2_aarch64 || BR2_aarch64_be | |
| default y if BR2_arceb || BR2_arcle | |
| default y if BR2_arm || BR2_armeb | |
| default y if BR2_i386 |
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
| DISPLAY=${DISPLAY} | |
| WAYLAND_DISPLAY=${WAYLAND_DISPLAY} | |
| XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR} | |
| PULSE_SERVER=${PULSE_SERVER} |
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
| config BR2_PACKAGE_PYTHON_PYMAVLINK | |
| bool "python-pymavlink" |