Skip to content

Instantly share code, notes, and snippets.

View nekoruri's full-sized avatar
🤔
にゃーん

@nekoruri nekoruri

🤔
にゃーん
View GitHub Profile
@nekoruri
nekoruri / AWS大好き男に「どの機能が好き?」と訊ねられたとき、女はどう答えたらいいの?
Last active January 25, 2021 15:13
AWS大好き男に「どの機能が好き?」と訊ねられたとき、女はどう答えたらいいの?
あ、まず前提として、
貴女がAWS大好き男を夢中にさせることが、
はたして貴女を幸福にするかどうか、それはまた別問題だけれど。
とはいえ、AWS大好き男たちは玉石混交ながら、
SIer系の超上流な男なども多く、
したがって、釣り師たる女たちにとっては、
なかなかあなどれない釣り場です。
では、AWS大好き男に「どの機能が好き?」と訊ねられたとき、
@nekoruri
nekoruri / class.cchart.php.diff
Last active December 20, 2015 13:19
Zabbixのグラフで日付表示時に時刻を省略して縦幅を縮めるパッチ。Zabbix 2.0.6 にて動作確認済み。 /usr/share/zabbix とかに行って patch -p0 で食わせてください。
--- include/classes/class.cchart.php.orig 2013-08-02 07:55:09.131739793 +0000
+++ include/classes/class.cchart.php 2013-08-02 07:58:21.199739718 +0000
@@ -34,7 +34,7 @@
$this->skipRightScale = 0; // in case if right axis should be drawn but doesn't contain any data
$this->ymin_itemid = 0;
$this->ymax_itemid = 0;
- $this->legendOffsetY = 90;
+ $this->legendOffsetY = 50;
$this->percentile = array(
'left' => array(
@nekoruri
nekoruri / redis_bgsave.sh
Last active December 21, 2015 02:59
RedisのBGSAVEコマンドを実行し、LASTSAVEが更新されるのを待つ。 タイムアウト時間を超えたら exit status 1 で終了する。
#!/bin/bash
# RedisのBGSAVEコマンドを実行し、LASTSAVEが変わる(=dump.rdbが更新される)のを待つ。
# タイムアウト時間を超えたら exit status 1 で終了する。
TIMEOUT=30
# Timeout handler
# http://stackoverflow.com/questions/1226094/how-to-include-a-timer-in-bash-scripting
set_timer() {
@nekoruri
nekoruri / commonfunc.sh
Last active January 5, 2017 02:41
よく使いそうなbash関数
# DEBUG付いてるときだけデバッグ出力
function debug() { ((DEBUG)) && echo "$*"; }
# タイムスタンプ付き出力
function ts() { echo $(date +'%Y/%m/%d %H:%M:%S')" $1"; }
# タイムスタンプ付きデバッグ出力
function debugts() { debug $(date +'%Y/%m/%d %H:%M:%S')" $1"; }
# ディレクトリの絶対パス
@nekoruri
nekoruri / もう那珂ちゃんのファンやめたい
Last active January 1, 2016 10:19
もう那珂ちゃんのファンやめたい
http://anond.hatelabo.jp/20131226111627
艦隊これくしょんはじめたんだけど、
希望の編成と違う艦ばかりドロップしてて、げんなりしている。
うちは空母狙いで、秘書艦とも良好な関係築けて
赤城さんが入渠中でこれから瑞鶴も入渠しようとしているから
活躍できるような空母つくろうって燃えてたんだけど、
建造したらおかしなことになった。
@nekoruri
nekoruri / gist:9130566
Created February 21, 2014 08:16
host -a io. 8.8.8.8
Trying "io"
;; Truncated, retrying in TCP mode.
Trying "io"
Using domain server:
Name: 8.8.8.8
Address: 8.8.8.8#53
Aliases:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9002
;; flags: qr rd ra; QUERY: 1, ANSWER: 37, AUTHORITY: 0, ADDITIONAL: 0
# E1,E2 AL
軽巡1 那珂68
重巡・航巡2 利根42、鈴谷40(航巡)
戦艦・航戦1or2 扶桑56、山城41
正規空母・軽空母2 翔鶴11、瑞鶴11、隼鷹47
駆逐艦2 時雨76、島風66
# E3,E4,E5 MI
正規空母3~4 翔鶴46、赤城90、蒼龍35、飛龍28、
高速戦艦2~3 金剛99、比叡127、榛名78
@nekoruri
nekoruri / docker_memo.md
Last active August 29, 2015 14:10
Dockerに関するメモ
@nekoruri
nekoruri / sif_memo.md
Last active August 29, 2015 14:10
スクフェスメモ

スクフェスメモ

収集イベント(マカロン)

以下は細かい作業時間や疲労によるミスを考慮しない概算値です。念のため。

アイテム収集

スクフェス 楽曲時間リストによると、

@nekoruri
nekoruri / recon_growthforecast.sh
Created December 5, 2014 11:02
recon_growthforecast.sh
#!/bin/bash
PATH=/bin:/usr/bin; export PATH
GF_ENDPOINT="http://forecast.example.jp:5125/api"
SERVICE_NAME=$1
SECTION_NAME=$2
if [ -z "$1" -o -z "$2" ]; then