mariadb installation on Rocky Linux

Sep 3, 05:07 PM

Mariadb 10.5 on Rocky Linux 2024-09-03

Mariadb installation the correct way
sudo dnf  install wget  ; 
#
wget https://r.mariadb.com/downloads/mariadb_repo_setup   ;
#
echo "6083ef1974d11f49d42ae668fb9d513f7dc2c6276ffa47caed488c4b47268593 mariadb_repo_setup" 
    | sha256sum -c -   ;
#
chmod +x    ./mariadb_repo_setup   ;
#
sudo ./mariadb_repo_setup 
   --mariadb-server-version="mariadb-10.5"    ;
#
## Install MariaDB Community Server and package dependencies:
sudo dnf  --assumeyes install mariadb-server ;
======================================= OLD WAY: (does not seem to install the correct version!)
cat  <<<END  >  /etc/yum.repos.d/mariadb.repo   ;
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.5/centos8-amd64
module_hotfixes=1
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
END
#
dnf     --assumeyes install mariadb-server   ;
=========================
systemctl start mariadb.service;
systemctl enable mariadb.service;
##You can now verify the status of the MariaDB service using the following command:
systemctl  status mariadb.service ;
Mark Edwards

,

---

Passing custom fields from WooCommerce to Stripe Payments

Aug 16, 05:06 AM

First, your domain must pass the certification test!

certification tester

One: name the custom field

Notice leading underscore to designate a meta field: _billing_clients_email



Two: Create a code snippet


Click here for instructions to add snippet plugin first


// added by mark edwards 2024-05-22
// 
// 
// https://www.wpservices.com/how-to-get-your-custom-checkout-field-value-in-woocommerce/

add_filter(‘wc_stripe_payment_intent_args’, function($args, $order) { $orderNbr = WC()->session->get(‘order_awaiting_payment’); $order = new WC_Order($orderNbr);

$args[‘metadata’][‘orderNbr’] = $orderNbr ; $args[‘metadata’][‘clients_email’] = $order->get_meta(‘_billing_clients_email’) ; $args[‘metadata’][‘first_name’] = $order->get_billing_first_name() ; // 2024-08-17 $args[‘metadata’][‘last_name’] = $order->get_billing_last_name() ; // 2024-08-17

return $args; }, 10, 2);
DONT FORGET TO RESTART PHP-FPM IF THAT IS HOW PHP IS RUNNING! ! !


Three: Name an endpoint



Last, create an endpoint on server:

Name this identically to the Stripe Endpoint name. Most of this code is provided for you when the endpoint is created!
require ‘vendor/autoload.php’;

// The library needs to be configured with your account’s secret key.
// Ensure the key is kept out of any version control system you might be using.
$stripe = new StripeStripeClient(‘sk_test_XXXXXXXXXXXXXXXXX’);

// This is your Stripe CLI webhook secret for testing your endpoint locally.
$endpoint_secret = ‘whsec_XXXXXXXXXXXXXXXXXXXXXXXXXXXXX’;

$payload = @file_get_contents(‘php://input’);
$sig_header = $_SERVER[‘HTTP_STRIPE_SIGNATURE’];
$event = null;

try { error_log(‘’); error_log(‘Endpoint Test’); error_log(FILE);

$event = StripeWebhook::constructEvent( $payload, $sig_header, $endpoint_secret ); error_log(‘results:’); // too much stuff here! error_log(print_r($event->data , true)); error_log(print_r($event->data[‘object’][‘billing_details’][‘email’] , true)); error_log(print_r($event->data[‘object’][‘billing_details’][‘name’] , true)); error_log(print_r($event->data->object->metadata->clients_email , true));

} catch(UnexpectedValueException $e) { // Invalid payload http_response_code(400); exit();
} catch(StripeExceptionSignatureVerificationException $e) { // Invalid signature http_response_code(400); exit();
}

// Handle the event
echo ‘Received unknown event type ‘ . $event->type;

http_response_code(200);
Mark Edwards

,

---

Jellyfin Installation

Aug 12, 03:06 AM

1) temporarily DISABLE avast

2) DO NOT change the location of where jellyfin wants to install default locations!

3) when webpage opens up after installation, create a “location” for media stuff by clicking the “+” (plus) symbol.

Mark Edwards

,

---

installing virtualmin/webmin from changed repo

Jul 19, 06:17 AM

https://forum.virtualmin.com/t/update-failed-webmin-7-10-0-to-7-20-1/127969/6

virtualmin setup-repos ; dnf clean packages ; dnf —assumeyes update;

Mark Edwards

,

---

handbrake Roku

Jul 2, 02:56 AM

handbrake-roku-480p30—framerate-23-point-976 — 2024-07-12

May be EASIER to install Jellyfin on roku & PC than trying to convert

vlc to convert vid to Roku media


select Video - H264 + mp3 (mp4) option, save as (dot)mp4 file (thought it was h265 option...)

ctrl-J views: h-264 option

VLC command line example:

“c:Program Files (x86)VideoLANVLCvlc.exe” “c:UsersmarkDesktopogv-conversionmediaFilesamericanogvphoneticVideo6-vowel.ogv” -I dummy

—sout=

#transcode{vcodec=VP80,vb=2000,acodec=vorb,ab=128,channels=2,samplerate=44100,scodec=none}:

std{access=file{no-overwrite}

,mux=webm

,dst=‘C:/Users/mark/Desktop/ogv-conversion/mediaFiles/american/webm/phoneticVideo/6-vowel.webm’}

vlc://quit

Mark Edwards

,

---

« Older Newer »

Manage