Skip to content

Instantly share code, notes, and snippets.

Heiko Mamerow HeikoMamerow

Block or report user

Report or block HeikoMamerow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
HeikoMamerow / create-a-self-signed-wildcard-ssl-cert
Last active Jan 3, 2018
create a self signed wildcard ssl cert
View create-a-self-signed-wildcard-ssl-cert
# Source:
# Single domain
sudo openssl req -subj "/commonName=zwei.test/" -x509 -nodes -days 730 -newkey rsa:2048 -keyout zwei.test.key -out zwei.test.crt
# Wildcard domain
sudo openssl req -subj "/commonName=*.hei.test/" -x509 -nodes -days 730 -newkey rsa:2048 -keyout hei.test.key -out hei.test.crt
View postcss.config.js
module.exports = {
map: { inline: false },
plugins: [
cascade: false,
sourcemap: true
View browser-sync
#!/usr/bin/env node
var bs = require('browser-sync').create();
proxy: {
target: 'https://localhost'
files: [
HeikoMamerow / package.json
Last active Jul 31, 2017
For package.json
View package.json
"dependencies": {
"chokidar": "^1.7.0",
"chokidar-cli": "^1.2.0",
"cssnano": "^3.10.0",
"perfectionist": "^2.4.0",
"postcss-advanced-variables": "^1.2.2",
"postcss-cli": "^4.1.0",
"postcss-cssnext": "^3.0.0",
"postcss-mixins": "^6.0.1",
"postcss-nested": "^2.0.2",
HeikoMamerow / docker-compose.yml
Created Jul 31, 2017
My docker-compose.yml for WP-Docker
View docker-compose.yml
version: '3'
image: mysql:latest
- ./data/db:/var/lib/mysql
restart: always
- 3306:3306
HeikoMamerow / hhvminfo.php
Created Feb 20, 2017 — forked from ck-on/hhvminfo.php
HHVMinfo - phpinfo for HHVM HipHop Virtual Machine
View hhvminfo.php
HHVMinfo - phpinfo page for HHVM HipHop Virtual Machine
Author: _ck_
License: WTFPL, free for any kind of use or modification, I am not responsible for anything, please share your improvements
Version: 0.0.6
* revision history
0.0.6 2014-08-02 display fix for empty vs zero
0.0.5 2014-07-31 try to determine config file from process command line (may not always work), style improvements
HeikoMamerow / postcss-conf.json
Last active Apr 24, 2017
Example of a typical PostCSS config file (cli flavor). I use this for WordPress theme development.
View postcss-conf.json
"use": [
HeikoMamerow / Nginx-make.txt
Last active Feb 25, 2020
Build nginx with Google PageSpeed, Brotli and other modules
View Nginx-make.txt
How to build your custom Nginx
Works fine for me with Ubuntu 16.04.
Automated Install with pagespeed module (Google)
If you interested, read the original
HeikoMamerow / PhantomCSS-default-test
Last active Sep 29, 2016
Template for CSS regression test with Phantomcss over multiple sites
View PhantomCSS-default-test
// This is my default template for a test with PhantomCSS
Require and initialise PhantomCSS module
Paths are relative to CasperJs directory
var fs = require( 'fs' );
var path = fs.absolute( fs.workingDirectory + '/phantomcss.js' );
var phantomcss = require( path );
HeikoMamerow / first-character.js
Created Oct 31, 2014
Mark first character of each word
View first-character.js
function first_character() {
var str = document.getElementsByClassName("text")
for (var i = 0; i < str.length; i++) {
str[i].innerHTML = str[i].innerHTML.replace(/\b[a-z0-9]/gi, "<span class='first-char'>$&</span>")
You can’t perform that action at this time.