title: Using hugo with gitlab CI including review apps in gitlab pages author: Kay Strobach layout: post date: 2022-07-29T10:56:01+00:00 categories:
- Nützliches
- WebDev
- Gitlab
- hugo
| <?php | |
| class Version20250403102435 extends AbstractMigration | |
| { | |
| protected ObjectManager $objectManager; | |
| protected PersistenceManager $persistenceManager; | |
| protected EntityManagerInterface $entityManager; | |
| protected Output $output; | |
| alias: "Arbeitszimmer: Rollo" | |
| description: "" | |
| trigger: | |
| - device_id: 98e90028cce28707c8ae4eccd5923d88 | |
| domain: zha | |
| platform: device | |
| type: remote_button_short_press | |
| subtype: button_1 | |
| id: top | |
| - device_id: 98e90028cce28707c8ae4eccd5923d88 |
title: Using hugo with gitlab CI including review apps in gitlab pages author: Kay Strobach layout: post date: 2022-07-29T10:56:01+00:00 categories:
| <?php | |
| // needs picqer/php-barcode-generator | |
| $generator = new \Picqer\Barcode\BarcodeGeneratorPNG(); | |
| $barcode = $generator->getBarcode($data, $generator::TYPE_CODE_128, 3, 100, [0,0,0]); | |
| // ensure the char count is even for CODE_128_C | |
| $barcodeData = (strlen($data) % 2) === 0 ? $data : '0' . $data; | |
| $generator = new \Picqer\Barcode\BarcodeGeneratorPNG(); |
| php_flag log_errors on | |
| php_value error_log "/www/htdocs/w018dcee/logs/phplog-typo3.log" | |
| RewriteEngine On | |
| RewriteRule ^typo3$ - [L] | |
| RewriteRule ^typo3/.*$ - [L] | |
| RewriteRule ^fileadmin$ - [L] | |
| RewriteRule ^fileadmin/.*$ - [L] |
| #raise user rights | |
| cd /opt/gitlab/embedded/service/mattermost/i18n | |
| sudo -u mattermost /opt/gitlab/embedded/bin/mattermost -config="/var/opt/gitlab/mattermost/config.json" -assign_role -team_name="..." -email="..." -role="system_admin" | |
| #delete team | |
| cd /opt/gitlab/embedded/service/mattermost/i18n | |
| sudo -u mattermost /opt/gitlab/embedded/bin/mattermost -config="/var/opt/gitlab/mattermost/config.json" -permanent_delete_team=true -team_name="..." | |
| <?php | |
| namespace Vendor\Extension\ViewHelpers; | |
| use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper; | |
| class GetRecordAsViewHelper extends AbstractViewHelper { | |
| /** | |
| * @param string $table |
I hereby claim:
To claim this, I am signing this object:
| $.fn.selectElement = function() { | |
| var text = $(this).get(0); | |
| var range = null; | |
| if (document.body.createTextRange) { // ms | |
| range = document.body.createTextRange(); | |
| range.moveToElementText(text); | |
| range.select(); | |
| } else if (window.getSelection) { // moz, opera, webkit | |
| var selection = window.getSelection(); |
| <link rel="import" href="../topeka-elements/category-images.html"> | |
| <link rel="import" href="../core-icon/core-icon.html"> | |
| <link rel="import" href="../core-icons/core-icons.html"> | |
| <link rel="import" href="../core-icons/av-icons.html"> | |
| <link rel="import" href="../paper-fab/paper-fab.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> |