pandoc assets/metadata.yml chapters/*.md -o book.epub -S
Using WKHTMLtoPDF (no page numbers)
version: "3.3" | |
#To run use: podman-compose --env-file=default.env | |
#File default.env is: | |
# ROOT_PASSWORD=<password> | |
# GITLAB_SSH=2222 | |
# GITLAB_SSH=<password> | |
# ACME_EMAIL=<username>@gmail.com | |
# EXT_HOSTNAME=<hostname> | |
# SMTP_EMAIL=<username>@gmail.com |
blueprint: | |
name: Update notifications | |
description: Send notifications for new updates and install or skip on action | |
homeassistant: | |
min_version: '2022.4.0' | |
domain: automation | |
input: | |
update_entities: | |
name: Update entities | |
description: >- |
# Check out my blog post about this topic at https://medium.com/@ondrej.janosik42/setting-up-bitbucket-pipelines-with-proper-caching-of-npm-and-cypress-74d033888186 | |
image: node:10.8.0 | |
options: | |
max-time: 30 | |
pipelines: | |
default: | |
- step: | |
name: Install, build and tests | |
caches: | |
- npm |
#!/bin/bash | |
# THIS IS AN OBSOLETE SCRIPT WITH BUGS. FOR UPDATED VERSIONS PLEASE CHECK https://github.com/Ariel-Rodriguez/sh-semversion-2 | |
### | |
# semantic version comparition using semver specification http://semver.org/ | |
# This bash script compares pre-releases alphabetically as well | |
# | |
# returns 1 when A greater than B | |
# returns 0 when A equals B |
FROM mariadb:10.1 | |
# To be changed here | |
ENV MYSQL_UID 27 | |
ENV MYSQL_GID 27 | |
RUN usermod -u $MYSQL_UID mysql; groupmod -g $MYSQL_GID mysql; | |
RUN chown -R mysql:mysql /var/lib/mysql /var/run/mysqld |
Simple guide for setting up OTG modes on the Raspberry Pi Zero - By Andrew Mulholland (gbaman).
The Raspberry Pi Zero (and model A and A+) support USB On The Go, given the processor is connected directly to the USB port, unlike on the B, B+ or Pi 2 B, which goes via a USB hub.
Because of this, if setup to, the Pi can act as a USB slave instead, providing virtual serial (a terminal), virtual ethernet, virtual mass storage device (pendrive) or even other virtual devices like HID, MIDI, or act as a virtual webcam!
It is important to note that, although the model A and A+ can support being a USB slave, they are missing the ID pin (is tied to ground internally) so are unable to dynamically switch between USB master/slave mode. As such, they default to USB master mode. There is no easy way to change this right now.
It is also important to note, that a USB to UART serial adapter is not needed for any of these guides, as may be documented elsewhere across the int
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |