I hereby claim:
- I am mattbell87 on github.
- I am mattbell87 (https://keybase.io/mattbell87) on keybase.
- I have a public key ASA-J1e_FaU-dfkUv-CmkXW6L1AnDl-JzI541JezR5kLiQo
To claim this, I am signing this object:
#!/bin/bash | |
# Link this file to /usr/local/bin/<command-name> | |
exec=$(basename $0) | |
container="container" | |
user="root" | |
dockerCmdNonInteractive="docker exec -u $user $container" | |
dockerCmd="docker exec -it -u $user $container" | |
display="🫙 $user@$container:$($dockerCmdNonInteractive pwd)\$ $exec $*" |
services: | |
cmfive: | |
image: ghcr.io/2pisoftware/cmfive:develop | |
environment: | |
- TZ=Australia/Sydney | |
- DB_HOST=mysql | |
- DB_DATABASE=cmfive | |
- DB_USERNAME=cmfive | |
- DB_PASSWORD=cmfive | |
- ENVIRONMENT=development |
#!/bin/sh | |
services=$(docker compose config --services) | |
for service in $services; do | |
echo "Service: $service" | |
container=$(docker-compose ps -q $service) | |
if docker inspect $container --format='{{.State.Health.Status}}' >/dev/null 2>&1; then | |
health=$(docker inspect --format='{{json .State.Health.Status}}' $container) | |
if [ "$health" != "\"healthy\"" ]; then | |
echo "CONTAINER IS NOT HEALTHY" | |
echo "==== STATUS ====" |
sudo dnf install atk at-spi2-atk libXcomposite libXdamage libXfixes libXrandr libgbm alsa-lib |
I hereby claim:
To claim this, I am signing this object:
# Run a react native app on docker | |
# | |
# Ensure you have enough space (>32GB) and plenty of CPU power if you're running in Codespaces | |
# | |
# 1. docker-compose up -d (or right click this file in VS code and choose Compose Up) | |
# 2. Once started go to http://localhost:6080 (or right click the dev container and choose Open in Browser in VSCode). You should see the android phone starting up | |
# 3. Log in to your container with `docker exec -it react-native-dev bash` (or right click the dev container and choose Attach Shell in VSCode) | |
# 4. Run `npm run android` to start your app (can take quite a while the first time you do this) | |
services: |
Sometimes Windows wont let you open a port and there is no process using that port. Usually this is due to WinNat, you just need to restart it.
Open an administrator prompt (powershell/cmd) and:
net stop winnat
net start winnat
This example uses Docker to install a specific Python version
Given the file /home/matt/mobilenetv2-7.onnx as an example replace /home/matt and mobilenetv2-7.onnx as needed.
docker run --rm -v /home/matt:/mnt python:3.9-buster bash -c "pip install onnx onnxruntime && python -m onnxruntime.tools.convert_onnx_models_to_ort /mnt/mobilenetv2-7.onnx"
Enable dummy audio on linux. Can be useful for headless servers.
modprobe snd-dummy
snd-dummy
to /etc/modules/* | |
* Copyright 2020 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* https://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |