Skip to content

Instantly share code, notes, and snippets.

View daKmoR's full-sized avatar
❤️
Web Components & open-wc

Thomas Allmer daKmoR

❤️
Web Components & open-wc
View GitHub Profile
@egucciar
egucciar / README.md
Last active August 4, 2023 13:22
Shadow Dom Commands

ShadowDom

Quick Start

In the index.js or the root file of your cypress/support folder,

@daKmoR
daKmoR / index.js
Last active March 21, 2019 22:31 — forked from zkat/index.js
npx is cool
#!/usr/bin/env node
const util = require('util');
const exec = util.promisify(require('child_process').exec);
async function systemVersionInfos() {
const { stdout: nodeVersion } = await exec('node --version');
console.log('$ node --version');
console.log(nodeVersion);
@raelgc
raelgc / Email Server (Linux, Unix, Mac).md
Last active June 26, 2024 19:57
Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

1 - Point localhost.com to your machine

Most of programs will not accept an email using just @localhost as domain. So, edit /etc/hosts file to make the domain localhost.com point to your machine, including this content to the file:

127.0.0.1 localhost.com

2 - Install Postfix

@pniederlag
pniederlag / SomeController.php
Created February 11, 2011 16:41
Tx_Pnutility_View_VariantView
<?php
class Tx_Polarmedia_Controller_MediaController extends Tx_Extbase_MVC_Controller_ActionController {
/**
* @var defaultViewObjectName use custom extended Tx_Fluid_View_TemplateView
*/
protected $defaultViewObjectName = 'Tx_Pnutility_View_VariantView';
public function teaserAction() {
$variant = $this->settings['variant']); // or anything else(userState...)