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 / 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 / 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 / shopware-6-cheat-sheet.md
Last active December 15, 2021 14:07
Shopware 6 Cheat Sheet
@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)}}*,
@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;
@kolaente
kolaente / fav.md
Last active January 14, 2020 12:32
36c3-favourites.md
@kolaente
kolaente / image_blue.json
Created November 11, 2019 09:34
Magento product images with same name bug
{"entry":{"media_type":"image","types":[],"disabled":false,"label":null,"content":{"type":"image\/jpeg","name":"product_image_new.jpg","base64EncodedData":"/9j/4AAQSkZJRgABAQEASABIAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/2wBDAAMCAgMCAgMDAwMEAwMEBQgFBQQEBQoHBwYIDAoMDAsKCwsNDhIQDQ4RDgsLEBYQERMUFRUVDA8XGBYUGBIUFRT/2wBDAQMEBAUEBQkFBQkUDQsNFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBT/wgARCABkAGQDAREAAhEBAxEB/8QAFQABAQAAAAAAAAAAAAAAAAAAAAf/xAAWAQEBAQAAAAAAAAAAAAAAAAAABgj/2gAMAwEAAhADEAAAAYnp2TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//xAAUEAEAAAAAAAAAAAAAAAAAAABw/9oACAEBAAEFAin/xAAUEQEAAAAAAAAAAAAAAAAAAABw/9oACAEDAQE/ASn/xAAUEQEAAAAAAAAAAAAAAAAAAABw/9oACAECAQE/ASn/xAAUEAEAAAAAAAAAAAAAAAAAAABw/9oACAEBAAY/Ain/xAAUEAEAAAAAAAAAAAAAAAAAAABw/9oACAEBAAE/ISn/2gAMAwEAAgADAAAAEEkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkl//xAAUEQEAAAAAAAAAAAAAAAAAAABw/9oACAEDAQE/ECn/xAAUEQEAAAAAAAAAAAAAAAAAAABw/9oACAECAQE/ECn/xAAUEAEAAAAAAAAAAAAA