Skip to content

Instantly share code, notes, and snippets.

@drzraf
drzraf / pydio-decrypt.py
Created Apr 20, 2020
Decrypt a file encrypted using Pydio-cells
View pydio-decrypt.py
#!/usr/bin/python3
# Copyright (C) 2020, Raphaël . Droz + floss @ gmail DOT com
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# Decrypt a file encrypted using Pydio-cells, assuming are provided
# - export the encrypted master key as exported by the UI
@drzraf
drzraf / consent-field.patch
Created Jun 21, 2019
gravityforms-html5-validation consent field
View consent-field.patch
View custom-validation-message.diff
diff --git a/gravityforms-html5-validation.php b/gravityforms-html5-validation.php
index 5e2c9e0..116714c 100644
--- a/gravityforms-html5-validation.php
+++ b/gravityforms-html5-validation.php
@@ -599,6 +599,12 @@ public function gform_field_content( $field_content, $field, $force_frontend_lab
break;
}
+ if ( $field->validation_message ) {
+ if ( $element = (( $result = $xpath->query( "//input" )) ? $result->item( 0 ) : null ) ) {
View acf-issue-32.patch
diff --git a/includes/api/api-template.php b/includes/api/api-template.php
index bfd0fd2..259885c 100644
--- a/includes/api/api-template.php
+++ b/includes/api/api-template.php
@@ -162,7 +162,7 @@ function get_field_object( $selector, $post_id = false, $format_value = true, $l
* @param $strict (boolean) if true, return a field only when a field key is found.
* @return $field (array)
*/
-function acf_maybe_get_field( $selector, $post_id = false, $strict = true ) {
+function acf_maybe_get_field( $selector, $post_id = false, $strict = false ) {
View 76-part.diff
diff --git a/src/Provider/Google.php b/src/Provider/Google.php
index 66c9db6..ba5ccf9 100644
--- a/src/Provider/Google.php
+++ b/src/Provider/Google.php
@@ -20,6 +20,9 @@ class Google extends AbstractProvider
/**
* @var string If set, this will be sent to google as the "hd" parameter.
+ * Extra-feature: Also accept a comma-separated list of domains or domain regular expressions.
+ * In that case, Google connection screen is not bound to a specific hosted domain
View gutenberg-fix-8748
diff --git a/wp-includes/js/media-views.js b/wp-includes/js/media-views.js
index 2ffa44b..7edfb19 100644
--- a/wp-includes/js/media-views.js
+++ b/wp-includes/js/media-views.js
@@ -949,7 +949,7 @@ function(module, exports) {
router: 'browse',
toolbar: 'select',
searchable: true,
- filterable: false,
+ filterable: 'uploaded',
View wp-premium-gravityforms-20.patch
diff --git a/forms_model.php b/forms_model.php
index d872428403f9d98d16dc5184c9aa8b4e04a5b1bc..c261bbcf4d141995ca9c7bdeb8a08507f3e366dc 100644
--- a/forms_model.php
+++ b/forms_model.php
@@ -965,21 +965,22 @@ class GFFormsModel {
}
$results = $wpdb->get_results(
- " SELECT display_meta, confirmations, notifications FROM {$form_table_name} f
+ " SELECT id, display_meta, confirmations, notifications FROM {$form_table_name} f
View usb-devices-hexaIfaceNumber.patch
# lsusb -s 1:2
Bus 001 Device 002: ID 0421:0264 Nokia Mobile Phone
# cat /sys/bus/usb/devices/usb1/1-2/1-2:1.10/bInterfaceNumber
0a
# bash -vx usb-devices
[...]
printf 'I: If#=%2i Alt=%2i #EPs=%2i Cls=%s(%s) Sub=%s Prot=%s Driver=%s\n' 0a 0 00 02 commc 0b 00 '(none)'
bash: printf: 0a: invalid number
[...]
--- /usr/bin/usb-devices.save 2014-10-08 19:14:19.062029163 -0300