References:
Ansible 101
Ansible for DevOps Examples
Book:
Ansible for DevOps by Jeff Geerling
Ressources:
Jeff Geerling's Ansible Content
Blog | Jeff Geerling
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
/* | |
Deprecated, see https://gist.github.com/alwynallan/1c13096c4cd675f38405702e89e0c536 | |
If you have to use software PWM, it's still here. | |
*/ | |
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
CC = gcc | |
RM = rm -f | |
INSTRUMENT_FOR_PROMETHEUS := false | |
ifeq ($(INSTRUMENT_FOR_PROMETHEUS),true) | |
CFLAGS = -Wall -DINSTRUMENT_FOR_PROMETHEUS | |
LIBS = -lbcm2835 -lprom -lpromhttp -lmicrohttpd | |
else | |
CFLAGS = -Wall |
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
#!/bin/bash | |
# Photogrammety automation script. | |
# | |
# Based on https://peterfalkingham.com/2018/04/01/colmap-openmvs-scripts-updated/ | |
# Adapted from https://www.instructables.com/Free-Photogrammetry-on-Mac-OS-From-Photos-to-3D-Mo/ | |
# | |
# See full guide on Jeff Geerling's blog: | |
# TODO | |
# | |
# Usage: |
After factory resetting the maching you will need to do the following things to bootstrap it with Ansible.
- Set default shell to bash
chsh -s /bin/bash
(optional) - Open the App Store and sign in (but do not install anything)
- Install command line tools
xcode-select --install
- Add Python 3.8 to the $PATH
export PATH="$HOME/Library/Python/3.8/bin:$PATH"
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 <stddef.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
//#include <stdlib.h> | |
void* memcpy(void* dst, const void* src, size_t n){ | |
volatile char* vc_src = (char*)src; | |
volatile char* vc_dst = (char*)dst; | |
// copy byte by byte, hopefully avoiding any alignment issues | |
size_t pos = 0; |
OlderNewer