Tag Archives: tech tips
MP3 to Video for Odysee

This DOS batch script takes all MP3’s found on a folder and converts them to MP4 using a single image. FFMPEG and picture need to be in the same folder

 

For NVidia GPU

@echo off
setlocal enabledelayedexpansion
rem Set the image file name
set image=select.jpg
rem Loop over all mp3 files in the directory
for %%f in (*.mp3) do (
    rem Get the base file name without the extension
    set “filename=%%~nf”
    rem Run the ffmpeg command with the current mp3 file
    ffmpeg -loop 1 -i “!image!” -i “%%f” -c:v h264_nvenc -preset fast -pix_fmt yuv420p -maxrate 5000K -bufsize 5000K -vf “scale=if(gte(iw\,ih)\,min(1920\,iw)\,-2):if(lt(iw\,ih)\,min(1920\,ih)\,-2)” -movflags +faststart -c:a aac -b:a 160k -shortest “!filename!.mp4”
)
endlocal
For CPU

@echo off
setlocal enabledelayedexpansion

rem Set the image file name
set “image=select.jpg”

rem Loop over all mp3 files in the directory
for %%f in (*.mp3) do (
rem Get the base file name without the extension
set “filename=%%~nf”

rem Run the ffmpeg command with the current mp3 file
ffmpeg -loop 1 -i “!image!” -i “%%f” -c:v libx264 -crf 21 -preset faster -pix_fmt yuv420p -maxrate 5000K -bufsize 5000K -vf “scale=if(gte(iw\,ih)\,min(1920\,iw)\,-2):if(lt(iw\,ih)\,min(1920\,ih)\,-2)” -movflags +faststart -c:a aac -b:a 160k -shortest “!filename!.mp4”
)

endlocal

Hemmersbach automated at work php script via cron

Hemmersbach engineers need to log into a portal to state their “at work”.

Save this script and run it as a cron job to perform the task automatically .

<?php

$link = “[place your https://mystatus.hemmersbach.com/index.php?token=XXX here with the quotes]”;

$queryString = parse_url($link, PHP_URL_QUERY);

// Parse the query string to get individual parameters
parse_str($queryString, $params);

if (!isset($params[‘token’])) {
header(“Location: error.php”);
exit();
} else {
$token = $params[‘token’];

$form_data = array(
‘token’ => $token,
‘action’ => ‘Login’,
‘attendanceCheck’ => ‘0’
);

// Initialize cURL session
$curl = curl_init();

// Set cURL options
curl_setopt_array($curl, array(
CURLOPT_URL => $link,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query($form_data)
));

// Execute cURL request
$response = curl_exec($curl);

// Check for errors
if (curl_errno($curl)) {
echo ‘Error: ‘ . curl_error($curl);
} else {
//Done
exit();

}
// Close cURL session
curl_close($curl);
}

?>

 

 

Posted on May 27, 2024, 5:23 pm By
Categories: tech tips Tags: ,
Death to _blank

Death to _blank

https://chromewebstore.google.com/detail/death-to-blank/gneobebnilffgkejpfhlgkmpkipgbcno

Websites are becoming annoying  with fresh tabs being open for every item your shopping for is clicked on.

Death to _blank opens links on the same tab.

 

Posted on January 27, 2024, 1:27 pm By
Categories: tech tips Tags:
Export quickaccess

Quick access data is save in path\file

%AppData%\Microsoft\Windows\Recent\AutomaticDestinations\f01b4d95cf55d32a.automaticDestinations-ms

 

Export windows share files

Batch file to:
extract mapped windows shares
exclude saving H:\
produce an import.bat  file to be used to remap them
only paths with spaces need to be wrapped around quotes “” manually.

 

@echo off
setlocal enabledelayedexpansion

del import_shares.bat /q

REM Run net use command and filter lines containing “\”

 

for /f “tokens=2*” %%A in (‘net use ^| find “\”‘) do (

:: remove h:\
if /i “%%A” neq “H:” (

REM Remove “Microsoft Windows Network” text
set “sharePath=%%B”
set “sharePath=!sharePath:Microsoft Windows Network=!”

REM Trim leading and trailing spaces
for /f “tokens=* delims= ” %%C in (“!sharePath!”) do set “sharePath=%%C”

REM Display the result
echo net use %%A !sharePath!
echo net use %%A !sharePath! /persistent:yes >> import_shares.bat
)

)

endlocal

TIMEOUT /T 10

Download any Windows ISO

Visit uppdump.net

Posted on October 26, 2023, 11:23 pm By
Categories: tech tips Tags:
Free Microsoft Word Excel Powerpoint

Press CTRL ALT SHIFT WINDOWS signed up for free web  office 365.

Posted on October 19, 2023, 7:17 am By
Categories: tech tips Tags:
Bandcamp

Extracting audio from them I found this type of url on footer code

Yet to decipher more…

https://t4.bcbits.com/stream/a1bf3ff8f57f8c6122842fe526ce9aec/mp3-128/1208179075?p=0&ts=1678122596&t=ab79193bfc95614eade484ba948e2d015fc04607&token=1678122596_01143f52c2374c2391457740cc512503723dce54

https://bandcamp.com/stream_redirect?enc=mp3-128&track_id=286068639&ts=1678036257&t=73dbf6a875a58358cb1ecf61ddbca7eaad3b9dc0

 

converts itself to

 

https://t4.bcbits.com/stream/896453365a3d7c4268e35e1bd5478bae/mp3-128/286068639?p=0&ts=1678123639&t=9af110e6c96d9cfc115fd92be9e33d0f8e718b64&token=1678123639_6cac1e0e851f3f78bf79b3b0f880fa0542f01bae

Posted on March 5, 2023, 5:23 pm By
Categories: tech tips Tags:
Barrier – Sharemouse equivalent

https://github.com/debauchee/barrier/wiki

Posted on November 24, 2021, 10:03 pm By
Categories: tech tips Tags:
Yealink – Adjusting the sending volume (outgoing volume) on the T2, T4 and T5 Series Phones

Log into the web interface of the phone, in the audio tab, in the section highlighted change the values, 0 is default, -50 to 50 is the range.

Next Page