This file contains 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 | |
$emailData = [ ... ]; | |
/* @var $transportBuilder \Magento\Framework\Mail\Template\TransportBuilder */ | |
/* @var $transport \Magento\Framework\Mail\Transport */ | |
$transport = $transportBuilder->getTransport(); | |
if (isset($emailData['attachments'])) | |
{ |
This file contains 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
My Setup is using mosquitto[1] with homeassistant[2] | |
after some times my homeassistant does not update the mqtt Devices and can not get informations from mqtt. | |
so i've implemented in homeassitant an automatisim which send the current unixtimestamp to the mqtt network in icinga2[3] (check_mqtt.py[4]). | |
i've added this check_mqtt[4] because i did know when this issues triggert. | |
The Result was directly in mosquitto[1], so the password file can not be reloaded - see 2_mosquitto.log (on Reboot everything is fine). | |
so i changed the permission of this file and everythings works as excepted: | |
chmod 640 /etc/mosquitto/passwords |
This file contains 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 | |
if (php_sapi_name() != 'cli') | |
{ | |
die('no!'); | |
exit; | |
} | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); |
This file contains 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 | |
docker run -d --name graphite \ | |
--restart=always \ | |
-p 127.0.0.1:8000:80 \ | |
-p 127.0.0.1:2003-2004:2003-2004 \ | |
-p 127.0.0.1:2023-2024:2023-2024 \ | |
-p 127.0.0.1:8125:8125/udp \ | |
-p 127.0.0.1:8126:8126 \ | |
-v /opt/docker/graphite/conf:/opt/graphite/conf \ |
This file contains 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 | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, "http://data.iana.org/TLD/tlds-alpha-by-domain.txt"); | |
curl_setopt($ch, CURLOPT_HEADER, 0); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
$list = curl_exec($ch); | |
curl_close($ch); | |
$list = str_replace("\r", "", $list); |
This file contains 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
thanks to :) | |
https://github.com/sakaki-/gentoo-on-rpi-64bit | |
https://blog.cloudkernels.net/posts/rpi4-64bit-image/ | |
install first: | |
used system debian buster amd64 (4 cores) | |
~# apt-get install binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu g++-aarch64-linux-gnu bison flex |
This file contains 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
Magento 1.x | |
> https://github.com/kschroeder/Magento_Mysql_SSL ( https://github.com/mklooss/Magento_Mysql_SSL ) | |
Wordpress | |
> https://wordpress.org/plugins/secure-db-connection/ | |
Shopware | |
> TBD |
This file contains 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 | |
$check = 'https://www.example.asdf/'; | |
$login = 'asdf@xyz:P4ssw0rd'; | |
$apiKey = ''; | |
$checkType = parse_url($check, PHP_URL_SCHEME); | |
$checkHost = parse_url($check, PHP_URL_HOST); | |
$checkUrl = parse_url($check, PHP_URL_PATH); |
This file contains 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 | |
sleep 10 | |
PSAUX=$(ps aux | grep nginx | grep -v grep) | |
if [ -z "$PSAUX" ]; then | |
/etc/init.d/nginx stop | |
PID=$(netstat -tulnop | grep 443 | awk '{print $7}' | awk -F "/" '{print $1}' | xargs) | |
for p in $PID; do | |
echo $p |
This file contains 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 return array ( | |
'db' => [ | |
'host' => '127.0.0.1', | |
'port' => '3306', | |
'username' => 'xxxxxxx', | |
'password' => 'xxxxxxx', | |
'dbname' => 'xxxxxxx', | |
], | |
'model' => [ | |
'redisHost' => '127.0.0.1', |