Skip to main content

About

Parallax

  • add example
<style lang="css">
.background {
background-image: url('assets/images/background.png');
}
.parallax {
/* The image used */
background-image: url('assets/images/background.png');

/* Full height */
height: 100%;

/* Create the parallax scrolling effect */
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
</style>
<div class="fixed w-full h-screen bg-gray-100 bg-center bg-no-repeat bg-cover opacity-10 background"></div>
<div>
content
</div>

Concepts

For NGINX: /etc/nginx/nginx.conf

http {
# ...
client_max_body_size 500M;
}

For current PHP FPM version /etc/php/7.4/fpm/php.ini
Check current version with php -v

post_max_size = 500M
# ...
upload_max_filesize = 500M

Restart NGINX and PHP FPM :

sudo service nginx restart
sudo service php7.4-fpm restart

Check on phpinfo() if your config is correct. You can add this to /var/www/html, give it phpinfo.php name and acces to http://localhost/phpinfo.php

<?php
phpinfo();
?>

Video games

FOR /F "tokens=*" %G IN ('dir /b *') DO ffmpeg -i "%G" "%~nG.webp"
youtube-dl -x --audio-format mp3 URL

Fatal: fast forward aborting

git merge origin/master

Stuck in rebase

git rebase --skip

Laravel

Flutter