Skip to content

Instantly share code, notes, and snippets.

View mayconvm's full-sized avatar

Maycon Moreira mayconvm

View GitHub Profile
@n-studio
n-studio / DEPLOY_WITH_KAMAL_ON_DEDICATED_SERVER.md
Last active June 1, 2025 10:51
Deploy a web app on a dedicated server with Kamal

Notes

This guide uses Kamal 2.5.3

Motivation

Kamal was designed with 1 service = 1 droplet/VPS in mind.
But I'm cheap and I want to be able to deploy multiple demo/poc apps apps on my $20/month dedicated server.
What the hell, I'll even host my private container registry on it.

@lukehedger
lukehedger / ffmpeg-compress-mp4
Last active August 27, 2025 23:42
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
@szydan
szydan / gist:b225749445b3602083ed
Last active July 3, 2025 03:29
<U+FEFF> character showing up in files. How to remove them?
1) In your terminal, open the file using vim:
vim file_name
2) Remove all BOM characters:
:set nobomb
3) Save the file:
:wq