Skip to content

Instantly share code, notes, and snippets.

View deffjay's full-sized avatar

Jeff Day deffjay

View GitHub Profile
@deffjay
deffjay / phpfpm_swoole_benchmark.md
Last active March 4, 2024 01:54
PHP-FPM / Swoole Benchmarks

PHP-FPM / Swoole - Performance Comparison!

Here are some comparative benchmarks of our API using PHP-FPM vs Laravel Octane (Swoole) endpoints.

Test Hardware - Setup

  • Macbook Pro (15-inch, 2018) - 2.6 GHz 6-Core Intel Core i7. 32 GB 2400 Mhz
  • MySQL - 8.0
  • PHP - 8.0.3
  • Laravel - 8.83.5
@deffjay
deffjay / ffmpeg-commands.sh
Created November 2, 2022 02:29 — forked from 44213/ffmpeg-commands.sh
ffmpeg commands.
# To extract the sound from a video and save it as MP3:
ffmpeg -i <video.mp4> -vn <sound>.mp3
# To convert frames from a video or GIF into individual numbered images:
ffmpeg -i <video.mpg|video.gif> <frame_%d.png>
# To combine numbered images (frame_1.jpg, frame_2.jpg, etc) into a video or GIF:
ffmpeg -i <frame_%d.jpg> -f image2 <video.mpg|video.gif>
# To quickly extract a single frame from a video at time mm:ss and save it as a 128x128 resolution image: