Skip to content

Instantly share code, notes, and snippets.

View mklooss's full-sized avatar

Mathis Klooß mklooss

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project clone-depth="1" name="fusion3-common/proprietary_vendor_sony" path="vendor/sony" remote="github" />
<project name="fusion3-common/android_device_sony_pollux" path="device/sony/pollux" remote="github" />
<project name="fusion3-common/android_device_sony_pollux-common" path="device/sony/pollux-common" remote="github" />
<project name="fusion3-common/android_device_sony_fusion3-common" path="device/sony/fusion3-common" remote="github" />
<project name="LineageOS/android_device_sony_common" path="device/sony/common" remote="github" />
<project name="fusion3-common/android_kernel_sony_apq8064" path="kernel/sony/apq8064" remote="github" />
<project name="LineageOS/android_hardware_sony_DASH" path="hardware/sony/DASH" remote="github" />
<project name="LineageOS/android_hardware_sony_thermanager" path="hardware/sony/thermanager" remote="github" />
@mklooss
mklooss / remove_Temando_Shipping.sql
Last active February 13, 2023 19:09
Remove Temando_Shipping from Magento2!
DELETE FROM eav_attribute WHERE attribute_code IN('ts_dimensions_length', 'ts_dimensions_width', 'ts_dimensions_height', 'ts_packaging_type', 'ts_packaging_id', 'ts_country_of_origin', 'ts_hs_code');
DROP TABLE temando_order;
DROP TABLE temando_quote_collection_point;
DROP TABLE temando_collection_point_search;
DROP TABLE temando_order_collection_point;
DROP TABLE temando_quote_pickup_location;
DROP TABLE temando_pickup_location_search;
DROP TABLE temando_order_pickup_location;
@mklooss
mklooss / 0_Building_Pagespeed_Static_File_for_NGINX.txt
Last active May 5, 2020 09:12
Build NGINX with Pagespeed Modul
https://github.com/apache/incubator-pagespeed-ngx/wiki/Building-PSOL-From-Source
@mklooss
mklooss / magento2.3-send-mail-with-attachments.php
Created March 26, 2020 10:34
Magento 2.3 Mail Transport add Attachments
<?php
$emailData = [ ... ];
/* @var $transportBuilder \Magento\Framework\Mail\Template\TransportBuilder */
/* @var $transport \Magento\Framework\Mail\Transport */
$transport = $transportBuilder->getTransport();
if (isset($emailData['attachments']))
{
@mklooss
mklooss / 1_Readme.txt
Created February 16, 2020 10:32
Mosquitto issues with permissons
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
@mklooss
mklooss / magento-runRules.php
Last active December 2, 2019 13:25
Magento Apply all Rules
<?php
if (php_sapi_name() != 'cli')
{
die('no!');
exit;
}
error_reporting(E_ALL);
ini_set('display_errors', 1);
@mklooss
mklooss / 1_init-docker-graphite.sh
Created September 17, 2019 08:03
icinga2 - docker graphite simple
#!/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 \
<?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);
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
@mklooss
mklooss / php-tools-with-mysql-ssl-connection.txt
Created February 8, 2019 07:11
PHP - MySQL or MariaDB SSL
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