This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Automate admin user creation with autologin | |
Plugin URI: https://gist.github.com/derpixler/cf24cb3e858ecae4c11b44f5edfb212d | |
Description: Automates the creation of an admin user in WordPress for development environments and do autologin this user. Dirk Diggler is a fictional character from the movie "Boogie Nights," loosely based on the life of real-life porn star John Holmes. Dirk, portrayed as a young man with immense talent in the adult film industry, goes on a journey through the highs and lows of fame. | |
Version: 1.0.0 | |
Author: René Reimann | |
Author URI: https://rene-reimann.de | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//--- Preparation ---- | |
let wrapperNode = document.createElement('div'); | |
let posibleGroupeKeys = ['fooo','barrrr','foo','bar']; | |
for (let i = 0; i < 129; i++) { | |
let childNode = document.createElement('span'); | |
childNode.dataset.collectionGroup = posibleGroupeKeys[Math.floor(Math.random(0,posibleGroupeKeys.length)*posibleGroupeKeys.length)]; | |
wrapperNode.append(childNode); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stop all containers: | |
docker kill $(docker ps -q) | |
remove all containers | |
docker rm $(docker ps -a -q) | |
remove all docker images | |
docker rmi $(docker images -q) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.1" | |
services: | |
nginx-proxy: | |
image: jwilder/nginx-proxy:alpine | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- ./certs:/etc/nginx/certs | |
- /var/run/docker.sock:/tmp/docker.sock:ro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* Wordpress Hook into the plugin action links and filter them! | |
* @author rene reimann | |
* @authorHome http://www.rene-reimann.de | |
* | |
* @hook plugin_action_links Hooks into the plugin action links | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Add Postcount to Adminmenu | |
Plugin URI: https://gist.github.com/derpixler/6d73b30fee3dcaf6d119 | |
Description: This Plugin adds a count bubble on Post menu | |
Version: 1.0 | |
Author: René Reimann | |
Author URI: http://www.rene-reimann.de | |
License: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "@derpixler/jest-prototype-tests", | |
"version": "1.0.0", | |
"description": "", | |
"main": "the-prototype.js", | |
"scripts": { | |
"test": "jest" | |
}, | |
"jest": { | |
"verbose": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var awsmAdditionalStyle = function (additionals = []) { | |
this.listElem = document.querySelector('.awsm-preset-list'); | |
this.additionals = additionals ? additionals : []; | |
if(this.listElem && this.additionals) { | |
this.input = this.listElem.querySelector('input'); | |
this.label = this.listElem.querySelector('label'); | |
var cloneInput = function (additionals) { | |
if (!this.input) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"de": { | |
"longTerm": "germany", | |
"isoAlpha2": "de", | |
"isoAlpha3": "deu" | |
}, | |
"at": { | |
"longTerm": "austria", | |
"isoAlpha2": "at", | |
"isoAlpha3": "aut" |
NewerOlder