Skip to content

Instantly share code, notes, and snippets.

View hxii's full-sized avatar
🛠️
Coming up with more things

Paul (hxii) Glushak hxii

🛠️
Coming up with more things
View GitHub Profile
@hxii
hxii / README.md
Last active April 10, 2024 01:34
My Miniflux CSS

My Custom CSS for Miniflux

This are just a couple of handy, opinionated visual fixes that I personally use in my self-hosted instance of Miniflux.

You're more than welcome to grab a copy and use with your own instance, or modify to suit your needs.

#!/bin/bash
### Description: \*Arr .NET Debian install
### Originally written for Radarr by: DoctorArr - doctorarr@the-rowlands.co.uk on 2021-10-01 v1.0
### Version v1.1 2021-10-02 - Bakerboy448 (Made more generic and conformant)
### Version v1.1.1 2021-10-02 - DoctorArr (Spellcheck and boilerplate update)
### Version v2.0.0 2021-10-09 - Bakerboy448 (Refactored and ensured script is generic. Added more variables.)
### Version v2.0.1 2021-11-23 - brightghost (Fixed datadir step to use correct variables.)
### Version v3.0.0 2022-02-03 - Bakerboy448 (Rewrote script to prompt for user/group and made generic for all \*Arrs)
### Version v3.0.1 2022-02-05 - aeramor (typo fix line 179: 'chown "$app_uid":"$app_uid" -R "$bindir"' -> 'chown "$app_uid":"$app_guid" -R "$bindir"')
### Version v3.0.3 2022-02-06 - Bakerboy448 fixup ownership
@hxii
hxii / functions.php
Created August 26, 2020 12:56
Update WooCommerce variation text on change
<?php
// Add from here
function ele_update_sku() {
?>
<script type="text/javascript">
jQuery( document ).ready( function($) {
/*! block-builder - v1.0.1 - 06-11-2018 */
/* Limit of 100 removed */
!function(t,e){for(var n in e)t[n]=e[n]}(this,function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n
@hxii
hxii / flatpickr.min.js
Created August 10, 2020 11:35
Elementor d-m-Y date format
/* flatpickr v4.1.4,, @license MIT */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.flatpickr=t()}(this,function(){"use strict";function e(e,t,n){return!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}function t(e,t,n){void 0===n&&(n=!1);var a;return function(){var i=this,o=arguments;null!==a&&clearTimeout(a),a=window.setTimeout(function(){a=null,n||e.apply(i,o)},t),n&&!a&&e.apply(i,o)}}function n(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function a(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function i(e,t){return t(e)?e:e.parentNode?i(e.parentNode,t):void 0}function o(e){var t=a("div","numInputWrapper"),n=a("input","numInput "+e),i=a("span","arrowUp"),o=a("span","arrowDown");return n.type="text",n.pattern="\\d*",t.appendChild(n),t.appendChild(i),t.appendChild(o),t}
@hxii
hxii / shortcodes_for_yotpo_bottomline_link.php
Last active April 26, 2020 11:28
Link bottomline shortcode to product page
@hxii
hxii / wc_yotpo.php
Created January 26, 2020 09:08
Yotpo version 1.1.8 variant fix
<?php
/*
Plugin Name: Yotpo Social Reviews for Woocommerce
Description: Yotpo Social Reviews helps Woocommerce store owners generate a ton of reviews for their products. Yotpo is the only solution which makes it easy to share your reviews automatically to your social networks to gain a boost in traffic and an increase in sales.
Author: Yotpo
Version: 1.1.8
Author URI: http://www.yotpo.com?utm_source=yotpo_plugin_woocommerce&utm_medium=plugin_page_link&utm_campaign=woocommerce_plugin_page_link
Plugin URI: http://www.yotpo.com?utm_source=yotpo_plugin_woocommerce&utm_medium=plugin_page_link&utm_campaign=woocommerce_plugin_page_link
*/
register_activation_hook( __FILE__, 'wc_yotpo_activation' );
@hxii
hxii / scroll_to_widget.js
Created January 20, 2020 09:57
Scroll to Yotpo widget when clicking on Star Rating
jQuery(".yotpo-bottomline").click(function() {
jQuery("body,html").animate({scrollTop: jQuery(".yotpo-main-widget").offset().top }, 800);
})
@hxii
hxii / hxii-custom-status.php
Last active July 5, 2018 13:22
Custom Order Status support for Yotpo's WooCommerce Plugin
<?
// Main function
// has to be added to wc-yotpo-settings.php
function wc_yotpo_get_orderstatus($setting) {
// $setting is current order status as saved in the settings
$statuses = wc_get_order_statuses();
if (!array_key_exists($setting,$statuses)) {
wc_yotpo_display_message('Warning - The current Custom Order Status setting ('.$setting.') does <strong>NOT</strong> exist in your WooCommerce instance. <br>It is recommended that you update your settings to avoid missing orders!', true);
} elseif (is_null($setting) || empty($setting)) {
@hxii
hxii / hxii-woo-date.php
Created May 29, 2018 09:18
Yotpo WooCommerce Date Fix
// Use
$data['order_date'] = date('Y-m-d H:i:s', strtotime($order->get_date_created()));
// instead of
$data['order_date'] = $order->get_date_created();