I hereby claim:
- I am jasonacox on github.
- I am jasonacox (https://keybase.io/jasonacox) on keybase.
- I have a public key ASA2YKK3bHIo1ZDKge3O4uxU3aNF2DDABEGovM3lFUPfQgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
This gist explains to set up your repo to have Travis CI build your Xcode projects for Mac, iOS and tvOS development. The binaries built from one stage will not persist between stages so you will need to store any build artifacts in S3 and import them between stages.
There are a few things that you will need to do in order to use S3 with a Mac build node:
# Resize Images in Directory | |
# | |
# Provided target frame size (TARGETX, TARGETY) this script will scan current | |
# directory and scale up an image (keeping same ratio) to best fit. I used | |
# this to fix images for a photo frame that would only scale down images but | |
# would not scale up. | |
# | |
# Jason A Cox - github.com/jasonacox | |
# 2021 July 30 | |
# |
List of docker / containerd architectures
Architecture | Description | Notes |
---|---|---|
linux/amd64 | 64-bit x86 architecture | AMD and intel CPUs |
linux/arm64 | 64-bit ARM architecture | ARM CPUs like Apple Silicon |
linux/arm/v7 | 32-bit ARM architecture | Raspberry Pi 3/4 32-bit |
linux/ppc64le | 64-bit PowerPC architecture |
from decimal import Decimal, getcontext | |
def pi_archimedes(n): | |
""" | |
Calculate Pi using Archimedes method with n iterations to estimate Pi. | |
This method approximates Pi by calculating the perimeter of a polygon inscribed | |
within a unit circle. | |
Polygon edge lengths are computed using the Pythagorean theorem and the geometry of the polygons. | |
The number of sides of the polygon is also doubled in each iteration, as each side of the |
This will set up a Raspberry Pi to connect to a Tesla Powerwall Gateway (TEG) and bridge that connection to the ethernet connected LAN.
___________________ __________________________ _______________
[ Powerwall Gateway ] [ Raspberry Pi ] [ Host ]
[ TEG ] WiFi [__________________________] LAN [ Linux/Mac/Win ]
#!/bin/bash | |
# | |
# https://docs.docker.com/build/buildkit/ | |
# https://github.com/docker/buildx/releases/ | |
# https://github.com/docker/buildx | |
VERSION=v0.14.1 | |
mkdir -p $HOME/.docker/cli-plugins |
Use Ubuntu 24.04 server as a Time Machine backup host for MacOS computers.
In the past I set up netatalk on our Linux servers to provide Apple Talk shares on the network. However, I discovered Stefan Johner's post on usig Samba with the vfs_fruit module. The Samba package provides SMB compatible file sharing which means it works with a variety of operating systems and devices, including Windows and MacOS. The vfs_fruit module