I hereby claim:
- I am rheinardkorf on github.
- I am rheinard (https://keybase.io/rheinard) on keybase.
- I have a public key ASB9TuTMvilmuznN6BgU_qlDotTEDiz199xdsUWbOVqnnwo
To claim this, I am signing this object:
version: '2' | |
services: | |
nginx: | |
image: nginx:1.10.3-alpine | |
ports: | |
- 80:80 | |
- 443:443 | |
volumes: | |
- ./htdocs:/var/www/html |
################################## | |
# WORDPRESS NGINX CONFIGURATIONS | |
################################## | |
# /etc/nginx/wordpress.conf | |
# | |
# Contains a common configuration for use by nginx on a WordPress | |
# installation. This file should be included in any WordPress site | |
# nginx virtual host config located in sites-available with the following line: | |
# | |
# include /etc/nginx/wordpress.config; |
<?php | |
class DockerManager { | |
/** | |
* This is where the magic happens. | |
* The Docker Engine socket needs to be mounted in docker-compose.yml. | |
* | |
* volumes: | |
* - /var/run/docker.sock:/var/run/docker.sock |
I hereby claim:
To claim this, I am signing this object:
// Remember to wp_enqueue_editor(); inside PHP. | |
// Add editor | |
wp.editor.initialize( | |
'test-editor', | |
{ | |
tinymce: { | |
wpautop:true, | |
plugins : 'charmap colorpicker compat3x directionality fullscreen hr image lists media paste tabfocus textcolor wordpress wpautoresize wpdialogs wpeditimage wpemoji wpgallery wplink wptextpattern wpview', | |
toolbar1: 'formatselect bold italic | bullist numlist | blockquote | alignleft aligncenter alignright | link unlink | wp_more | spellchecker' |
<?php | |
function check_compatibility( $audit_files_directory, $phpcs_report_file, $phpcompat_report_file, $lowest_version = '5.2' ) { | |
// Official PHP versions. | |
// Note: Does not include patch releases as PHPCompatibility doesn't get this granular. | |
$php_versions = array( | |
'5.2', | |
'5.3', |
package example | |
import ( | |
"testing" | |
"net/http/httptest" | |
"net/http" | |
"fmt" | |
"io/ioutil" | |
) |
package main | |
import ( | |
"crypto/hmac" | |
"time" | |
"strconv" | |
"fmt" | |
"net/http" | |
"io/ioutil" | |
"crypto/sha512" |
TITLE=My Title | |
BUNDLE_ID=com.rheinardkorf | |
PROJECT=MyApp | |
EXEC=app | |
VERSION=0.1 | |
define plist | |
<?xml version="1.0" encoding="UTF-8"?> \ | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> |
package snakeymap | |
func SnakeKeyMap(data map[string]interface{}) map[string]interface{} { | |
converted := make(map[string]interface{}) | |
for key, val := range data { | |
goodKey := snakeKey(key) | |
switch v := val.(type) { | |
case map[string]interface{}: |