See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
{ | |
"scripts": [], | |
"styles": [] | |
} |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Pagina X</title> | |
</head> | |
<body> | |
Nothing to see here. Move along. | |
</body> |
#### Adapted to allow pasting into a bash shell. | |
# 1. Create a rule for the DFU | |
(echo '# DFU (Internal bootloader for STM32 MCUs)'; echo 'ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0664", GROUP="plugdev"') | sudo tee /etc/udev/rules.d/45-stdfu-permissions.rules > /dev/null | |
## - Model ID *may be* 5740, | |
## - which *may be* HappyModel Mobula6 Tiny Whoop Drone or it's F4, All In One, Flight Controller | |
MODEL_ID="5740" | |
# 2. Filter connection info to check MODEL_ID *is* your model, for example by unpluggin and pluging-in the flight controller while udevadm is active |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
#!/bin/bash | |
find . -type f -name *.services.yml | \ | |
xargs sed -E -n 's/.*cache\.(.*):.*/\1/p' | \ | |
grep -v "backend\|html.twig" | \ | |
sort -u | \ | |
awk -vORS=\',\' '{ print $1 }' | \ | |
sed "s/,'$//" | sed "s/^/'/" |