Skip to content

Instantly share code, notes, and snippets.

View masayukig's full-sized avatar

Masayuki Igawa masayukig

View GitHub Profile
@masayukig
masayukig / REVIEWING_ja.rst
Last active July 31, 2019 03:36
Unofficial Japanese translation of Tempest document

Tempest コード レビュー

始めに、 OpenStack Common Review Checklist を読むこと

コード実行の確認

新たなテスト作成、あるいは変更に対しては、 gate での確認が必要である。これは、

@masayukig
masayukig / install-spotify-client-with-appimage-recipe-on-opensuse-tumbleweed.rst
Last active October 3, 2018 06:43
Make and install spotify-client with AppImage recipe on openSUSE Tumbleweed

Install spotify-client with AppImage recipe on openSUSE Tumbleweed

  1. clone AppImage repo
$ git clone https://github.com/AppImage/AppImages
@masayukig
masayukig / concat-mts-files.sh
Last active December 9, 2017 06:27 — forked from jbuchbinder/concat-mts-files.sh
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
## Usage: concat-mts-files.sh OUTFILE.m2ts 0000[0-2].MTS
if [ $# -le 1 ]; then
echo "Usage: concat-mts-files.sh OUTFILE.m2ts 0000[0-2].MTS" 1>&2
exit 1
fi
@masayukig
masayukig / KPT_Denver_PTG_2017.rst
Last active November 29, 2017 06:26
Retrospective for PTG in Dever 2017

Retrospective for PTG in Denver 2017

I'd like to run a retrospective myself against the PTG in Denver, briefly.

Positive

  • keep to have conversation with QA and the other people
  • got new conversation with QA and some people
#!/bin/sh
gource -c 4 -s 1 -1280x720 -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 ~/tmp/FILENAME.mp4
@masayukig
masayukig / non-technical-openstack-story.md
Last active December 12, 2015 09:58
技術的じゃないOpenStackの話

これは、OpenStack Advent Calendar 2015 の2015-12-12 エントリです。

仮説・モチベーション

  • きっと、OpenStack Advent calendarは、技術的な話題で埋めつくされていて、みんなお腹いっぱいなはずww
  • OpenStackっていうと、技術的な話題を思い浮かべるが「それだけじゃない」ということ言いたかった。
  • ちょっと変化球を投げてみたかったwww

Summit期間中の連日の宴会・パーティ

公式なもの、非公式なもの、プライベートな小規模なもの様々あり。

公式

import datetime
import os
def utc2jst(utc_in_twitter_format):
utc = (datetime.datetime.
strptime(utc_in_twitter_format, '%a %b %d %H:%M:%S +0000 %Y'))
td = datetime.timedelta(hours=9) # JST is 9 hours later than UTC
return utc+td
jst = os.environ.get("UTC")
import random
import os
l = os.environ.get("LIST").split()
for i in range(1000):
s = random.randint(0, len(l) - 1)
d = random.randint(0, len(l) - 1)
tmp = l[s]
l[s] = l[d]
#!/bin/bash
sudo apt-get update; sudo apt-get upgrade -y; sudo apt-get dist-upgrade -y
sudo apt-get install build-essential -y
wget https://byte-unixbench.googlecode.com/files/UnixBench5.1.3.tgz
tar xf UnixBench5.1.3.tgz
cd UnixBench
make
./Run
@masayukig
masayukig / update-stack.sh
Last active December 22, 2015 23:09
a script for updating OpenStack sources of devstack
#!/bin/bash
STACK_DIR=/opt/stack
COMPONENTS=`cd ${STACK_DIR}; ls -1`
echo $COMPONENTS
for component in ${COMPONENTS}
do
echo ============ $component ===============
cd ${STACK_DIR}/$component