Skip to content

Instantly share code, notes, and snippets.

View neverything's full-sized avatar

Silvan Hagen neverything

View GitHub Profile
@neverything
neverything / yoast-faq.css
Last active March 23, 2022 16:53 — forked from freddielore/yoast-faq.css
[Yoast SEO FAQ] Add collapsible headers support to Yoast SEO FAQ schema
/* Accordion
------------------------------------------------------------ */
.schema-faq-question{
cursor: pointer;
}
.schema-faq-question:before{
width: 16px;
height: 20px;
display: inline-block;
@neverything
neverything / .htaccess
Created January 22, 2019 15:35 — forked from trongcong/.htaccess
Wordpress login to download uploaded files | Protect uploaded files with login | Edit by trongcong
RewriteCond %{REQUEST_FILENAME} -s
RewriteRule ^wp-content/uploads/(.*)$ dl-file.php?file=$1 [QSA,L]
@neverything
neverything / .htaccess
Created January 8, 2019 08:16 — forked from seoagentur-hamburg/.htaccess
UPDATE 2019: Perfect .htaccess file for highspeed and security. You can use it for every WordPress-Website without problems. Highspeed and Security - testet on hundreds of Websites. If you are using a WordPress Multisite, change the last part of this file.
########################################################################
# 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
########################################################################
@neverything
neverything / artowoo.sh
Created February 12, 2018 21:38 — forked from protorob/artowoo.sh
Bash Sript to Automate the Configuration of the Artomultiplo's Woocommerce Starter Kit
#!/bin/bash -e
# Start allways the same
wpuser='yourusername'
wpuseremail='yourname@yourdomain.tld'
wpuserpass=$(date +%s | sha256sum | base64 | head -c 16)
dpprefix=$(date +%s | sha256sum | base64 | head -c 6)
clear
@neverything
neverything / dashicons.php
Created July 6, 2017 08:53 — forked from scottsweb/dashicons.php
An array of the WordPress dashicons http://melchoyce.github.io/dashicons/.
<?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'),
<?php
/*
* Plugin Name: Post Likes
* Description: WP REST API Post Likes
* Author: Joe Hoyle
* Version: 1.0
* Author URI: http://joehoyle.co.uk
*/
@neverything
neverything / remove-jetpack-css.php
Last active February 17, 2016 16:57 — forked from mwolff44/gist:abfc7848e5cfa35b8c6a
Should be enough to just remove jetpack.css
<?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
@neverything
neverything / template
Last active December 30, 2015 12:09 — forked from gistwebdev/template
<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
@neverything
neverything / vhost
Created December 6, 2013 15:52 — forked from gistwebdev/vhost
#!/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