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
<?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', |
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
license: mit |
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
<!-- TODO: REMOVE --> | |
<properties> | |
<jacoco.line.coveredratio>0.60</jacoco.line.coveredratio> | |
<jacoco.branch.coveredratio>0.60</jacoco.branch.coveredratio> | |
</properties> |
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 | |
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
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
#!/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; |
OlderNewer