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
<script type="text/javascript"> | |
/* jQuery code */ | |
(function($) { | |
$(function() { | |
var $ihRedirect = $("#myModal input[id$='groupon_redirect_url']"); | |
$("[data-target='#myModal']").click(function(e) { | |
e.preventDefault(); |
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
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="/js/jquery-2.1.1.min.js"></script>')</script> |
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
git update-index --assume-unchanged desktop/assets | |
git update-index --assume-unchanged desktop/static |
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
// Set remote origin connection | |
git remote add origin ssh://git@git.datenmarkt.de:a.vorobjovs/Pflegegradrechner.git | |
// Get remote URL | |
git config --get remote.origin.url | |
// Clone in current empty directory | |
git clone git@git.datenmarkt.de:a.vorobjovs/Pflegegradrechner.git . | |
// Switch branch |
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
if ( !(window.ActiveXObject) && "ActiveXObject" in window ) { | |
/* IE 11*/ | |
$("html").addClass('MSIE MSIE11'); | |
} |
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
# Redirecting root to subfolder /ccds/ | |
RedirectMatch ^/$ /ccds/ |
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
# Force HTTPS redirection | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
</IfModule> |
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
/** | |
* Disable the emoji's | |
*/ | |
function disable_emojis() { | |
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' ); |
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
User-agent: * | |
Disallow: / |
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
# Automatically clear autoptimizeCache if it goes beyond 256MB | |
if (class_exists('autoptimizeCache')) { | |
$myMaxSize = 256000; # You may change this value to lower like 100000 for 100MB if you have limited server space | |
$statArr=autoptimizeCache::stats(); | |
$cacheSize=round($statArr[1]/1024); | |
if ($cacheSize>$myMaxSize){ | |
autoptimizeCache::clearall(); | |
header("Refresh:0"); # Refresh the page so that autoptimize can create new cache files and it does breaks the page after clearall. | |
} |