- AMIは同一(ami-db710fa3 / Ubuntu Server 16.04 LTS (HVM), SSD Volume Type)
- t2.micro, c4.large, i3.metalでの実行結果とsysctl -aの結果
git clone https://github.com/rigtorp/ipc-bench.git
cd ipc-bench
make
make run
#compdef cargo | |
_cargo() { | |
local context curcontext=$curcontext state line | |
declare -A opt_args | |
local ret=1 | |
local -a common_options | |
_arguments -C \ | |
'(-h --help)'{-h,--help}'[show this help message and exit]' \ |
/* COLUMNS for UNIX 1998.9.13 version */ | |
/* by AKIKAWA,Hisashi (icb49250 @ nifty.ne.jp) */ | |
/* ported to macOS/Linux by Shotaro Aoyama */ | |
#include<stdio.h> | |
#include<stdlib.h> | |
#include<time.h> | |
#include<unistd.h> | |
#include<termios.h> | |
#include<sys/time.h> |
#compdef awslogs | |
_awslogs() { | |
local context curcontext=$curcontext state line | |
declare -A opt_args | |
local ret=1 | |
local -a common_options | |
_arguments -C \ | |
'(-h --help)'{-h,--help}'[show this help message and exit]' \ |
openapi: 3.0.0 | |
info: | |
title: Objects in parameters | |
version: 1.0.0 | |
servers: | |
- url: https://httpbin.org | |
paths: | |
/get: | |
get: | |
parameters: |
git clone https://github.com/rigtorp/ipc-bench.git
cd ipc-bench
make
make run
require "aws-sdk" | |
require "aws-sdk-core/errors" | |
# セキュリティグループで許可するIPアドレスを入れ替えるスクリプトのサンプル | |
# | |
# 許可すべきIPアドレスをホワイトリスト指定しているが、そのリストがときどき変わる | |
# というような場合に利用する。 | |
# | |
# 対象のセキュリティグループに存在するルールを全て削除し、 | |
# new_ip_addressesで指定されたIPアドレスを許可するルールを追加する。 |
# format current command line | |
format-line() { | |
local words=("${(z)BUFFER}") | |
local buf="" | |
for (( i = 1; i <= $#words; i++ )); do | |
if [ $i = 1 ]; then | |
buf=$'\n'"${words[$i]}" | |
else | |
buf="$buf \\"$'\n'" ${words[$i]}" |
accept-line-smart-no-clobber() { | |
setopt localoptions noksharrays | |
local words=("${(z)BUFFER}") | |
local last_word="${words[$#words]}" | |
local last_word2="${words[$(($#words - 1))]}" | |
if [ "$last_word2" = ">" -a -e "$last_word" ]; then | |
for (( i = 1; i <= $#words - 2; i++ )); do | |
local w="${words[$i]}" | |
if [ "$w" = "$last_word" ]; then | |
zle -M "Destination file already exists. If you want to overwrite it, use '>|' instead of '>'." |
require "uri" | |
require "open3" | |
class CurlBuilder | |
def build(base_url:, method: "GET", params: {}, headers: {}, body_filename: nil, verbose: true, silent: true, options: "") | |
url = base_url | |
url += "?" + URI.encode_www_form(params) unless params.empty? | |
cmd = "curl -X #{method} '#{url}'" | |
cmd += " -d '@#{body_filename}'" if body_filename | |
cmd += " " + headers.map {|k, v| "-H '#{k}: #{v}'"}.join(" ") + " " unless headers.empty? |
#!/usr/bin/env ruby | |
# A quick and dirty implementation of an HTTP proxy server in Ruby | |
# because I did not want to install anything. | |
# | |
# Copyright (C) 2009-2014 Torsten Becker <torsten.becker@gmail.com> | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining | |
# a copy of this software and associated documentation files (the | |
# "Software"), to deal in the Software without restriction, including | |
# without limitation the rights to use, copy, modify, merge, publish, |