Skip to content

Instantly share code, notes, and snippets.

@suruseas
suruseas / ABOUT.md
Created July 28, 2026 11:35
156 real-world compose files on Apple container: A/B measurement ledger (no-fix vs auto-fix)

156 real-world compose files on Apple container — A/B measurement ledger

Raw per-project results behind the article "実運用のdocker compose 156本をApple containerで一斉起動してみた".

  • Corpus: Haxxnet/Compose-Examples @ 99b28cb, the 156 examples/*/docker-compose.yml entries without a build: section.
  • Environment: macOS 26 / Apple silicon, Apple container 1.1.0, opossum v0.15.0 as the orchestration layer.
  • Both arms run back-to-back per project on the same binary: A = opossum up (no auto-fix), B = opossum up --from-docker-compose (auto-fix). Secrets/passwords are left as placeholders. 120s hard timeout per up.

results-156-ab.csv columns

@suruseas
suruseas / open_file.sh
Created September 2, 2016 07:53
読み込んだファイルを一行づつechoする
#!/bin/sh
OUTPUTFILE=$1
while read line || [[ -n $line ]]; do
echo $line
done < $OUTPUTFILE
exit 0
@suruseas
suruseas / table_sort_2.js
Created February 12, 2014 16:13
テーブル(id=#table)の行をソートするよ。その二。
$('#table tr').sort(function(a, b){return ( Number( $('input:first-child', $('td:eq(1)', a) ).val()) - Number( $('input:first-child', $('td:eq(1)', b) ).val() ) );}).each(function(){$('#table').append($(this));});
@suruseas
suruseas / table_sort_1.js
Created February 12, 2014 16:11
テーブル(id=#table)の行をソートするよ。その一。
$('#table tr').sort(function(a, b){return ( Number( $('td:eq(0)', a).text() ) - Number( $('td:eq(0)', b).text() ) );}).each(function(){$('#table').append($(this));});
@suruseas
suruseas / convert.rb
Created September 13, 2012 05:44
\xxx\xxxの8進数形式で文字が表記されているテキストをそのままバイナリ変換して新たにファイルに保存する
while argv = ARGV.shift
File::open(argv, "r") do |rf|
File::open("#{File::realpath(rf)}.cnv", "w") do |wf|
while line = rf.gets
wf.puts line.gsub(/\\([0-9]+)/){
[$1.oct].pack("C*")
}
end
end
end
@suruseas
suruseas / config.ru
Created August 27, 2012 14:57
デザイン作成時等、静的HTMLサーバをたてるときに。publicフォルダにリソース突っ込んでくれればOK.
require 'sinatra'
helpers do
def directory_index(path)
['index.html', 'index.htm' ].map{|i| "./public/#{path}/#{i}" }
end
end
get '*/' do
path = request.path_info
p path
@suruseas
suruseas / server.rb
Last active September 1, 2024 05:33
Sinatra(WEBrick)でsslサーバをたてる
# -*- coding: utf-8 -*-
require 'sinatra/base'
require 'pp'
require 'webrick'
require 'webrick/https'
require 'openssl'
CRT_FILE_NAME = 'server.crt'
RSA_FILE_NAME = 'server.key'