Skip to content

Instantly share code, notes, and snippets.

View ubermanu's full-sized avatar
💾

Manu ubermanu

💾
View GitHub Profile
@ubermanu
ubermanu / README.md
Created August 5, 2024 15:47 — forked from hibobmaster/README.md
Matrix (dendrite + element-web) in Docker with Traefik and federation

project structure

.
├── compose.yaml
├── config
│   └── dendrite.yaml
├── element-web
│   └── config.json
├── nginx
│   └── dendrite.conf
@ubermanu
ubermanu / README.md
Last active August 10, 2024 16:30
Setup Magento 2 MFTF tests in DDEV env
@ubermanu
ubermanu / package.json
Created April 28, 2023 10:17
@sveltejs/kit local developement
{
"pnpm": {
"overrides": {
"@sveltejs/kit": "link:../svelte-kit/packages/kit"
}
}
}
@ubermanu
ubermanu / mailhog-install.sh
Created November 19, 2021 18:50 — forked from kafene/mailhog-install.sh
Install Mailhog
#!/usr/bin/env bash
set -euo pipefail
if [[ -f /usr/local/bin/mailhog ]]; then
echo 'It seems mailhog is already installed.' >&2
echo 'Remove </usr/local/bin/mailhog> to force reinstallation.' >&2
exit 1
fi
if [[ "$EUID" -ne 0 ]]; then
@ubermanu
ubermanu / magento-dev-mode.sh
Last active April 28, 2021 11:56
DDEV: Update magento 2 config for development
#!/bin/bash
## Description: Switch Magento2 to developer mode
# Get url from the first fqdn
BASE_URL=$(cut -d',' -f1 <<<"${DDEV_HOSTNAME}")
# Enable maintenance mode
php bin/magento maintenance:enable
@ubermanu
ubermanu / css-animation-composite.html
Created November 14, 2020 14:43
CSS Animation Composite Polyfill POC
<body>
<div id="container">
<span id="text">test</span>
</div>
<style>
#container {
display: inline-block;
animation: x 2000ms infinite alternate linear,
y 2000ms infinite alternate linear;
@ubermanu
ubermanu / clock.html
Last active November 14, 2020 10:23
Clock made with CSS animations
<!-- Basic clock animation using HTML and CSS -->
<div class="clock">
<div class="seconds"></div>
<div class="minutes"></div>
<div class="hours"></div>
</div>
<style>
.clock {
@ubermanu
ubermanu / README.md
Last active October 21, 2020 07:51
Additional configuration to make Frontools browser-sync work with a magento2 DDEV container
// https://css-scroll-shadows.now.sh/
.lib-scroll-shadow(
@_scroll-shadow-background-color: #fff,
@_scroll-shadow-color: #000,
@_scroll-shadow-size: 10px
) {
background: linear-gradient(@_scroll-shadow-background-color 33%, fade(@_scroll-shadow-background-color, 0%)),
linear-gradient(fade(@_scroll-shadow-background-color, 0%), @_scroll-shadow-background-color 66%) 0 100%,
radial-gradient(farthest-side at 50% 0, fade(@_scroll-shadow-color, 50%), rgba(0, 0, 0, 0)),
@ubermanu
ubermanu / clamp.less
Last active October 6, 2020 23:32
Lineray font-size scaling
// https://css-tricks.com/linearly-scale-font-size-with-css-clamp-based-on-the-viewport/
.lib-clamp(
@minFontSizeRem,
@maxFontSizeRem,
@minWidthPx: 768px,
@maxWidthPx: 1920px,
@pixelsPerRem: 10
) {
@minFontSize: unit(@minFontSizeRem);