Skip to content

Instantly share code, notes, and snippets.

View shouhei's full-sized avatar

Shouhei shouhei

  • japan
View GitHub Profile
@voluntas
voluntas / openssl_speed_aes_gcm_chacha20_poly1305.md
Last active November 10, 2024 05:00
$ openssl speed -evp aes-gcm | chacha20-poly1305 の結果を集めるスレ

$ openssl speed -evp aes-128-gcm | chacha20-poly1305 の結果を集めるスレ

AES-CBC が早いけど、AES-GCM/AES-CTR が遅かったり、Ryzen が爆速だったり、 ChaCha20-Poly1305 が ARM で早かったりするという噂の真相が知りたいです。コメントに適当にべたべた結果を貼ってください。

ちなみに Apple M2 おかしいくらい早いです。

CPU 情報はできれば詳細なのがほしいです。

OpenSSL のバージョンは 3.1 系の最新版でお願いします。

@voluntas
voluntas / shiguredo_product.rst
Last active May 21, 2024 13:17
時雨堂自社製品コトハジメ
@mapk0y
mapk0y / docker-run-init.md
Last active July 11, 2022 22:58
docker run の --init をつけた場合(Docker 1.13 以降)

docker 1.13 以降使えるようになった docker run --init についての調査

この機能は docker/docker#26061 で実装された。
--init をつけた場合に実行されるバイナリ(/dev/init)の実態は docker/docker#28037 により krallin/tini に変更されている。

調査方法

python で time.sleep(100)するだけのコンテナを docker run で実行し、そのコンテナに対して docker stop した場合に --init 有り無しで違いがあるかを比較してみる。

--init をつけない場合

@hayajo
hayajo / .gitignore
Last active December 5, 2018 01:03
「GoでくつるLinuxコンテナ」 - 第10回 コンテナ型仮想化の情報交換会@東京 #lxcjp
.vagrant/
@muendelezaji
muendelezaji / bash-to-zsh-hist.py
Created October 5, 2016 14:18 — forked from op/bash-history-to-zsh-history.py
Convert Bash history to Zsh history
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is how I used it:
# $ cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history
import sys
import time
// This is an onetime script to convert sprockets to commonjs
// $ npm install glob
// $ npm install babel-cli -g
// # Move to your Rails root.
// $ babel-node sprockets2commonjs.js
let glob = require('glob')
let fs = require('fs')
let path = require('path')
@ysaotome
ysaotome / centos71_64bit_Plain_setup_script_for_niftycloud.sh
Last active September 30, 2016 11:40
CentOS 7.1 64bit Plain Cloud Init Script for NiftyCloud (http://cloud.nifty.com/)
#!/bin/bash
# Description:CentOS 7.1 64bit Plain Cloud Init Script for NiftyCloud (http://cloud.nifty.com/)
# 2016/09/30 @ysaotome
(
#===============================================
# Settings
#===============================================
##rootのパスワード
ROOT_PASSWORD='hoge##123'
@shyouhei
shyouhei / gist:0b7dab3e75bfbf96f895
Created March 31, 2015 15:26
新社会人の人が留意すべき事項

新社会人に必須である:

  • 勤務先との書面による「労働契約」。業務委託契約等NG。
  • 多寡を問わず毎月払われる給料。遅配等論外である。
  • 健康保険。
  • 労災保険。
  • 雇用保険。
  • 三六協定。
  • 年次有休。
  • 育児休業の制度があり取得者がいる会社に勤務する。
rpmbuild用のvagrant環境を用意する。
以下、vagrant環境にて実施。
vagrant: CentOS-6.5-x86_64-v20140110.box
rpmbuild環境の構築
# yum groupinstall "Development tools"
# yum install rpmdevtools createrepo yum-utils
# rpmdev-setuptree
# cd ~/rpmbuild/SOURCES/
# wget https://www.kernel.org/pub/software/scm/git/git-2.3.0.tar.gz