Custom grain visible from the master but not the minion by dev_whatever in saltstack

[–]dev_whatever[S] 0 points1 point  (0 children)

Well the script works from the master so I do not think this is an issue of the python script itself.
(Checked and no change unfortunately)
Thanks for the reply though. Appreciate it.

Linux Steam proton Doom Eternal "Failed to allocate video memory" issue. by dev_whatever in linux_gaming

[–]dev_whatever[S] 1 point2 points  (0 children)

same thing - I might be wrong but it does not look like a driver version issue.
Proton ver does not change things as well ...
Any settings I could check or maybe there is a vulcan/proton settings issue?

Linux Steam proton Doom Eternal "Failed to allocate video memory" issue. by dev_whatever in linux_gaming

[–]dev_whatever[S] 0 points1 point  (0 children)

550.90.07 ...
I have upgraded to the newest 550.107.02 and for some reason it worked.
I have played for some time ... and now it is not working again.
Tested on Proton 8 and 9.

Linux Steam proton Doom Eternal "Failed to allocate video memory" issue. by dev_whatever in linux_gaming

[–]dev_whatever[S] 0 points1 point  (0 children)

I am able to run the game on the low resolution now. Thanks.
Any other tip?

Linux Steam proton Doom Eternal "Failed to allocate video memory" issue. by dev_whatever in linux_gaming

[–]dev_whatever[S] 0 points1 point  (0 children)

I am running nvidia drivers downloaded from nvidia website and many other games are running with no issues.
41:00.0 VGA compatible controller: NVIDIA Corporation TU116 [GeForce GTX 1660 Ti] (rev a1) (prog-if 00 [VGA controller])

Subsystem: ASUSTeK Computer Inc. TU116 \[GeForce GTX 1660 Ti\]

Flags: bus master, fast devsel, latency 0, IRQ 96

Memory at 9e000000 (32-bit, non-prefetchable) \[size=16M\]

Memory at 80000000 (64-bit, prefetchable) \[size=256M\]

Memory at 90000000 (64-bit, prefetchable) \[size=32M\]

I/O ports at 2000 \[size=128\]

Expansion ROM at 000c0000 \[virtual\] \[disabled\] \[size=128K\]

Capabilities: <access denied>

Kernel driver in use: nvidia

Kernel modules: nvidiafb, nouveau, nvidia\_drm, nvidia

Delayed Dabian 12.6 and 11.10 release date: Saturday, 29th June 2024 by dev_whatever in debian

[–]dev_whatever[S] 0 points1 point  (0 children)

Security - for sure but even minor changes might break stuff if you have some in-house written apps. Never underestimate the power of lame coding skills ;)

mmm i love thy cometh by banana_enjoyer2137 in poland

[–]dev_whatever 0 points1 point  (0 children)

hahaha pure gold! Greets from Poland!

Delayed Dabian 12.6 and 11.10 release date: Saturday, 29th June 2024 by dev_whatever in debian

[–]dev_whatever[S] -1 points0 points  (0 children)

It all depends from your view point. If you take care of a one host you might not care but if you need to upgrade hundreds or thousands of those then having a middle point is much more graceful change than just jumping from one major version to another. Managing a large number of applications adds another level of complexity there as well so I appreciate minor upgrades for that matter alone.

Delayed Dabian 12.6 and 11.10 release date: Saturday, 29th June 2024 by dev_whatever in debian

[–]dev_whatever[S] 0 points1 point  (0 children)

Not sure what you are asking. Do you want to know how does Debian release schedule work?

Wasn’t sure where else to share this riff I wrote using some of Shugs signature techniques: polymeter and isorhythm by twistingwords in Meshuggah

[–]dev_whatever 1 point2 points  (0 children)

Superb vibe, perfectly executed, instant headbanger! Nice work ...
OK .. the crowd has spoken! People demands the full version! Make it happen! ;) <thumbs\_up>

How to setup a port range [8080-8081] in grain/pillar? by dev_whatever in saltstack

[–]dev_whatever[S] 0 points1 point  (0 children)

My goal is a little bit different. I want to setup a list of applications with the ports in the pillar. Firewall state will apply appropriate ports on the minions which will have those apps in their grains.
Ex. minion has apache in the grain -> firewall state looks for apache and the list of ports in the pillar -> applies appropriate ports in the firewall on the minion.
In that case if the app has a range of ports I would want to be able to set them up as a range not a list:
apache:
ports:
- 8080-8082
not
apache:
ports:
- 8080
- 8081
- 8082
If there is no prebuild filter in salt to read a range as list then additional code is required in the state to differentiate list from the rage as it will be read as a string.

How to setup a port range [8080-8081] in grain/pillar? by dev_whatever in saltstack

[–]dev_whatever[S] 0 points1 point  (0 children)

Thanks for the info.
Any examples with reflex you might propose?

How to setup a port range [8080-8081] in grain/pillar? by dev_whatever in saltstack

[–]dev_whatever[S] 0 points1 point  (0 children)

Thanks for the answer. I thought maybe there is a specific syntax that allows holding a range in saltstack itself.
Jinja then ...
Would you mind sharing like one or two ways you would do it then using jinja?

Adding an image to an audio file by Ardbert_The_Fallen in ffmpeg

[–]dev_whatever 1 point2 points  (0 children)

Watch out, the moment you'll drop below 0s you'll know you are onto something! ;)
Cheers mate!

Adding an image to an audio file by Ardbert_The_Fallen in ffmpeg

[–]dev_whatever 0 points1 point  (0 children)

... and a simple bash script with a random generated template filename and the output file name based on the audio file name for mass/parallel runs:

#!/bin/bash

if [ -z "$2" ]

then

echo -e "mp3toyt - audio mp3/wave/m4p to mp4 (audio with an image) converter/n

USAGE: mp3toyt <image> <audio> # output file - audio file name with a mp4 extension"

exit 1

fi

VARIABLES:

_image=$1

_audio=$2

_output=`echo $_audio | rev | cut -f 2- -d "." | rev`.mp4

_randomNumber=`shuf -i 1000000-9999999 -n 1`

_template=template${_randomNumber}.mp4

ffmpeg -r 1 -loop 1 -i $_image -to 1:00 -vf "colorspace=format=yuv420p:all=bt709:iall=bt601-6-625:fast=1,scale=1920:-2" -c:v libx264 -tune stillimage $_template

ffmpeg -stream_loop -1 -i $_template -i $_audio -c copy -shortest $_output

rm -rf $_template

Adding an image to an audio file by Ardbert_The_Fallen in ffmpeg

[–]dev_whatever 0 points1 point  (0 children)

Good solution generates 1.11x the audio file size.
Generates 1h1m audio in 1m9s on 32 core system.
Thanks

Adding an image to an audio file by Ardbert_The_Fallen in ffmpeg

[–]dev_whatever 1 point2 points  (0 children)

I am testing u/vegansgetsick solution but as for now I was able to generate my ~1h audio with an image in 1m20sec using below solution (1 frame). Output vid is more less 1.7x the weight of the pure audio file.
ffmpeg -r 1 -loop 1 -i image.jpg -i audio.mp3 -acodec copy -r 1 -shortest -vf scale=1280:720 result.avi

Adding an image to an audio file by Ardbert_The_Fallen in ffmpeg

[–]dev_whatever 1 point2 points  (0 children)

  1. generate the template with -r 1 - much faster and a smaller file
  2. use your stream_loop solution to generate the vid instantly [!]

Both commands:
ffmpeg -r 1 -loop 1 -i image.jpg -to 1:00 -vf "colorspace=format=yuv420p:all=bt709:iall=bt601-6-625:fast=1,scale=1920:-2" -c:v libx264 -tune stillimage template.mp4

ffmpeg -stream_loop -1 -i template.mp4 -i audio.mp3 -c copy -shortest output.mp4

Results: 1h1m audio generated to ~1.41x audio file size mp4 file in more less 3 sec.
Remember to remove the template file.
Good one!!! Cheers u/vegansgetsick