v4l2-ctl -d /dev/video4 --set-ctrl=focus_absolute=35 --set-ctrl=contrast=132 --set-ctrl=focus_auto=0
v4l2-ctl -d /dev/video4 --set-ctrl=focus_absolute=255
<?php | |
class ConfigController { | |
const MODEL = 'App\Models\Config'; | |
// see RestControllerTrait. sends less data on indexing the list of the model | |
// protected $indexFields = [ 'name' ]; | |
protected $triggers = [ | |
// 'show' => 'extendObject', | |
// 'update' => 'dataFormatFix', |
<!-- TODO: REMOVE --> | |
<properties> | |
<jacoco.line.coveredratio>0.60</jacoco.line.coveredratio> | |
<jacoco.branch.coveredratio>0.60</jacoco.branch.coveredratio> | |
</properties> |
#!/bin/bash | |
if [ $# == 0 ]; then | |
dir='.' | |
elif [ $# == 1 ]; then | |
dir=$1 | |
else | |
echo "Usage: $0 [dir]"; | |
exit 1; | |
fi |
sudo apt install virt-manager
sudo systemctl enable libvirtd
sudo systemctl enable virtlogd
sudo systemctl start libvirtd
sudo systemctl start virtlogd
sudo adduser `id -un` kvm
#!/usr/bin/env bash | |
RETRIES=10 | |
while !</dev/tcp/postgres/5432 & [ $RETRIES -eq 0 ]; do | |
echo "Waiting for postgres server, $((RETRIES--)) remaining attempts..."; | |
sleep 1; | |
done; |
license: mit |