How to compress mp4 in one command with ffmpeg

114 , Leave a Comment
With ffmpeg, we can create a free video compresser on our local machine. First, create a shell function on you .bashrc or .zshrc: function mp4-compress() { filename=$(basename -- "$1") extension="${filename##*.}" name="${filename%.*}" ffmpeg -i "$1" -vcodec libx265 -crf 2…

How to transfer data between different mongodb instance?

81 Leave a Comment
Here is the python code to transfer data between different mongo instance: def transfer(source_collection, dest_collection, batch_size: int): offset = 0 total = source_collection.count_documents({}) total_inserted = 0 while True: documents = source_collection.find().skip(offset).limit(batch_size) data = list(do…

KeyCloak vs Authelia

3.7k , Leave a Comment
Category Detailed KeyCloak Authelia Star Github 14,776 15,346 Technical Language Java Go Database for dev H2 (file and memory) SQLite Database MariaDB, MSSQL, MySQL,Oracle, PostgreSQL MySQL, PostgreSQL Cache for dev local Memory Cache Infinispan Redis Redis Sentinel Connections Protocols OpenID Connect, OAuth …

Special Character and Symbol Names on Keyboard

112 Leave a Comment
~: tilde `: push, open quote, left quote, grave, back quote !: bang, exclamation @: at #: hash, sharp $: dolor %: percent ^: caret, circumflex &: and *: star, asterisk (: left parenthesis ): right parentthesis -: dash, hyphen, minus _: underscore +: plus =: equal {: curly bracket, open brace }: curly brack…

How to use Gmail to send email in Python

342 , Leave a Comment
1 Add "App password" Go to Google account "Security", navigate to "Signing in to Google" and click "App passwords". Then select a type, here we use "Mail" and custom the device name. Type device name as "airflow", or you can choose any other name. Then…
« Previous Page