Skip to content

Instantly share code, notes, and snippets.

@mtness
mtness / readable-dates.php
Created February 8, 2023 18:45 — forked from scr4bble/readable-dates.php
Adminer plugin that replaces UNIX timestamps with human-readable dates.
<?php
/** This plugin replaces UNIX timestamps with human-readable dates in your local format.
* Mouse click on the date field reveals timestamp back.
*
* @link https://www.adminer.org/plugins/#use
* @author Anonymous
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/
MASK-Template:
<f:translate key="label" />
Using this label in other templates:
<f:translate key="more" extensionName="mask" />
TYPO3-Setup:
@mtness
mtness / powermail-textarea_multiline-emails.diff
Created November 24, 2020 14:58 — forked from rr-it/powermail-textarea_multiline-emails.diff
TYPO3 Powermail Issue on multi-line text in html mails
diff -ru a/Classes/Domain/Repository/MailRepository.php b/Classes/Domain/Repository/MailRepository.php
--- a/Classes/Domain/Repository/MailRepository.php 2017-08-22 15:27:42.155674340 +0200
+++ b/Classes/Domain/Repository/MailRepository.php 2017-08-22 14:52:23.296258864 +0200
@@ -381,7 +381,7 @@
* @param bool $htmlSpecialChars
* @return array
*/
- public function getVariablesWithMarkersFromMail(Mail $mail, $htmlSpecialChars = false)
+ public function getVariablesWithMarkersFromMail(Mail $mail, $htmlSpecialChars = false, $nl2br = false)
{
@mtness
mtness / docker-prompt.md
Created December 19, 2019 21:06 — forked from scmx/docker-prompt.md
How to get a fancier bash prompt PS1 inside a docker container #docker #ps1 #emoji

How to get a fancier bash prompt PS1 inside a docker container

Today I wanted to make a recording of me running some commands inside a docker-container.

❯ docker-compose run app bash
root@e9bb2af4dc11:/usr/local/go/src/example.com/dev/project#

Needless to say it looked a bit bland with no colors and a long prompt that prevents me from recording a small terminal and show the full commands I'm

@mtness
mtness / Custom.css
Created March 6, 2012 12:39 — forked from curtisblackwell/Custom.css
IR_Black Theme for Chrome Developer Tools
/* ------------------------------------------------------------------------- */ /* about */
/*
/* the mtness theme for Chrome Inspector & viewsource
/* created 2012-03-15
/*
/* features noline-break for viewsource
/*
/* ------------------------------------------------------------------------- */ /* credits */
/*
/* Based on IR_Black Skin by Ben Truyman - 2011