How often do you program useless things?

I'm making a hentai-manga downloader right now, just cause I want to collect them kek

Attached: aaaaaaaa.png (682x392, 283K)

Other urls found in this thread:

ptpb.pw/iQVu
manga.madokami.al/Manga/E/ET/ETER/Eternal Sabbath
manga.madokami.al/Manga/T/TS/TSUM/Tsumi to Batsu - A Falsified Romance
github.com/yt-dl-gui/yt-dl-gui
github.com/ryanjay0/miles-deep
github.com/0-l/usb-locker/tree/master/src/C#/Locker/Locker
a.uguu.se/KnKsDs4VN6Lj_2018-04-11_09-49-42.webm
twitter.com/NSFWRedditVideo

well, I haven't programmed anything useful

small scripts, daily

lol How?

Examples?

Post source code.

imagefap viewer that displays slideshows in an overlay so I can edge to sissy porn while playing League

Nah, it's a total mess right now :s

That's not useless kek

idk dumb stuff

#!/bin/bash
FILE=$1
AUDIOMAP=$2
SUBMAP=$3
MOVIENAME=$4
YEAR=$5

VBITRATE=2000
#sudo nice -n -20 taskset -c 0-14
#ffmpeg -y -i $FILE -c:v libx264 -b:v 2000k -pass 1 -c:a aac -b:a 256k -f mkv /dev/null && \
#ffmpeg -i $FILE -c:v libx264 -b:v 2000k -pass 2 -c:a aac -b:a 256k $FILE.mkv
#--crop 0:0:0:0

mkdir working_$FILE
mv $FILE working_$FILE/$FILE
cd working_$FILE

if [ $SUBMAP -eq "9" ] ; then
HandBrakeCLI -i $FILE -o output_$FILE.mkv -E av_aac -B 256k -6 stereo -R 48000 -e x264 -2 -T -b $VBITRATE -v2 -a$AUDIOMAP
ffmpeg-normalize output_$FILE.mkv -o normalize_$FILE.mkv -c:a aac -b:a 160k -lrt 15 -tp 0 -t -5
ffmpeg -i normalize_$FILE.mkv -map_metadata -1 -map_chapters -1 -map 0:0 -map 0:1 -c:v copy -c:a copy ffmpegout_$FILE.mkv
else
HandBrakeCLI -i $FILE -o output_$FILE.mkv -E av_aac -B 256k -6 stereo -R 48000 -e x264 -2 -T -b $VBITRATE -v2 -a$AUDIOMAP
ffmpeg-normalize output_$FILE.mkv -o normalize_$FILE.mkv -c:a aac -b:a 160k -lrt 15 -tp 0 -t -5
ffmpeg -i normalize_$FILE.mkv -i $FILE -map_metadata -1 -map_chapters -1 -map 0:0 -map 0:1 -map 1:$SUBMAP -c:v copy -c:a copy -c:s copy ffmpegout_$FILE.mkv
fi

mkdir "$MOVIENAME"
mv ffmpegout_$FILE.mkv "$MOVIENAME/$MOVIENAME ($YEAR).mkv"


working on this right now, it works fine but trying to fine tune it

using handbrake as it auto crops black bars in videos, seeing if I can get ffmpeg to do the same then I can stop using handbrake

want to also encode and normalize the audio once so I'm going to skip audio in handbrake and pass it through normalize only and then use ffmpeg to recombine them after the fact

I made script like that in 2014.
Now I have more that 1TB of doujins I will never read. Feels good man.

all the fucking time. my least useful thing is a system tray app that warns me when my pictures folder grows large enough for 1, 2, 3 etc blu ray burns

>"how often do you program useless things"
>"currently working on this useful thing"

Every time I go to fap and some porn website's code does suspicious/ugly/slow/annoying things I get cockblocked and have to write userscripts to scrape the video and then embed the native player tastefully into the site's layout.

Almost never, I'm dumb.
I want to try and download multiple files through madokami with aria2c, but I'm too dumb to fetch all of the links to a text file which aria2c would read.

Attached: image.jpg (645x968, 47K)

Seems great to me, even tho I didn't understand kek

I have 2GB already. I made it last night kek

I never said I was doing something useful, retard

Here: ptpb.pw/iQVu
Example usage:
./script.sh manga.madokami.al/Manga/E/ET/ETER/Eternal Sabbath
./script.sh manga.madokami.al/Manga/T/TS/TSUM/Tsumi to Batsu - A Falsified Romance

To download, use something like:
aria2c --http-user=[your_username] --http-passwd=[your_passwd] [generated_url]

>I never said I was doing something useful, retard

i think he's implying you are

oh :l I'm the retard them, my bad user :s

I did something similar, but not just downloads the latest translations from Mangastream.

Definite proof that league players are sissies

never, which is why i barely write anything.

I'm writing a level editor for a 12 years old gayme

Attached: 1522898790264.gif (235x250, 97K)

I made a simple tex file generator with pyqt to force my business partner to drop the shitty docx "templates" that used spaces as "alignment". Main motivation was cross platform use so that I can get rid of his gay virus ridden os.
It was my first time doing something resembling programming and I had to rewrite everything after the first prototype because if have done dumbass shit like regexing tex files and copying folders around like a motherfucker. I couldn't sleep for two days because of that.

Turns out that the pc he uses is too slow for texlive and he doesn't use it because it is too "annoying" to wait ten seconds for the pdf. Fuck that asshat. Now I have to find out how to produce pdf files with plain python or c++. Doesn't even matter anymore, all the same shit.

Wow, cool, I hope some day I reach your level senpai

kek i feel for you user. I built a fucking telegram bot to play rpg with a bunch of "friends", they played only two times... I wasted 2 days basically without sleeping to make all the commands and shit, fuck those fags

>How often do you program useless things?

that is not really a useless thing.

Last thing I did was clone a dead and outdated Jow Forums thread + image downloader and made it work again

Attached: explorer_2018-04-11_12-05-01.png (361x253, 9K)

despite of the fact that countless youtube download website exist, i created this

Attached: yt-dl-gui.webm (768x400, 1.23M)

share

Man, I understand your reasoning making a GUI for it but I will never use something like this since a download is just "F12, yo+TAB, shift+ins, enter" away for me.

it is just a total mess right now

after a whole day of working with terminal stuff, i want something abit different to look at

How're you making the guy?

just winform stuff

github.com/yt-dl-gui/yt-dl-gui
oh fuck it, salvage what you can

> Is my hobby weird?
Some patrician tastes here senpai

Looking at your code makes me realize that most programming languages are the same shit with different classes and slightly different syntax.

same, now I'm sad again

prog lang is just a way for us human express algorthm and high level concept so that computer can understand and execute. It's all the same stuff really.

Quite often, usually small tools or scripts to automate stuff.
For instance, pic related is a flash drive locker that I wrote a few months ago, it shutdowns your computer if too many attempts are made

Attached: usb-locker.gif (263x274, 73K)

For nhentai?
I did that a few months ago. I can post mine if you want. It's not written the best, but it does work. Also, you can use USERNAME and PASSWORD as valid credentials, for reference.

Less than I'd like to due to school getting in the way.

I'm hoping to learn Rust during the Summer, along with making a CHIP-8 emulator with it.

i used to code hacks like aimbots and wallhacks and learn assembly when i was 15 now i spend my time coding .net and lurking on Jow Forums

I've implemented a basic tag system into my hentai anime and JAV collections then generate various playlists like uncensored or not, latest N based on file timestamps, etc. The playlist can then be loaded into a video player with shuffle so I don't have to really think about what to fap to.

>have a need
>search the internet and find out nobody has done this yet
>make program to fill need
>it works well for me
>source code is an undocumented complex mess
>someone I'll never even interact with might judge me
>never release it
repeat ad infinitum

bretty good

share git

I've had an idea on my to-do list for a while now that lets me mark time slices of video files and somehow plays only those segments. So I would have what is essentially a playlist that's a supercut of the best moments of my entire collection.

Combine that with tags and imagine it, a supercut of everything with *tagname*.

Something like this but with a seeking model instead of a rendering one
github.com/ryanjay0/miles-deep

With my collection, for really far outliers that had a few good scenes I bit the bullet and manually trimmed out the good stuff then stitched them back together with ffmpeg.

It's definitely a time vs effort vs reward situation, but it achieved what you described.

Sorry for the horrid code, that was my first C# project. I might do some refactoring someday
github.com/0-l/usb-locker/tree/master/src/C#/Locker/Locker

I have a few parsers lying around from when I was trying to work out the best way to get data from a config file into a C app

it looks nice dude

You could probably get close by using mpv with its --start/--length/--end arguments. You would lose playlist functionality within mpv probably, so that'd have to be done externally to manage mpv.

a.uguu.se/KnKsDs4VN6Lj_2018-04-11_09-49-42.webm

>button1
>button2
>label4
>label2
>form2
please change these to real name

That's a good idea. Originally I was thinking of forming a complex map for ffmpeg which would render the output to stdout or a pipe or something.

Maybe I could look at the mpv source and see if it would be possible to add support for playlists that have timecodes on files. That seems less complicated and better for everyone. I'll have it done in 5 years when I have spare time.

gayshit.pls
filename.webm:01:00-02:00
filename.webm:05:00-15:00
...

>small one shot project
>properly naming variables
just do it yourself, its one click, i personally would never bother renaming them even if i would decide to add something more to this app

At that point you'd be within spitting distance of doing what I did and manually splicing it with ffmpeg.

ok gonna pull request it

for what purpose

can love blossom on the battlefield? owo

@echo off
color 0a
:a
tree
goto a

Attached: 1337mjZhdNJWSY.gif (500x280, 1009K)

Scripts, almost all the time.
Scripts and self-hosted online services to manage other scripts, whenever I decide [current way of managing scripts, originally dumping everything in ~/.bin] is a mess.
Scripts to manage and centralize the previously created multiple script hosting services, probably soon.

!
Damn, I should have looked up curl. Thanks user, I need to read up some more and hopefully do one for the cafe of hentai. On the usage, I believe aria2c can read off a file, so I can just pipe the output to a text file and read that text file with aria2c.

I did this:
function madokami-dl () {
wget -r -H -D manga.madokami.al --https-only -e robots=off \
--http-user= --http-password= \
-nd -nc --accept=zip,rar,tar,cbr,cbz -R "*.html","%2FManga*" "$1"
}


since it worked most of the time, but it was stuck one download at a time.

Attached: Thank you based god - Maria.jpg (372x466, 31K)

Holy shit, please put this on Github.

If you feel urge to shareit, just release it as closed source snd call it a day.

Please post it :v