Skip to content

Instantly share code, notes, and snippets.

View fleetimee's full-sized avatar

fleetime fleetimee

View GitHub Profile
@parmentf
parmentf / GitCommitEmoji.md
Last active January 15, 2026 09:14
Git Commit message Emoji
@jamesmacwhite
jamesmacwhite / ffmpeg_mkv_mp4_conversion.md
Last active December 29, 2025 13:19
Easy way to convert MKV to MP4 with ffmpeg

Converting mkv to mp4 with ffmpeg

Essentially just copy the existing video and audio stream as is into a new container, no funny business!

The easiest way to "convert" MKV to MP4, is to copy the existing video and audio streams and place them into a new container. This avoids any encoding task and hence no quality will be lost, it is also a fairly quick process and requires very little CPU power. The main factor is disk read/write speed.

With ffmpeg this can be achieved with -c copy. Older examples may use -vcodec copy -acodec copy which does the same thing.

These examples assume ffmpeg is in your PATH. If not just substitute with the full path to your ffmpeg binary.

Single file conversion example

@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active January 14, 2026 06:50
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@galpratama
galpratama / ResponseFormatter.php
Created February 19, 2020 11:18
API Response Formatter
<?php
namespace App\Http\Controllers\API;
class ResponseFormatter
{
protected static $response = [
'meta' => [
'code' => 200,
'status' => 'success',
@SAMFYB
SAMFYB / new-mac-setup.md
Last active October 11, 2024 19:36
My process of setting up a new MacBook

Process of setting up a new MacBook

Part 1: applications

  • Amphetamine: get it from App Store; it keeps Mac from automatically go to sleep
  • Spectrum: get it from App Store; I occasionally use it for web color design
  • Slack: get it from App Store and sign in via email
  • Kindle: get it from App Store and sign in through Amazon account
  • Xcode: I don't do iOS/macOS dev, but I think sometimes other programs need it
  • Postman: hackathon essential? get it here https://www.postman.com/
// https://www.codewars.com/kata/52b7ed099cdc285c300001cd/train/javascript
function sumIntervals(intervals){
intervals = intervals.sort(function(a, b) { // O(n)
return a[0] - b[0];
});
intervals = intervals.reduce(function(acc, el, index, array) { // O(n)
const anterior = array[index - 1];
if (array.length > 1 && anterior !== undefined) {
if (el[0] < acc[acc.length - 1]) {
@vinicioslc
vinicioslc / flutter-android-cd.yml
Last active November 20, 2024 15:53
Build flutter releases in github actions for production only android for while.
# This is a basic workflow to help you get started with Actions
name: CD Internal-Lane
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
tags:
- "internal-v*.*.*" # on every version tag will build a new android artifact example: v3.1.2+6
jobs:
@heygema
heygema / jsThis.md
Created November 22, 2021 09:35
JS this.

title: Js this tags: #programming link: topics: [[Javascript MOC]]


implicit Binding

a Binding that occurs upon the creation of the object. hint: when you try to look for where is this refers to, look at the left of the dot (.) when a function is invoked.

@thesamesam
thesamesam / xz-backdoor.md
Last active January 9, 2026 08:45
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background