Skip to content

Instantly share code, notes, and snippets.

View TorbenL's full-sized avatar

Torben Leuschner TorbenL

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="woman" language="en-US">Our uptime monitor shows that your website has gone down. Get more information on your dashboard at perrfy.com!</Say>
</Response>
@TorbenL
TorbenL / remove-wordpress-emojis.php
Created April 30, 2020 18:51
Remove Wordpress Emojis
<?php
add_action( 'init', function() {
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_action( 'admin_print_styles', 'print_emoji_styles' );
remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
@TorbenL
TorbenL / functions.php
Last active April 28, 2020 11:56
felix-wp-columns.php
<?php
add_filter ( 'manage_pages_columns', function($columns) {
return array_merge($columns, ['internal_note' => 'Interne Notiz']);
});
add_filter ( 'manage_pages_custom_column', function($column, $post_id) {
if($column === 'internal_note') {
echo get_field('internal_note', $post_id);
return;
}
@TorbenL
TorbenL / gist:36ba70c104ecab312967a2581a5cf110
Created March 8, 2017 05:42
Verifying that "torbenleuschner.id" is my Blockstack ID. https://onename.com/torbenleuschner
Verifying that "torbenleuschner.id" is my Blockstack ID. https://onename.com/torbenleuschner
.afd {
color: brown;
position: absolute;
left: 0;
right: 100%;
.members {
.brain {
width: 0;
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.async = 1; /* Diese Zeile wurde hinzugefügt */
js.src = "//connect.facebook.net/de_DE/sdk.js#xfbml=1&version=v2.30847";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
@include 'inc/header';
@include 'inc/content';
@include 'inc/footer';
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
# ...
</IfModule>
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html "access plus 1 second"
ExpiresByType text/css "access plus 2 weeks"
ExpiresByType text/javascript "access plus 2 weeks"
ExpiresByType image/jpg "access plus 3 weeks"
ExpiresByType image/png "access plus 3 weeks"
# …
</IfModule>
<html>
<head>
<style>/* critical */</style>
<script>/* critical */</script>
</head>
<body>
...
<link rel="stylesheet" href="/css/noncritical.css" type="text/css">
<script src="/js/noncritical.js" async></script>
</body>