Skip to content

Instantly share code, notes, and snippets.

View ArturKlauser's full-sized avatar

Artur Klauser ArturKlauser

  • Bay Area, CA, USA
View GitHub Profile
@ArturKlauser
ArturKlauser / onc_converter.py
Last active July 9, 2024 13:43 — forked from trexx/onc_converter.py
The .ovpn to .onc converter
#!/usr/bin/python
# The .ovpn to .onc converter
# This tool parses an 'inline' OpenVPN profile (certs and keys are included within the .ovpn file)
## and spits out a Open Network Configuration file which can be imported in to ChromeOS.
# Open Network Configuration specs can be found here
## https://chromium.googlesource.com/chromium/src/+/master/components/onc/docs/onc_spec.md
# Original credit goes to Steve Woodrow (https://github.com/woodrow)
@ArturKlauser
ArturKlauser / multi-arch-docker-ci.sh
Last active March 5, 2023 02:24
Building Multi-Architecture Docker Images With Buildx
#!/bin/bash
# (c) 2020 [email protected]
# SPDX-License-Identifier: Apache-2.0 OR MIT
#
# This script installs support for building multi-architecture docker images
# with docker buildx on CI/CD pipelines like Github Actions or Travis. It is
# assumed that you start of with a fresh VM every time you run this and have to
# install everything necessary to support 'docker buildx build' from scratch.
#
# Example usage in Travis stage:
@ArturKlauser
ArturKlauser / check-qemu-binfmt.sh
Last active February 13, 2023 16:53
Building Multi-Architecture Docker Images With Buildx
#!/bin/bash
# (c) 2020 [email protected]
# SPDX-License-Identifier: Apache-2.0 OR MIT
#
# This script checks if all software requirements are met in a Linux environment
# in order to use 'docker buildx' to build multi-architecture images.
# For more information see:
# https://nexus.eddiesinentropy.net/2020/01/12/Building-Multi-architecture-Docker-Images-With-Buildx/
function error() {
@ArturKlauser
ArturKlauser / reregister-qemu-binfmt.sh
Last active March 16, 2024 08:05
Building Multi-Architecture Docker Images With Buildx
#!/bin/bash
# (c) 2020 [email protected]
# SPDX-License-Identifier: Apache-2.0 OR MIT
#
# This script tries to reregister QEMU's binfmt_misc handlers with the
# fix-binary (F) flag in order to be usable with 'docker buildx' to build
# multi-architecture images.
# For more information see:
# https://nexus.eddiesinentropy.net/2020/01/12/Building-Multi-architecture-Docker-Images-With-Buildx/