curl で10回 time_total 測った平均値(東京から)
curl -kL http://xxx.xxx.xxx.xxx/ -o /dev/null -w "Status: %{http_code}\tTime: %{time_total}\t" 2> /dev/null
| Location | total_time |
|---|---|
| Tokyo | 0.013 |
| <?php | |
| const PASSWORD = '!!!!!sufficiently_long_password!!!!!'; | |
| const CIPHER_METHOD = 'AES-256-CBC'; | |
| function encrypt($str) { | |
| $iv_length = openssl_cipher_iv_length(CIPHER_METHOD); | |
| $iv = mcrypt_create_iv($iv_length, MCRYPT_RAND); | |
| $str = $iv.$str; | |
| $val = openssl_encrypt($str, CIPHER_METHOD, PASSWORD, 0, $iv); |
| require 'barby' | |
| require 'barby/barcode' | |
| require 'barby/barcode/code_128' | |
| require 'barby/outputter/ascii_outputter' | |
| require 'barby/outputter/png_outputter' | |
| require 'pry' | |
| require 'pp' | |
| module Barby | |
| class Codabar < Barcode1D |
| window.pp = (object) -> console.log JSON.stringify(object, null, 2) |
| # Dispatcher | |
| Dispatcher = require('flux').Dispatcher | |
| AppDispatcher = new Dispatcher | |
| # Action | |
| Actions = { | |
| add: (post) -> | |
| AppDispatcher.dispatch | |
| type: 'add' | |
| post: post |
| [global] | |
| ioengine=libaio | |
| direct=1 | |
| invalidate=1 | |
| group_reporting | |
| directory=/home | |
| filename=test.bin | |
| runtime=60 | |
| [Rand-Read-4k-qd32] |
| echo "This script requires superuser access to install rpm packages." | |
| echo "You will be prompted for your password by sudo." | |
| # clear any previous sudo permission | |
| sudo -k | |
| # run inside sudo | |
| sudo sh <<SCRIPT | |
| # add GPG key |
| .CFUserTextEncoding | |
| .DS_Store | |
| .Trash | |
| .bash_history | |
| .cache | |
| .cups | |
| .dropbox | |
| .gem | |
| .gitconfig -> /Users/kkosuge/dotfiles/.gitconfig | |
| .gitignore -> /Users/kkosuge/dotfiles/.gitignore |
| #_logo { | |
| background-image: url(https://slack.global.ssl.fastly.net/22317/img/landing_slack_logo_white.png); | |
| background-size: contain; | |
| background-repeat: no-repeat; | |
| height: 28px; | |
| width: 88px; | |
| } | |
| #_logo img { | |
| display: none; | |
| } |