Skip to content

Instantly share code, notes, and snippets.

@daniouyea
daniouyea / index.html
Last active November 30, 2023 17:06
Use vite to compile scss in PHP project (or other non js)
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
</head>
<body>
<script type="module" src="http://127.0.0.1:57443/@vite/client"></script>
<link rel="stylesheet" href="http://127.0.0.1:57443/style.scss">
</body>
</html>
@daniouyea
daniouyea / ffmpeg-watermark.md
Created September 24, 2020 17:01 — forked from bennylope/ffmpeg-watermark.md
FFmpeg add a watermark to video

How to Add a Watermark to Video

FFMPEG filters provide a powerful way to programmatically enhance or alter videos, and it’s fairly simple to add a watermark to a video using the overlay filter. The easiest way to install ffmpeg is to download a pre-built binary for your specific platform. Then you don’t have to worry about including and installing all the right dependencies and codecs you will be using.

Once you have ffmpeg installed, adding a watermark is as easy as passing your existing source through an overlay filter like so:

ffmpeg -i test.mp4 -i watermark.png -filter_complex "overlay=10:10" test1.mp4

Basically, we’re passing in the original video, and an overlay image as inputs, then passing it through the filter, and saving the output as test1.mp4.

@daniouyea
daniouyea / ffmpeg-watermark.md
Created September 24, 2020 17:01 — forked from bennylope/ffmpeg-watermark.md
FFmpeg add a watermark to video

How to Add a Watermark to Video

FFMPEG filters provide a powerful way to programmatically enhance or alter videos, and it’s fairly simple to add a watermark to a video using the overlay filter. The easiest way to install ffmpeg is to download a pre-built binary for your specific platform. Then you don’t have to worry about including and installing all the right dependencies and codecs you will be using.

Once you have ffmpeg installed, adding a watermark is as easy as passing your existing source through an overlay filter like so:

ffmpeg -i test.mp4 -i watermark.png -filter_complex "overlay=10:10" test1.mp4

Basically, we’re passing in the original video, and an overlay image as inputs, then passing it through the filter, and saving the output as test1.mp4.

@daniouyea
daniouyea / .htaccess
Created February 5, 2019 11:16
htaccess utils
<IfModule mod_rewrite.c>
# fuerza HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# quita las www
RewriteCond %{HTTP_HOST} www\.website\.com$ [NC]
RewriteRule ^(.*)$ https://website.com/$1 [R=301,L]
</IfModule>