Create a template service file at /etc/systemd/system/secure-tunnel@.service
. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target
<figure> | |
<?php | |
$image = get_field('your_image_field_name'); | |
$atts = array( | |
'imageid' => $image, | |
'size1' => '0', | |
'size2' =>'600', | |
'size3' =>'1000' | |
); | |
echo tevkori_responsive_shortcode($atts) ; ?> |
# Add domains for which you want to force to an IP address here. | |
# This is the magic sauce for making *.#{hostname} | |
# always route to the localhost | |
address=/#{hostname}/127.0.0.1 | |
address=/#{hostname}/::1 | |
mx-host=#{hostname},#{hostname},10 | |
# Extra options that make dnsmasq play nice | |
log-queries |
function get_avatar_from_service(service, userid, size) { | |
// this return the url that redirects to the according user image/avatar/profile picture | |
// implemented services: google profiles, facebook, gravatar, twitter, tumblr, default fallback | |
// for google use get_avatar_from_service('google', profile-name or user-id , size-in-px ) | |
// for facebook use get_avatar_from_service('facebook', vanity url or user-id , size-in-px or size-as-word ) | |
// for gravatar use get_avatar_from_service('gravatar', md5 hash email@adress, size-in-px ) | |
// for twitter use get_avatar_from_service('twitter', username, size-in-px or size-as-word ) | |
// for tumblr use get_avatar_from_service('tumblr', blog-url, size-in-px ) | |
// everything else will go to the fallback | |
// google and gravatar scale the avatar to any site, others will guided to the next best version |