Do It by Code
54 subscribers
713 photos
99 videos
15 files
1.24K links
We uhhhhh... do things by coding them.
Download Telegram
Channel created
Creating stories out of a long video:


.makeVid FILE_NAME 00:00.0 -> 01:00.0
OR
ffmpeg -sn -hide_banner -loglevel error -ss 00:00.0 -to 01:00.0 -i Fate-Royalty.mp4 -vf "scale='min(iw,1280)':'min(ih,720)'" -pix_fmt yuv420p -c:v hevc_nvenc "part1.mp4" -y

Then:

.sh ffmpeg -i part1.mp4 -vf 'split[original][copy];[copy]scale=-1:ih*(16/9)*(16/9),crop=w=ih*9/16,gblur=sigma=20[blurred];[blurred][original]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2' -c:v libx264 -crf 20 out1.mp4 -hide_banner -loglevel error -y


Then:

.sh ffmpeg -i out1.mp4 -vf "scale='min(iw,1280)':'min(ih,720)'" -c:v libx264 out1final.mp4 -hide_banner -loglevel error -y

Then:

.eval await user.send_story('out1final.mp4', privacy='all', pinned=True)
Channel photo updated
Generating a PEM format RSA private/public key:
openssl genrsa -out elot-privatekey01.pem 2048
openssl rsa -pubout -in elot-privatekey01.pem -out elot-publickey01.pem


Exporting info about a PEM generated RSA private key:

$rsa = [System.Security.Cryptography.RSA]::Create()
$rsa.ImportFromPem((gc "path" -raw))
$rsa.ExportParameters(true)


Take note that parameters are in Big Endian. For Little Endian, use Array.Reverse on them.
#include <stdio.h>
main(t,_,a)
char
*
a;
{
return!

0<t?
t<3?

main(-79,-13,a+
main(-87,1-_,
main(-86, 0, a+1 )


+a)):

1,
t<_?
main(t+1, _, a )
:3,

main ( -94, -27+t, a )
&&t == 2 ?_
<13 ?

main ( 2, _+1, "%s %d %d\n" )

:9:16:
t<0?
t<-72?
main( _, t,
"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+,/+#n+,/#;\
#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l q#'+d'K#!/+k#;\
q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ){nl]!/n{n#'; \
r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#\
\
n'wk nw' iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c ;;\
{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;\
#'rdq#w! nr'/ ') }+}{rl#'{n' ')# }'+}##(!!/")
:
t<-50?
_==*a ?
putchar(31[a]):

main(-65,_,a+1)
:
main((*a == '/') + t, _, a + 1 )
:

0&#60;t?

main ( 2, 2 , "%s")
:*a=='/'||

main(0,

main(-61,*a, "!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m
.vpbks,fxntdCeghiry")

,a+1);}


xmas.c
Let's Build a Compiler
Article, Comments
"First do it, then do it right, then do it better."
Article, Comments
Channel photo updated
science.pdf
1.9 MB
A Science of Concurrent Programs [pdf]
Article, Comments
Show HN: Auto Wiki – Turn your codebase into a Wiki
Article, Comments
Forwarded from Dev Miscellaneous (davide. φ)
Soft Deletion Probably Isn't Worth It

https://brandur.org/soft-deletion

@DevMisc
#sql #misc