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
/* Accordion | |
------------------------------------------------------------ */ | |
.schema-faq-question{ | |
cursor: pointer; | |
} | |
.schema-faq-question:before{ | |
width: 16px; | |
height: 20px; | |
display: inline-block; |
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
RewriteCond %{REQUEST_FILENAME} -s | |
RewriteRule ^wp-content/uploads/(.*)$ dl-file.php?file=$1 [QSA,L] | |
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
######################################################################## | |
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2019 | |
# ---------------------------------------------------------------------- | |
# @Author: Andreas Hecht | |
# @Author URI: https://andreas-hecht.com | |
# License: GNU General Public License v2 or later | |
# License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
######################################################################## | |
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
#!/bin/bash -e | |
# Start allways the same | |
wpuser='yourusername' | |
wpuseremail='[email protected]' | |
wpuserpass=$(date +%s | sha256sum | base64 | head -c 16) | |
dpprefix=$(date +%s | sha256sum | base64 | head -c 6) | |
clear |
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
<?php | |
$icons = array( | |
'menu-icon-dashicons-menu' => __('Menu', 'iconic'), | |
'menu-icon-dashicons-dashboard' => __('Dashboard', 'iconic'), | |
'menu-icon-dashicons-admin-site' => __('Admin Site', 'iconic'), | |
'menu-icon-dashicons-admin-media' => __('Admin Media', 'iconic'), | |
'menu-icon-dashicons-admin-page' => __('Admin Page', 'iconic'), | |
'menu-icon-dashicons-admin-comments' => __('Admin Comments', 'iconic'), | |
'menu-icon-dashicons-admin-appearance' => __('Admin Appearance', 'iconic'), |
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
<?php | |
/* | |
* Plugin Name: Post Likes | |
* Description: WP REST API Post Likes | |
* Author: Joe Hoyle | |
* Version: 1.0 | |
* Author URI: http://joehoyle.co.uk | |
*/ |
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
<?php | |
/* | |
MU Plugin: remove-jetpack-css | |
Plugin Name: WP Remove jetpack.css | |
Plugin URI: http://required.ch | |
Description: Removes the jetpack.css | |
Version: 1.0 | |
Author: Silvan Hagen | |
Author URI: http://www.silvanhagen.com | |
License: GPLv3 |
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
<VirtualHost *:80> | |
ServerAdmin template.email | |
DocumentRoot template.webroot | |
ServerName template.url | |
ErrorLog "/private/var/log/apache2/template.name-error_log" | |
CustomLog "/private/var/log/apache2/template.name-access_log" common | |
<Directory template.webroot> | |
Options Includes FollowSymLinks ExecCGI | |
AllowOverride All | |
Order allow,deny |
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
#!/bin/bash | |
# | |
# Display usage info | |
vhost-usage() { | |
cat <<"USAGE" | |
Usage: vhost [OPTIONS] <name> | |
-h|--help this screen | |
-pub to create the webhost root in ~/www/name/public/ | |
-url to specify a local address, default is http://name.local |