installing virtualmin/webmin from changed repo

8 days ago

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

,

---

vlc Roku and command line example

25 days ago

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

,

---

MariaDB installing specific versions

253 days ago

to install a specific MariaDB version:

curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s — —mariadb-server-version=“mariadb-10.5.22” ;
dnf -y install wget;
wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup ;
chmod +x mariadb_repo_setup ;

./mariadb_repo_setup —mariadb-server-version=“mariadb-10.5.22” ;

/usr/bin/dnf —assumeyes install mariadb-server ;

systemctl start mariadb.service ;
systemctl enable mariadb.service ;

https://mariadb.com/kb/en/mariadb-package-repository-setup-and-usage/

https://www.dbi-services.com/blog/how-to-install-a-specific-version-of-mariadb/

Mark Edwards

,

---

json web tokens (JWT)

292 days ago

export JWT_SECRET_KEY=ABCD ; ## command line!

const jwt = require(“jsonwebtoken”);

const makeToken = (email) => { const expirationDate = new Date(); expirationDate.setHours(new Date().getHours() + 1); return jwt.sign({ email, expirationDate }, process.env.JWT_SECRET_KEY);
};

const myPublicToken=makeToken(‘mark@edwardsmark.com’);

console.log ( jwt.verify( myPublicToken, process.env.JWT_SECRET_KEY) );

Mark Edwards

,

---

smart html elements grid notes

343 days ago

https://www.htmlelements.com/docs/grid-cell-edit/

editor:
{ label: ‘Product’, dataField: ‘productName’, width: 150
, editor: ‘textArea’

, editor: ‘numberInput’
, editor: ‘textArea’
, editor: ‘input’
, editor: ‘autoComplete’
, editor: ‘dropDownList’

label: ‘Date’, dataField: ‘date’, cellsFormat: ‘d’, editor: { template: ‘dateInput’, min: new Date(2022, 5, 1), max: new Date(2022, 10, 1) } editor: ‘timeInput’

Mark Edwards

,

---

« Older

Manage