Skip to content

Instantly share code, notes, and snippets.

View masayukig's full-sized avatar

Masayuki Igawa masayukig

View GitHub Profile
@jbuchbinder
jbuchbinder / concat-mts-files.sh
Created February 8, 2016 14:19
Concatenate MTS AVCHD files under Linux
#!/bin/bash
## Solution from: http://stackoverflow.com/questions/26150533/join-avchd-mts-files-on-linux
## ffmpeg -i "concat:00000.MTS|00001.MTS|00002.MTS" -c copy output.m2ts
## File with .m2ts extension, etc
OUT="$1"; shift
## Format : "concat:00000.MTS|00001.MTS|00002.MTS"
IN="concat:$1"; shift
@mikepea
mikepea / pr_etiquette.md
Last active September 12, 2024 14:58
Pull Request Etiquette

Pull Request Etiquette

Why do we use a Pull Request workflow?

PRs are a great way of sharing information, and can help us be aware of the changes that are occuring in our codebase. They are also an excellent way of getting peer review on the work that we do, without the cost of working in direct pairs.

Ultimately though, the primary reason we use PRs is to encourage quality in the commits that are made to our code repositories

Done well, the commits (and their attached messages) contained within tell a story to people examining the code at a later date. If we are not careful to ensure the quality of these commits, we silently lose this ability.

@jistr
jistr / tuskar_cli_steps.md
Last active August 29, 2015 13:56
Overcloud deployment using Tuskar CLI

Overcloud deployment using Tuskar CLI

Prerequisites

  • Deployment using Tuskar toolset (regardless if UI or CLI way) requires a fully set up and running undercloud, including the Tuskar API.
@yuuichi-fujioka
yuuichi-fujioka / get all git tag.sh
Created April 15, 2013 02:34
gitのタグ取得 日付でソート付き
git for-each-ref --sort=taggerdate refs/tags
@deeplook
deeplook / pi_digits.py
Created February 13, 2013 20:16
Generate digits of Pi using a spigot algorithm.
"""
Run the algorithm below using CPython, Cython, PyPy and Numba and compare
their performance. (This is implementing a spigot algorithm by A. Sale,
D. Saada, S. Rabinowitz, mentioned on
http://mail.python.org/pipermail/edu-sig/2012-December/010721.html).
"""
def pi_digits(n):
"Generate n digits of Pi."
k, a, b, a1, b1 = 2, 4, 1, 12, 4