システム構成に使えるicon集2016

個人的な興味の範囲で(だからMS系はない)

エンジニアのためのPowerPoint再入門講座 伝えたいことが確実に届く“硬派な資料”の作り方

エンジニアのためのPowerPoint再入門講座 伝えたいことが確実に届く“硬派な資料”の作り方

mysqlのalter文チートシート

カラムの追加、変更、削除

そのまま追加

alter table hoge_table 
add hoge_description varchar(128)
;

先頭に追加

alter table hoge_table 
add hoge_description varchar(128) first
;

なんかのカラムの後に追加

alter table hoge_table 
add hoge_description varchar(128)  after a_flag
;

変更

alter table hoge_table 
change hoge_description hoge_description_old varchar(255) 
;

削除

alter table hoge_table 
drop hoge_description
;

index作成、削除

作成

alter table hoge_table
add index hoge_idx(`a_flag`,`b_flag`)
;

削除

alter table hoge_table
drop index hoge_idx
;

mysqlで時間かかってるクエリをまとめてkill

↓はshow full processlistとおなじ

SELECT * FROM information_schema.PROCESSLIST;

秒数を指定

SELECT GROUP_CONCAT(ID) FROM information_schema.PROCESSLIST WHERE TIME > [秒数];

こんな感じの結果がくる

+------------------+
| group_concat(ID) |
+------------------+
| 101,102,103             |
+------------------+

mysqladminでまとめてkill

mysqladmin kill 101,102,103 -h hogehoge -u fugafuga

世界は平和になった

エキスパートのためのMySQL[運用+管理]トラブルシューティングガイド

エキスパートのためのMySQL[運用+管理]トラブルシューティングガイド

El Capitanにhomebrewでnginx入れる

インストール

$ brew install nginx

起動

$ nginx

停止

$ nginx -s stop

デフォルト設定ファイル

/usr/local/etc/nginx/nginx.conf

デフォルトディレクト

/usr/local/Cellar/nginx/バージョン

デフォルトログディレクト

/usr/local/var/log/nginx/*.log

デフォルトページ

http://127.0.0.1:8080/

nginx実践入門 (WEB+DB PRESS plus)

nginx実践入門 (WEB+DB PRESS plus)

IT系の勉強会探すサイト2016

今は更新が止まってしまいましたが、IT勉強会カレンダーには感謝してもしきれません。

IT業界を楽しく生き抜くための「つまみぐい勉強法」 (技評SE選書)

IT業界を楽しく生き抜くための「つまみぐい勉強法」 (技評SE選書)

mozilla/html5-lintをコマンドで実行

pythonもあるけど、gulp taskで。

参考

https://www.npmjs.com/package/gulp-html5-lint

流れ

前提

gulp taskを走らせられる環境にしておく

やること

npmで導入

npm install --save-dev gulp-html5-lint

gulpfile.jsを作成

サンプル

var gulp = require('gulp');
var html5Lint = require('gulp-html5-lint');

gulp.task('html5-lint', function() {
    return gulp.src('./*.html')
                  .pipe(html5Lint());
});

実行例

カレントディレクトリのhtmlファイルに対してlintをかけている。

$ gulp html5-lint

[13:33:06] Using gulpfile ~/xxx/work/gulpfile.js
[13:33:06] Starting 'html5-lint'...
[13:33:08] 'html5-lint' errored after 2.31 s
[13:33:08] Error in plugin 'gulp-html5-lint'
Message:

error: Almost standards mode doctype. Expected “<!DOCTYPE html>”.
    at /Users/xxx/work/xxx.html:2:40

フロントエンドエンジニアのための現在とこれからの必須知識

フロントエンドエンジニアのための現在とこれからの必須知識