Skip to content

Instantly share code, notes, and snippets.

View satoshi-iwashita's full-sized avatar

satoshi-iwashita

  • 02:27 (UTC +09:00)
View GitHub Profile
@Epictetus
Epictetus / gist:3386858
Created August 18, 2012 13:28 — forked from nakunaru/gist:3367129
PostgreSQLのデータファイル名を確認する方法
PostgreSQLでテーブルのデータファイル名を確認する方法。
PostgreSQLでは、1テーブル/1インデックス毎に1ファイルが割り当てられる。
ディスク容量にあまり余裕がない場合などに、大きなファイルを持つテーブルを、
別ディスクに移動させたければ、
ALTER TABLE 表名 SET TABLESPACE テーブルスペース名;
などとして別領域へ移動させたい場合がある。
しかし、ファイル名には一意な数値が使用されているため、どのファイルがどのテーブルの
ものなのかパッと見では判別できない。
@mattratleph
mattratleph / vimdiff.md
Last active July 18, 2024 15:03 — forked from roothybrid7/vimdiff_cheet.md
vimdiff cheat sheet

vimdiff cheat sheet

##git mergetool

In the middle file (future merged file), you can navigate between conflicts with ]c and [c.

Choose which version you want to keep with :diffget //2 or :diffget //3 (the //2 and //3 are unique identifiers for the target/master copy and the merge/branch copy file names).

:diffupdate (to remove leftover spacing issues)

:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)

@sonots
sonots / fluentd_hacking_guide.md
Last active August 30, 2021 05:57
Fluentd ソースコード完全解説 (v0.10向け)

Fluentd ソースコード完全解説

英題:Fluentd Hacking Guide

目次

30分しかないため斜線部分は今回省く

  • Fluentd の起動シーケンスとプラグインの読み込み
  • Fluentd の設定ファイルのパース
  • Input Plugin から Output Plugin にデータが渡る流れ

ソフトウェア2段階認証

ソフトウェアトークン生成器による2段階認証(Two-factor authentication)の仕様と実装について。

2段階認証?2要素認証?

Googleではこの認証機能を 2-Step Verification と呼んでいる。一般的には Two-factor authentication、あるいは Multi-factor authentication と呼ばれている様子。

和訳の定義はまちまちだが、

@dramaturg
dramaturg / nxlog.conf
Created November 29, 2014 21:25
nxlog configuration sending event log to fluentd using HTTP
#define ROOT C:\Program Files\nxlog
define ROOT C:\Program Files (x86)\nxlog
Moduledir %ROOT%\modules
CacheDir %ROOT%\data
Pidfile %ROOT%\data\nxlog.pid
SpoolDir %ROOT%\data
LogFile %ROOT%\data\nxlog.log
@kwilczynski
kwilczynski / check.md
Last active July 6, 2023 08:35
Recipe / Role check in Chef

If you want to check whether a node run_list includes a specific role (upon expansion), then you could use role? method on the Node object:

node.role?('name')

Alternatively, you can see whether either would work for you:

node.roles.include?('name')

node.run_list?('role[name]')