∟⊔⊤∦∣≶
  • 4 Posts
  • 62 Comments
Joined 1Y ago
cake
Cake day: Jun 29, 2023

help-circle
rss


“My food is included in rent. Which is convenient for day-to-day eating but gives me less capacity for cooking my own meals. Like, I admit it, the system works really well for normal people, I’m just a weirdo who likes tinkering with recipes, hosting dinner parties, and whatnot”

There, I highlighted the absurdity even more for you. You’re not a wierdo, you’re a tech-chef.


Unfortunately, this sequence is repeated many many times, so I would need to do a for-each and construct a new table for each inner section…

There’s gotta be a better way. Time to read the source code and hijack whatever item() is doing.


This isn’t even an encryption key. It’s a unique name generated for the image. My guess is it uses the word ‘key’ because the ‘value’ is the image file.

This is also my preprod environment.


Item is a function?

Well actually, yeah thats kinda obvious isn’t it now I look at the whole thing.

Thats fine, I’ll just use a bit of the old sed and json it.

Aha I have avoided learning Lua yet again!


Ohhhhh…

Ok so I just have to write a bit of Lua to utilise the file and give me the info I want.

Thanks!


The semi-colons threw me off… why is it not commas? Could be custom. Hope it isn’t…


It’s .list

I believe the program that generated this file is written in Lua


Not to worry; there’s definitely no sensitive information in here and it’s from a preprod environment.

(If you’re able to figure out a way to use that key field, you’re either going to get shot by the FBI or hired by the CIA.)

It is a file created that records information about files in another folder. I just want to extract some values from it. I would have expected this to be in like, xml or json. I believe the program that generated this file is written in Lua, but I don’t know Lua.


Can anyone tell me what format this uh… nested dictionary is?
cross-posted from: https://lemmy.nz/post/4294116 > I have a file with content like this: > > ``` > item({ > ["attr"] = { > ["size"] = "62091"; > ["filename"] = "qBuUP9-OTfuzibt6PQX4-g.jpg"; > ["stamp"] = "2023-12-05T19:31:37Z"; > ["xmlns"] = "urn:xmpp:http:upload:0"; > ["content-type"] = "image/jpeg"; > }; > ["key"] = "Wa4AJWFldqRZjBozponbSLRZ"; > ["with"] = "email@address"; > ["when"] = 1701804697; > ["name"] = "request"; > }); > ``` > > I need to know what format this is, and if there exists a tool in linux already to parse this or if I need to write one myself? > > Thanks!
fedilink

So does that mean albums ripped and uploaded to Youtube do result in royalties being paid to the artists?

What about in the case where there are no ads?



I was under the assumption that Youtube had to pay artists for their music being on there? Is that not what is happening?

And if not, how has Youtube not been cease and desisted/sued into absolute oblivion?





Dude, you’re asking is there a right time for suicide. You need to reach out and get help. Seriously. Do whatever it takes.



Entonces, sabes cuando tu mente lee dos lineas al mismo tiempo? No tienes esto cuando lees?


You ever read two lines of text at once? Like, your brain just jumps between words too fast? I had to do a double take after reading this headline as:

Cheap, good, black skinned, and reliable Jew.


I wrote a bash script for this, but I’m not sure of the correct settings so I haven’t used it to re-encode my whole library yet.

Here’s my script in case anyone has any tips:

spoiler

#!/bin/sh

shopt -s globstar

for FILE in */

{

if [[ -d $FILE ]]; then

	continue

fi

match="*-re.mp4"
if [[ $FILE == $match ]]; then
	echo already encoded, skipping $FILE
	continue
fi
match="*-ex.mp4"
if [[ $FILE == $match ]]; then
	echo already excluded, skipping $FILE
	continue
fi

if [[ $(du "${FILE}" | awk '{print $1}') -lt 10000 ]]; then		
	#echo $(date),$(pwd)/,$FILE,toosmall >> errors.csv
	echo $(date),$(pwd)/,$FILE, 0,0,0,0, original too small >> encoding.csv
	continue
fi
if [[ $(mediainfo "${FILE}" | grep -c -e'Audio #') -gt 1 ]]; then
	#echo $(date),$(pwd)/,$FILE,skip-audio >> errors.csv
	echo $(date),$(pwd)/,$FILE, 0,0,0,0, multiple audio tracks >> encoding.csv
	continue
fi
if [[ $(mediainfo "${FILE}" | grep -c -e'Text #') -gt 1 ]]; then
	#echo $(date),$(pwd)/,$FILE,skip-subs >> errors.csv
	echo $(date),$(pwd)/,$FILE, 0,0,0,0, contains subtitles >> encoding.csv
	continue
fi


FULLM=${FILE%.*}
REN="$FULLM-re.mp4"
echo writing $REN

#ffmpeg -y -i "${FILE}" -vcodec libx264 -crf 23 "${REN}" 
#ffmpeg -y -i "${FILE}" -vcodec h264_nvenc -crf 23 "${REN}" 
ffmpeg -y -i "${FILE}" -vcodec libx265 -crf 23 "${REN}" 

ORIGSIZE=$(du "${FILE}" | awk '{print $1}')
NEWSIZE=$(du "${REN}" | awk '{print $1}')
ORIGBITRATE=$(mediainfo "${FILE}" | grep Overall | sed 's/[^0-9]*//g')
NEWBITRATE=$(mediainfo "${REN}" | grep Overall | sed 's/[^0-9]*//g')

echo $FILE vs $REN
echo $ORIGBITRATE vs $NEWBITRATE

#if [[ $NEWBITRATE -gt $ORIGBITRATE ]]; then
	#echo new bitrate is too big, renaming $FILE to $FULLM-ex.mp4
	#echo $(date),$(pwd)/,$FILE, $ORIGBITRATE, $NEWBITRATE, $ORIGSIZE, $NEWSIZE, bitrate increased >> encoding.csv
	#mv "${FILE}" "${FULLM}"-ex.mp4
	#rm -f "${REN}"
	#continue
#fi

if [[ $ORIGSIZE -lt $NEWSIZE ]]; then
	#echo $(date),$(pwd)/,$FILE,sizeToSmall: $ORIGSIZE vs $NEWSIZE >> errors.csv
	echo $(date),$(pwd)/,$FILE, $ORIGBITRATE, $NEWBITRATE, $ORIGSIZE, $NEWSIZE, filesize increased >> encoding.csv
	echo deleting "${REN}"
	rm -f "${REN}"
	mv "${FILE}" "${FULLM}"-ex.mp4
else
	echo $(date),$(pwd)/,$FILE, $ORIGBITRATE, $NEWBITRATE, $ORIGSIZE, $NEWSIZE, ENCODED >> encoding.csv
	rm -f "${FILE}"
fi

}


Unreasonable? Depends on what you consider reasonable. Yes absolutely they would try to exploit the users, in which case we go back to piracy. Perhaps a better solution would be federated content providers with some sort of combined (reasonable) fee determined by the providers collectively. We get one system to subscribe to, and pay one fee.


My utopia would just be a single reasonable paid service that provided everything. I pirate because its simply more convenient than 20 subscriptions.




Is there a way to seed things I have downloaded but already deleted the torrent for?
Just to clarify, I'm talking about thousands of torrents across hundreds of different directories.
fedilink


Already read this? https://github.com/nextcloud/server/issues/39162

Seems like there is active work on improving search with nextcloud.

I’ve never heard of it before this.

I use Mega. It has a search function. No idea how fast it would be in your use case though.

Not open source though.



Yeah, I’m fucking paying these guys. I played Postal 2 heaps (it wasn’t available in my country).



Some family friends brought back cam rips from Egypt of several Disney movies, Beauty and the beast, Aladdin, and a couple others.

They had strange ads for burgers in Arabic, and the cam was really low quality.

We didn’t really know any better being kids, so I always thought that Beauty and the Beast was a dark, terrifying, grainy, nightmarish movie.

Having seen the real version, I have to say the shitty cam copy stuck better in my mind.

Anyways, sorry I can’t answer any of your questions OP.




Holy shit, THANK YOU!!

Don’t worry, I managed to get the links before you edited 😉

I did actually search on here but I only found alien 3.

Wow… finally! I thought I would never get to see this.



Alien VHS rip?
I really want to get this. Poor quality video and audio, some of those classic VHS lines across the screen... For me it's nostalgia and also fits with the analogue/early digital type vibe of the ship and equipment. I'm sure a VHS rip must exist somewhere, anyone know where I could find one?
fedilink

Appimages available here

Never heard of this before, so I just downloaded an image to check out later when I remember



Nevermind, I managed to find the right link to click. It’s 2D animation software


What is this??

What does this even do??

I actually can’t work it out from the site at all


It’s really good dude. Violent, tons of swearing, great graphics, stealth and action.