GetFieldValuesの落とし穴

上限10000

  • カスタム関数における再帰の制限:トータルで 50,000 まで。コールスタックがサポートしているのは、最大 10,000 コールとなっているため、この制限を超えた場合カスタム関数は「?」を返します。末尾再帰(tail-recursion)は適切な最適化が行われるため、末尾再帰によってコールスタックのサイズが増えることはありません。

mysqlにodbcで接続

  • win8.1になったので設定
    • ドライバ5.27でエラー
      • よくよく調べるとsecure_authのせいらしい

mysqlコマンドライン

SET SESSION old_passwords=0;
GRANT ALL PRIVILEGES ON *.* TO アカウント IDENTIFIED BY 'パスワード' WITH GRANT OPTION;
    • filemaker32ビットでデータソース登録
    • FM内のデータソース

atom環境設定

@font-family-p: "メイリオ";
@font-family-m: "ricty diminished discord";

.tree-view {
  font-family: @font-family-p;
}

// style the background and foreground colors on the atom-text-editor-element
// itself
atom-text-editor {
    font-family: @font-family-m;
}

// To style other content in the text editor's shadow DOM, use the ::shadow
// expression
atom-text-editor::shadow .cursor {

}

.vertical {
  font-family: @font-family-p;
}

.tooltip {
  font-family: @font-family-p;
}

.markdown-preview {
  font-family: @font-family-p;

  h1, h2, h3, h4, h5, h6 {
    font-family: @font-family-p;
  }

  code, tt, atom-text-editor {
    font-family: @font-family-m;
  }
}

httpdログ切り出し秀マクロ

	setcompatiblemode 0x0F;
	searchdown "(GET|POST) /****/****/*********.cgi" , regular, nocasesense, hilight;
	if( ! result )  beep;
	copyline;
	nexthidemaru;
	paste;
	prevhidemaru;
	
  • httpdログをサバ内でviで開くのは危険すぎるのでローカルにDLしてから

grepで切り出してからDLのが楽

cat access_log | grep -e "GET /****/****/*****.cgi" -e "POST /****/****/*****" > adminlog

ftpログの切り出し

cat messages.1 | grep -e "ftp" > ftplog

サバ監視する

ロードアベレージ

uptime | sed -e 's/.*average: //g' -e 's/,//g' | awk '{print $2}'
0.62

プロセス数

ps aux | wc -l
168

mailq

mailq | grep Requests. | awk '{print $5}'
24

スワップメモリkB

vmstat | awk 'NR==3' | awk '{print $3}'
892

ssh接続と失敗

mysql接続と失敗