Skip to content

Instantly share code, notes, and snippets.

@handlename
handlename / monitors.pl
Last active March 10, 2022 00:36
convert mackerel api result to terraform resource definition
#!/usr/bin/env perl
use strict;
use warnings;
use JSON::XS;
use Text::MicroTemplate;
use Data::Dumper;
my $env = $ARGV[0];
my $tmts = {};
@handlename
handlename / summary.txt
Created September 19, 2016 01:38
isucon6q initial benchmark
+-------+-------+-------+---------+-------+-------+-------+-------+--------+-----------+-----------+-------------+-----------+--------+---------------------------------------------+
| COUNT | MIN | MAX | SUM | AVG | P1 | P50 | P99 | STDDEV | MIN(BODY) | MAX(BODY) | SUM(BODY) | AVG(BODY) | METHOD | URI |
+-------+-------+-------+---------+-------+-------+-------+-------+--------+-----------+-----------+-------------+-----------+--------+---------------------------------------------+
| 77 | 1.365 | 8.145 | 353.984 | 4.597 | 1.365 | 4.638 | 7.168 | 1.417 | 9260.000 | 25916.000 | 1303238.000 | 16925.169 | GET | / |
| 69 | 0.001 | 2.999 | 79.518 | 1.152 | 0.001 | 1.033 | 2.999 | 1.021 | 5.000 | 237.000 | 2862.000 | 41.478 | POST | /login |
| 43 | 0.004 | 3.000 | 60.401 | 1.405 | 0.004 | 1.379 | 3.000 | 1.059 | 0.000 | 238.000 | 2086.000 |
@handlename
handlename / keymap.txt
Created June 18, 2016 00:26
ergodox keymap 2016-06-18
/* Keymap 0: Base layer
*
* ,--------------------------------------------------. ,--------------------------------------------------.
* | ` | 1 | 2 | 3 | 4 | 5 | +L3 | | +L3 | 6 | 7 | 8 | 9 | 0 | - |
* |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
* | Tab | Q | W | E | R | T | +L2 | | +L2 | Y | U | I | O | P | [ |
* |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
* | LCtrl | A | S | D | F | G |------| |------| H | J | K | L | ; | ' |
* |--------+------+------+------+------+------| Esc | | Ent |------+------+------+------+------+--------|
* | LShift | Z | X | C | V | B | | | | N | M | , | . | / | RShift |
@handlename
handlename / rename.pl
Created May 24, 2016 04:40
hatenablog2hugo to my hugo
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Path::Class qw{dir};
my $root = dir(".");
for my $year ($root->children) {
@handlename
handlename / sVimrc
Last active October 21, 2015 01:11
sVimrc
let scrollduration = 20
let scrollstep = 120
let hintcharacters = "aoeuidhtns"
let blacklists = ["*://mail.google.com/*", "*://inbox.google.com/*", "*://www.google.com/calendar/*", "*://calendar.google.com/*"]
map "e" createHint
map "shift+e" createTabbedHint
map "shift+u" scrollFullPageUp
#set-option -g default-shell /usr/local/bin/zsh
set-option -g default-command "reattach-to-user-namespace -l /usr/local/bin/zsh"
## bindings
# prefix
unbind C-b
set-option -g prefix C-t
bind-key C-t send-prefix
<?xml version="1.0"?>
<root>
<item>
<name>Dvorak HN</name>
<identifier>private.dvorak_hn</identifier>
<!-- dvorak -->
<autogen>__KeyToKey__ KeyCode::Q, KeyCode::QUOTE</autogen>
<autogen>__KeyToKey__ KeyCode::W, KeyCode::COMMA</autogen>
<autogen>__KeyToKey__ KeyCode::E, KeyCode::DOT</autogen>
tap 'caskroom/cask'
tap 'caskroom/fonts'
tap 'homebrew/boneyard'
tap 'homebrew/brewdler'
tap 'homebrew/nginx'
tap 'homebrew/versions'
brew 'autoconf'
brew 'awscli'
brew 'brew-cask'
brew 'cmake'
Actionscript
Ada
Agda
Android
AppceleratorTitanium
ArchLinuxPackages
Autotools
Bancha
C++
C
#!/bin/sh
echo "\$1"
echo $1
echo ""
echo "\${@:3}"
echo ${@:3}
echo ""