Skip to content

Instantly share code, notes, and snippets.

Avatar

NAGATA Hiroaki handlename

View GitHub Profile
@handlename
handlename / monitors.pl
Created Sep 16, 2021
convert mackerel api result to terraform resource definition
View monitors.pl
#!/usr/bin/env perl
use strict;
use warnings;
use JSON::XS;
use Text::MicroTemplate;
use Data::Dumper;
my $tmts = {};
@handlename
handlename / summary.txt
Created Sep 19, 2016
isucon6q initial benchmark
View summary.txt
+-------+-------+-------+---------+-------+-------+-------+-------+--------+-----------+-----------+-------------+-----------+--------+---------------------------------------------+
| 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 Jun 18, 2016
ergodox keymap 2016-06-18
View keymap.txt
/* 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
hatenablog2hugo to my hugo
View rename.pl
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Path::Class qw{dir};
my $root = dir(".");
for my $year ($root->children) {
View 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
View .tmux.conf
#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
View private.xml
<?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>
View Brewfile
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'
View .gitignore.list
Actionscript
Ada
Agda
Android
AppceleratorTitanium
ArchLinuxPackages
Autotools
Bancha
C++
C
View argv.sh
#!/bin/sh
echo "\$1"
echo $1
echo ""
echo "\${@:3}"
echo ${@:3}
echo ""