Skip to content

Instantly share code, notes, and snippets.

View fleetimee's full-sized avatar

Shionne Imeris fleetimee

View GitHub Profile
@parmentf
parmentf / GitCommitEmoji.md
Last active July 29, 2025 03:04
Git Commit message Emoji
@jamesmacwhite
jamesmacwhite / ffmpeg_mkv_mp4_conversion.md
Last active July 11, 2025 10:08
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 July 28, 2025 13:56
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.

@santaklouse
santaklouse / CrossOver.sh
Last active July 29, 2025 01:07
unlimited CrossOver trial (MacOS)
#!/usr/bin/env bash
# checck if pidof exists
PIDOF="$(which pidof)"
# and if not - install it
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof
# find app in default paths
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS