Skip to content

Instantly share code, notes, and snippets.

View garex's full-sized avatar
🏒
❄️

Alexander Ustimenko garex

🏒
❄️
View GitHub Profile
@mikoim
mikoim / README.md
Last active November 25, 2024 14:00
[Updated! Aug 14 2020] YouTube recommended encoding settings on ffmpeg (+ libx264)

Parameters

Container: MP4

Parameter YouTube recommends setting
-movflags faststart moov atom at the front of the file (Fast Start)

Video codec: H.264

@garex
garex / .gitconfig
Last active May 25, 2016 10:21
Git aliases
# To get yours:
# history | grep ' git ' | sed 's/^.* git //' | awk '{print $1}' | sort | uniq -c | sort -h
[alias]
s = status
c = commit -m
p = push origin
pf = push origin -f
d = diff
r = rebase
@garex
garex / compile-n-run-hh.sh
Created March 4, 2015 10:19
Compile hh files and run without sources
#!/bin/bash
function log {
echo
echo "-- $1 --"
}
function run {
echo "# $1"
sh -c "$1"
@fxbenard
fxbenard / getrmpomakemo.sh
Created March 5, 2014 14:06
Pull translations with Transifex client, create the mo and remove the po
#! /bin/sh
# Pull all files from Transifex;
# Minimum percentage change to whatever you want
tx pull -a --minimum-perc=100
# Create .mo files from .po files.
# Twisted by WP-Translations.org, created by grappler.
for file in `find . -name "*.po"` ; do msgfmt -o ${file/.po/.mo} $file && rm $file ; done
@cgoldberg
cgoldberg / merge_junit_results.py
Last active June 18, 2024 17:30
Merge multiple JUnit XML results files into a single results file.
#!/usr/bin/env python
"""Merge multiple JUnit XML results files into a single results file."""
# MIT License
#
# Copyright (c) 2012 Corey Goldberg
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@jbroadway
jbroadway / Slimdown.md
Last active November 22, 2024 16:45
Slimdown - A simple regex-based Markdown parser.