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
| echo "Update packages" && | |
| sudo apt-get update -y && | |
| echo "Removing old docker versions" && | |
| sudo apt-get remove docker docker-engine docker.io containerd runc -y && | |
| echo "Updating packages" && | |
| sudo apt-get update -y && | |
| echo "Installing packages to allow apt to use a repository over HTTPS" && | |
| sudo apt-get install \ | |
| apt-transport-https \ | |
| ca-certificates \ |
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
| /** | |
| * @param string $key | |
| * @param string|null $default | |
| * @return string|boolean | |
| */ | |
| function env(string $key, string $default = null) | |
| { | |
| $getKey = static function ($key, $default) { | |
| if (notEmpty(array_get($_SERVER, $key))) { |
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 | |
| namespace Felix\Framework\Renderer; | |
| use Felix\Flash\Flasher; | |
| use Tamtamchik\SimpleFlash\Flash; | |
| use Twig\Extension\AbstractExtension; | |
| use Twig\TwigFunction; |
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 | |
| namespace Felix\Framework\Renderer; | |
| use Felix\Flash\Flasher; | |
| use Tamtamchik\SimpleFlash\Flash; | |
| use Twig\Extension\AbstractExtension; | |
| use Twig\TwigFunction; |
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 | |
| require '../vendor/autoload.php'; | |
| $Directory = new RecursiveDirectoryIterator(__DIR__ . '\svg'); | |
| $Iterator = new RecursiveIteratorIterator($Directory); | |
| $svgs = new RegexIterator($Iterator, '/^.+\.svg$/i', RecursiveRegexIterator::GET_MATCH); | |
| echo '<pre>'; | |
| foreach ($svgs as $svg) { | |
| [$name, $extension] = explode('.', basename($svg[0])); | |
| $content = base64_encode(file_get_contents($svg[0])); |
NewerOlder