This file contains hidden or 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
/* First we need to extend main profile tabs */ | |
add_filter('um_profile_tabs', 'add_custom_profile_tab', 1000 ); | |
function add_custom_profile_tab( $tabs ) { | |
$tabs['mycustomtab'] = array( | |
'name' => 'My custom tab', | |
'icon' => 'um-faicon-comments', | |
); | |
This file contains hidden or 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
/** | |
* Schema.org addtions for better SEO | |
* @param string Type of the element | |
* @return string HTML Attribute | |
*/ | |
function get_schema_markup($type, $echo = false) { | |
if (empty($type)) return false; | |
This file contains hidden or 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
<script> | |
( function( $ ) { | |
$( window ).load(function() { | |
$('.no-content > div ').css("visibility","visible"); | |
$('.content-placeholder').removeClass('content-placeholder'); | |
}); | |
} )( jQuery ); |
This file contains hidden or 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
#cloud-config | |
package_update: true | |
package_upgrade: true | |
groups: | |
- docker: [default] | |
#include https://gist.githubusercontent.com/dbjpanda/042d385443fc62411e152f4e33d06089/raw/docker-install.sh |
This file contains hidden or 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
#!/usr/bin/env bash | |
PROJECT_NAME=${TRAVIS_REPO_SLUG#*/}-${TRAVIS_BRANCH}-$RANDOM | |
ssh -o StrictHostKeyChecking=no "${DEPLOY_USER}"@"${SERVER_IP}" << EOF | |
echo "#################################################################################################################" | |
if [ \$(docker network ls | grep -c traefik-network) == 0 ]; then | |
echo "Creating traefik network" |
This file contains hidden or 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
package main | |
import ( | |
"io/ioutil" | |
"fmt" | |
"strings" | |
"net/http" | |
) | |
var entries = []string{} |
This file contains hidden or 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
// | |
// Please read http://codepodu.com/subdomains-with-golang/ | |
// It's just copy and paste :smile: | |
// | |
// | |
// URLs : | |
// http://admin.localhost:8080/admin/pathone | |
// http://admin.localhost:8080/admin/pathtwo | |
// http://analytics.localhost:8080/analytics/pathone | |
// http://analytics.localhost:8080/analytics/pathtwo |
This file contains hidden or 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
# from https://www.drupal.org/docs/8/system-requirements/drupal-8-php-requirements | |
FROM php:7.2-fpm-alpine | |
# install the PHP extensions we need | |
# postgresql-dev is needed for https://bugs.alpinelinux.org/issues/3642 | |
RUN set -ex \ | |
&& apk add --no-cache --virtual .build-deps \ | |
coreutils \ | |
freetype-dev \ | |
libjpeg-turbo-dev \ |
This file contains hidden or 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
FROM nginx:stable-alpine | |
RUN mkdir -p /var/www/site_name/public_html \ | |
&& addgroup -g 82 -S www-data \ | |
&& adduser -u 82 -D -S -G www-data www-data \ | |
&& chown -R www-data:www-data /var/www/site_name/public_html | |
# && chmod -R 775 /var/www | |
COPY nginx.conf /etc/nginx/nginx.conf | |
COPY default.conf /etc/nginx/conf.d/default.conf |
This file contains hidden or 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
<form action="/user/password" method="post" id="user-pass" accept-charset="UTF-8"><div><div class="form-item form-type-textfield form-item-name"> | |
<label for="edit-name--2"> Enter your username or email address associated with your user account <span class="form-required" title="This field is required.">*</span></label> | |
<input type="text" id="edit-name--2" name="name" value="" size="60" maxlength="254" class="form-text required" /> | |
</div> | |
<input type="hidden" name="form_build_id" value="form-r8sEnKTdbfHfwvUA5rVnE1wo8VDWk0DptEMxu97zXNU" /> | |
<input type="hidden" name="form_id" value="user_pass" /> | |
<div class="edit-token-a123-wrapper"><div class="form-item form-type-textfield form-item-token-a123"> | |
<label for="edit-token-a123--2">token a123 </label> | |
<input type="text" id="edit-token-a123--2" name="token_a123" value="" size="20" maxlength="128" class="form-text" /> | |
<div class="description">To prevent automated spam submissions leave this field empty.</div> |