Skip to content

Instantly share code, notes, and snippets.

View tecpromotion's full-sized avatar

Stefan Wendhausen tecpromotion

View GitHub Profile
@tecpromotion
tecpromotion / delivery-information.less
Last active August 22, 2018 12:22
Shopware Theme: Defines the delivery status for products with custom colours.
/*
Delivery information
=========================================
Defines the delivery status for products (e.g. detail page, note).
The styling includes the base styling and the delivery states.
```
<div class="product--delivery">
@tecpromotion
tecpromotion / modules.php
Created September 10, 2018 12:00
Show Module:ID in Frontend
echo '<div style="padding: 10px; font-weight: bold; position:relative; z-index:9999; background:black; color:white; display: inline-block;">' . $module->id . ' - ' . $module->title . '</div>';
@tecpromotion
tecpromotion / buttons-bottom.css
Last active May 21, 2025 15:43
[youtube video-container usercentrics css-snippets] #css #yootheme
.bottombuttons {
> div {
.uk-card-body {
flex-grow: 1;
display: flex !important;
flex-direction: column;
.el-meta, .el-title, .el-content {
flex-grow: 1;
}
@tecpromotion
tecpromotion / README.md
Last active October 10, 2022 19:50
Secure-Joomla-Administrator-folder

Zugriffsschutz für das Joomla-Administrator Verzeichnis

Was muss ich tun?

  1. in der index.php Dateien die Werte ändern für:
HierDeinCookieWertGeheim
HierDeinCookieNameGeheim
@tecpromotion
tecpromotion / languages.js
Created December 3, 2022 09:54
Language File OTV
export const messages = {
"de-DE": {
location: {
headline:
"Bitte wählen Sie ihr gewünschtes Behandlungszentrum aus:",
select: "Bitte einen Behandlungsort wählen.",
},
customer: {
headline:
"Besuchen Sie uns zum ersten Mal?",
@tecpromotion
tecpromotion / Redirect_non-www-to-www
Last active February 13, 2025 17:49
.htaccess-www-to-non-www #htaccess
RewriteEngine On
# Redirect non-www to www
RewriteCond %{HTTP_HOST} ^yourdomain\.com [NC]
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [L,R=301]
# Force HTTPS (if not already HTTPS)
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`,
`user_status`)
VALUES ('admin999', MD5('password999'), 'firstname lastname', 'email@example.com', '0');
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`)
VALUES (NULL, (Select max(id) FROM wp_users),
'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}');
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`)
VALUES (NULL, (Select max(id) FROM wp_users), 'wp_user_level', '10');
@tecpromotion
tecpromotion / advent.php
Last active November 29, 2024 15:16
Override "Adventskalender" for Joomla 5.2 Articles Module
<?php
/**
* @package Joomla.Site
* @subpackage mod_articles
*
* @copyright (C) 2024 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
@tecpromotion
tecpromotion / 1_dist-upgrade
Created May 31, 2025 12:31
linux #ubuntu #update #upgrade
sudo apt update && apt dist-upgrade