Skip to content

Instantly share code, notes, and snippets.

View kolaente's full-sized avatar
:shipit:
The problem with git jokes is everyone has their own version.

kolaente

:shipit:
The problem with git jokes is everyone has their own version.
View GitHub Profile
@kolaente
kolaente / magento-2-cheat-sheet.md
Last active April 2, 2023 06:49
Magento2 Cheat-sheet

Update Translations

Files in csv files. See here and here.

Knockout

Some translations are loaded over Knockout (Something like <span data-bind="i18n: 'Billing address'"></span>). These are retrieved from a js-translation.json which is generated based on the csv.

To generate it, run

@kolaente
kolaente / typo3-cheat-sheet.md
Created May 17, 2022 08:54
typo3 Cheat Sheet

typo3 Cheat Sheet

Debugging

In a flux template:

<f:debug>{_all}</f:debug>
@kolaente
kolaente / shopware-6-cheat-sheet.md
Last active December 15, 2021 14:07
Shopware 6 Cheat Sheet
@kolaente
kolaente / download-fonts.php
Created November 29, 2021 13:58
Google Fonts downloader
#!/usr/bin/php
<?php
/**
* Usage:
* 1. Save the file undere "download-fonts.php"
* 2. Call it with a google fonts css url as the first parameter like this: "download-fonts.php https://fonts.googleapis.com/css2?family=Amiri:ital@0;1&display=swap"
* 3. It will save all fonts to a newly created fonts folder and output the parsed css file with corrected paths. You can adjust the $fontsFilePrefix variable to change the prefix of the font file in the generated css.
*/
@kolaente
kolaente / styles.css
Last active April 7, 2021 21:35
kble styles
/*! tailwindcss v2.0.3 | MIT License | https://tailwindcss.com */
/*! modern-normalize v1.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
@-webkit-keyframes spin{to{transform:rotate(360deg)}}@keyframes spin{to{transform:rotate(360deg)}}@-webkit-keyframes ping{75%,to{transform:scale(2);opacity:0}}@keyframes ping{75%,to{transform:scale(2);opacity:0}}@-webkit-keyframes pulse{50%{opacity:.5}}@keyframes pulse{50%{opacity:.5}}@-webkit-keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}@keyframes bounce{0%,to{transform:translateY(-25%);-webkit-animation-timing-function:cubic-bezier(.8,0,1,1);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;-webkit-animation-timing-function:cubic-bezier(0,0,.2,1);animation-timing-function:cubic-bezier(0,0,.2,1)}}*,

Allgemeines

Anrede: Wenig förmlich:

  • "Du"-Form
  • Keine gruseligen "Amtsdeusch"-Umschreibungen, einfach so als ob man den Nutzer direkt persönlich ansprechen würde

Genauer definiert:

  • "falsch" anstatt "nicht korrekt/inkorrekt"
  • Benutzerkonto oder Konto? Oder Account?
  • "Wende dich an ..." anstatt "kontaktiere ..."
@kolaente
kolaente / packages.nix
Created December 21, 2020 20:29
Nixpackages from master and unstable
{ config, pkgs, ... }:
let
master = import (builtins.fetchGit https://github.com/nixos/nixpkgs) {
config = config.nixpkgs.config;
};
in {
nixpkgs.config = {
# Unfree enable
@kolaente
kolaente / log_temp.sh
Created March 19, 2020 11:17
Log cpu temperature every 10s
#!/bin/bash
logfile="sensors.log"
while true; do
date >> $logfile
sensors >> $logfile
echo "--------------" >> $logfile
sleep 10s
done
@kolaente
kolaente / screens.md
Created March 11, 2020 21:25
Multi-Monitor Setup with xrandr

Multi-Monitor Setup with xrandr

Find Available Screens

xrandr

Enable output (mirrored) for one screen

@kolaente
kolaente / magento_orders.sql
Created February 12, 2020 09:54
Magento order stats per day
select ROUND(SUM(base_grand_total), 2) total,
ROUND(AVG(base_grand_total), 2) average,
count(*),
DATE(created_at) dt
from sales_order
where created_at > '2020-01-01 00:00:00'
GROUP BY dt
order by dt;