- partitions
- use the tool of your choice (fdiks/gdisks/parted)
- filesystems
mkfs -t <fs-type> /dev/<partition>
- mount partitions on /mnt
- setup network
ip address add <IP>/<CIDR> dev eth0
ip route add default via <GW>
- add dns in /etc/resolve.conf
- select pacman mirror
This file contains 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
/* ***** BEGIN LICENSE BLOCK ***** | |
* Version: MPL 1.1 | |
* | |
* The contents of this file are subject to the Mozilla Public License Version | |
* 1.1 (the "License"); you may not use this file except in compliance with | |
* the License. You may obtain a copy of the License at | |
* http://www.mozilla.org/MPL/ | |
* | |
* Software distributed under the License is distributed on an "AS IS" basis, | |
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
This file contains 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
// Updated sinelon (no visual gaps) | |
void sinelon() | |
{ | |
// a colored dot sweeping | |
// back and forth, with | |
// fading trails | |
fadeToBlackBy( leds, NUM_LEDS, 20); | |
int pos = beatsin16(13,0,NUM_LEDS); | |
static int prevpos = 0; |
This file contains 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 <FastLED.h> | |
#define LED_PIN 6 | |
#define LED_TYPE WS2811 | |
#define COLOR_ORDER GRB | |
const uint8_t kSquareWidth = 8; | |
const uint8_t kBorderWidth = 1; | |
#define NUM_LEDS (kSquareWidth*kSquareWidth) |
It's an automation language, engine and orchestration tool developed by Red hat written in Python using YAML format for writing instructional scripts, affectionately known as "Ansible playbook".
It has an automation engine that runs Ansible playbooks. Cloud provider is present in the ecosystem (AWS, Azure, Google, DigitalOcean, OVH, etc…).
Pros
- It is an agent-less tools In most scenarios, it use ssh as a transport layer. In some way you can use it as 'bash on steroids'
- It is very easy to start. If you are familiar with ssh concept - you already know Ansible (ALMOST).
This file contains 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 "FastLED.h" | |
// DiscoStrobeWithPalette | |
// *Flashing* rainbow lights that zoom back and forth to a beat. | |
// See your doctor before using this code if you have certain neurological conditions. | |
// | |
// Same as "DiscoStrobe" (July 2015), except updated to use a | |
// color palette of your choice instead of the HSV color wheel. | |
// Default color palette is a section of Purple, Green, Orange, | |
// and White for Halloween decor. |
See https://github.com/romainl/vim-rnb for an up-to-date version.
These are example files from the tutorial by @boneskull as seen on Get on The Good Foot with MicroPython on the ESP32, Part 2
This file contains 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 "FastLED.h" | |
#define LED_PIN 3 | |
#define LED_TYPE WS2811 | |
#define COLOR_ORDER GRB | |
#define NUM_LEDS 30 | |
CRGB leds[NUM_LEDS]; | |
#define BRIGHTNESS 120 | |
#define DENSITY 80 |
This file contains 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
'''Example of a custom ReST directive in Python docutils''' | |
import docutils.core | |
from docutils.nodes import TextElement, Inline | |
from docutils.parsers.rst import Directive, directives | |
from docutils.writers.html4css1 import Writer, HTMLTranslator | |
class foo(Inline, TextElement): | |
'''This node class is a no-op -- just a fun way to define some parameters. | |
There are lots of base classes to choose from in `docutils.nodes`. |
OlderNewer