Skip to content

Instantly share code, notes, and snippets.

@mtness
mtness / adminer.css
Created February 9, 2023 07:22
mt3 design for adminer - removed most of the icons and recreated the t3adminer usability for the standalone adminer
/* mt3 design for adminer by mtness - 2023-02-08 - based on t3adminer by jgal, forked from konya2 */
/* removed most of the icons and recreated the t3adminer usability for the standalone adminer */
/*
* Merged and fixed version of Konya's, Hever's and Frank Bueltge's skins by Oguz KONYA.
* I liked Konya's skin but wanted less icons and the t3adminer usability.
*/
/* Added icons */
@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 / css_mtness-devtools.css
Last active August 1, 2018 19:37
mtness firefox userChrome.css
/**
* mtness style: firefox inspector
*
* based on: https://userstyles.org/styles/140217/firefox-48-devtools-colours-for-49
* written with the left Hand of mtness http://userstyles.org/users/3613
*
* 2018-01-16
*
*/
@mtness
mtness / css_mtness-rdm.css
Last active August 1, 2018 19:38
mtness style: firefox quantum responsive design mode
/*
* mtness RDM adjustments
* written with the left Hand of mtness
* 2018-01-16
*
* hast to be referenced in usewrContent.css
*
*/
@-moz-document url("chrome://devtools/content/responsive.html/index.xhtml")
@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