Skip to content

Instantly share code, notes, and snippets.

View adamotte's full-sized avatar

Anthony Damotte adamotte

View GitHub Profile
@adamotte
adamotte / asus_tinkerboard_fan_control.py
Last active February 24, 2022 05:34 — forked from enwi/fan_control.py
Little pyhton script that will control a fan connected to a tinkerboard according to cpu temperature.
#!/usr/bin/python
import ASUS.GPIO as GPIO
import os
import signal
import time
# Basic configuration
c_FAN = 26 # gpio pin the fan is connected to
c_FAN_TACHO = 19 # gpio pin the fan tachometer is connected to
c_MIN_TEMPERATURE = 45 # temperature in degrees c when fan should turn on
@adamotte
adamotte / docker-ce-dietpi-install.sh
Last active August 28, 2018 09:20
Docker CE install script for ARM
!#/bin/bash/
# Follow : https://docs.docker.com/install/linux/docker-ce/debian/#install-using-the-repository
# Installation for ARM SOC
apt-get remove docker docker-engine docker.io
apt-get update
apt-get install jq apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
@adamotte
adamotte / macos_vm_in_unraid.md
Created December 25, 2022 10:28
MacOS VM in Unraid
  1. Install “MacInABox” under Apps.
  2. Container Starts automatically and installs two scripts.
  3. Script: Run Vmready Notify Script.
  4. Script: Run Macinabox helper.
  5. Start the created VM and access it via VNC.
  6. Select “MacOS” Base System and confirm.
  7. Select the “Disk Utility” in the selection screen.
  8. Format the hard disk.
  9. Close “Disk Utility” and select “Reinstall MacOS – Version.
  10. Set up MacOS normally. (Self-explanatory)