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 / input.txt
Created August 10, 2025 13:50
Job Application Rejection Adjustment via LLM
Template:
Dear {applicant name},
Thank you for your interest in {company name} and {position} position.
We have reviewed your application and regret to inform you that your profile is not a close enough match for the position’s requirements, therefore we will not be moving forward with your application on this occasion.
We would like to keep in touch with you to inform you about future job vacancies, and reach out when a position opens up that may be a good fit.
We appreciate your interest in {company name} and wish you all the best in your future career.
@hxii
hxii / README.md
Last active May 4, 2025 00:32
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 - [email protected] 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)) {