Skip to content

Instantly share code, notes, and snippets.

Avatar
🌲
Huggin'

Henning Orth E-VANCE

🌲
Huggin'
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am e-vance on github.
  • I am evance (https://keybase.io/evance) on keybase.
  • I have a public key ASCjzX3ZQIRthn0pKE-qClQyChsggyvdXpf6KB_lvE0vNgo

To claim this, I am signing this object:

@E-VANCE
E-VANCE / readme.md
Created Jun 2, 2021 — forked from nickcernis/readme.md
Exclude node_modules and .git from Backblaze backups on Mac
View readme.md

Exclude node_modules and .git from Backblaze backups on Mac

  1. Edit the file at /Library/Backblaze.bzpkg/bzdata/bzexcluderules_editable.xml.
  2. Add these rules inside the bzexclusions tag:
<!-- Exclude node_modules. -->
<excludefname_rule plat="mac" osVers="*"  ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
<excludefname_rule plat="mac" osVers="*"  ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/.git/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
@E-VANCE
E-VANCE / nginx.conf
Created Mar 12, 2021 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@E-VANCE
E-VANCE / functions.php
Last active Apr 30, 2020 — forked from hirejordansmith/functions.php
Add support for ACF custom fields to WooCommerce Attributes
View functions.php
<?php
// Adds a custom rule type.
add_filter( 'acf/location/rule_types', function( $choices ){
$choices[ __('Other','acf') ]['wc_prod_attr'] = 'WC Product Attribute';
return $choices;
} );
// Adds custom rule values.
add_filter( 'acf/location/rule_values/wc_prod_attr', function( $choices ){
View animejs-random-covers.markdown
View matomo.yml
# group_vars/{staging & production}/wordpress_sites.yml
[...]
wordpress_sites:
example.com:
site_hosts: [...]
[...]
matomo:
db:
user: matomo
host: localhost
@E-VANCE
E-VANCE / acf-basic.php
Last active Dec 14, 2019
ACF Builder (Basic fields)
View acf-basic.php
<?php
/**
* BASIC -- Header image
*/
$basic_page_header = new FieldsBuilder('basic_page_header');
$basic_page_header
->addImage('page_header_background_image')
->addText('page_header_title', [
'instructions' => 'Leave empty to use the site title / name',
@E-VANCE
E-VANCE / acf-home.php
Last active Aug 1, 2021
ACF Builder (Home fields)
View acf-home.php
<?php
/**
* HOME -- Slider
*/
$home_slider = new FieldsBuilder('home_slider');
$home_slider
->addRepeater('slider', ['min' => 1, 'max' => 5, 'layout' => 'table'])
->addImage('image')
->addText('title', [
@E-VANCE
E-VANCE / functions.php
Created Apr 5, 2018 — forked from infn8/functions.php
Wordpress Bootstrap Image Sizes
View functions.php
function add_theme_features() {
// Add Image Sizes
$containerLG = 1170; // Change this if you have updated the largest bootstrap container width.
for ($i=1; $i <= 12; $i++) {
add_image_size(
'col-lg-'.$i,
ceil($containerLG / 12 * $i),
ceil($containerLG / 12 * $i) * 10,
false
);
@E-VANCE
E-VANCE / acf-field-location-values.md
Last active Apr 5, 2018
ACF field location values
View acf-field-location-values.md

Post

  • post_type
  • post_template
  • post_status
  • post_format
  • post_category
  • post_taxonomy
  • post