Skip to content

Instantly share code, notes, and snippets.

@Munsio
Munsio / SassMeister-input.scss
Created January 28, 2015 15:10
Generated by SassMeister.com.
// ----
// Sass (v3.4.9)
// Compass (v1.0.1)
// ----
$colors: (black: "#000000", white: "#ffffff", thunderbird: "#bd1616", gallery: "#eeeeee", silver: "#c2c2c2", fuscous-gray: "#535351", forest-green: "#258b32");
@mixin generateColorClasses($class, $property) {
@each $color-key in map-keys($colors) {
$color-value: map-get($colors, $color-key);
@Munsio
Munsio / ce_mmFrontendInput
Last active August 29, 2015 14:15
This is an example of an MM-FrontendInput Template
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?> >
<form action="<?php echo $this->Form->action ?>" method="<?php echo $this->Form->method ?>" enctype="<?php echo $this->Form->enctype ?>" <?php echo $this->Form->novalidate; ?> class="" role="form">
<?php echo $this->Form->widgets['FORM_SUBMIT']->parse(); ?>
<?php echo $this->Form->widgets['REQUEST_TOKEN']->parse(); ?>
<!-- Parse single field -->
<?php echo $this->Form->widgets['COLUMN_NAME']->parse(); ?>
web:
scale: 4 <-- this one indicates to run 4 instances of the web container (over all available hosts)
upgrade_strategy:
start_first: true
health_check:
port: 80
interval: 30000
unhealthy_threshold: 4
response_timeout: 20000
request_line: GET / HTTP/1.0
@Munsio
Munsio / chroot-btrfs.md
Last active January 27, 2021 17:07
Manjaro chroot - grub update

Manjaro + btrfs + luks crypto - Chroot

Boot livedisk!

encrypt luks partition

sudo su # switch to root

cryptsetup luksOpen /dev/nvme0n1p2 crypto # mount luks partition to mapper/crypto
mount /dev/mapper/crypto /mnt/ # mount crypto to /mnt
@Munsio
Munsio / ddcdiff.sh
Created May 28, 2021 22:29
Small helper script to diff the probe output of "ddccontrol - d"
#!/bin/bash
Help() {
# Display Help
echo "DDCDiff is a tool to help finding the manual changes while querieing the monitor."
echo
echo "Syntax: ./ddcdiff.sh [dev]"
echo "options:"
echo "dev: device, e.g. ./ddcdiff.sh dev:/dev/i2c-0"
echo "h : Print this Help."
> sh ollama.sh
error: Cannot delete branch 'ollama' checked out at '/home/martin/Documents/projects/eval-dev-quality'
Already on 'ollama'
Your branch is up to date with 'origin/ollama'.
go install -v github.com/symflower/eval-dev-quality/...
go install -v github.com/vektra/mockery/v2@v2.40.3
go install -v gotest.tools/gotestsum@v1.11.0
eval-dev-quality install-tools
2024/05/08 10:29:01 Install "ollama" to "/home/martin/.eval-dev-quality/bin"
downloading 100% [======================================================================================================================================================================] (306/306 MB, 31 MB/s)