To combine audio and video in 2 parts into a single video with FFMPEG:
Example Websites:
<!-- view-source:https://www.moneypay.com.tr/download.html --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<script> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) | |
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); |
const axios = require('axios'); | |
const fs = require('fs'); | |
// SVG file to convert | |
const filePath = './svg_external.svg'; | |
// Output file path | |
const outputFilePath = './svg_external_export_base64.svg'; | |
/** |
var o = { | |
y = "xx???x=xx?xx?=" | |
} | |
var abc = String.fromCharCode(65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122); | |
var dechar = function (x) { | |
return String.fromCharCode(x) | |
}; |
To combine audio and video in 2 parts into a single video with FFMPEG:
Example Websites:
/* CONSOLE MESSAGE */ | |
var consoleCopyrightStyle = [ | |
"margin: 16px 0", | |
"border-radius: 10px" | |
].join(";"); | |
var consoleWarningHeaderStyle = [ | |
"color: #ff0000", | |
"font-size: 32px", | |
"font-weight: 600", | |
"margin: 8px 0" |
// Source: https://www.codewars.com/kata/515decfd9dcfc23bb6000006/solutions/javascript | |
const isValidIP = (str) => { | |
const octet = '(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]?|0)'; | |
const regex = new RegExp(`^${octet}\\.${octet}\\.${octet}\\.${octet}$`); | |
return (regex.test(str)) ? true : false | |
} // Source: https://stackoverflow.com/a/54742549/15030183 | |
function isValidIP(str) { | |
return /^(([1-9]?\d|1\d\d|2[0-4]\d|25[0-5])(\.(?!$)|$)){4}$/.test(str); |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.winget upgrade --all |
const fetch = require('node-fetch'); | |
const { readFileSync, writeFileSync } = require('fs'); | |
const filePath = "./radarrTorrents.json" // where to store info about current torrents being downloaded | |
const maxAcceptedDownloadTime = 6000000; // any torrent that takes longer than this time (in milliseconds) to download is abandonded | |
const maxFileSize = 4000000000 // any torrent greater than this size (in bytes) is exempt from the time limit restriction | |
const waitTime = 600000; // how much time (in milliseconds) to give the torrent to find peers and lower it's download time | |
const dateLocale = "en-GB"; | |
const dateOptions = { dateStyle: 'short', timeStyle: 'short' }; |