Skip to content

Instantly share code, notes, and snippets.

@cond
cond / memos.md
Last active May 6, 2017 16:07
メモ置き場

メモ置き場

たまにしか実行しない事の備忘。

sshキーの暗号強度とフィンガープリントを表示する

$ ssh-keygen -l -f ~/.ssh/id_rsa
2048 SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx foo@bar (RSA)

フィンガープリントをMD5形式で表示するには-E MD5を指定する

@cond
cond / gist:4d2370e3ce29abd4f70acc42be8e8c3f
Created May 5, 2017 03:31
Gitで起動するエディタをemacsにする
$ git config --global core.editor emacs
@cond
cond / gist:e17c8c818438262929576124110d3f98
Created November 5, 2016 11:41
AWS EC2 t2.microインスタンス UnixBench実行結果
UnixBench実行結果
AWS EC2 t2.micro
(CPUクレジットが十分にたまっている状態で実行)
1CPU 1810.9
----------------------------------------------------------------------
# # # # # # # ##### ###### # # #### # #
@cond
cond / gist:7b61c7337fcbcdc4250b
Created January 15, 2016 05:30
My ~/.gitconfig
[user]
name = Foo Bar
email = foobar@example.com
[color]
ui = auto
[alias]
co = checkout
ci = commit
st = status
br = branch
@cond
cond / test.yml
Created October 22, 2015 16:52
Ansible playbook sample
- hosts: all
tasks:
- name: Execute uptime command
command: uptime
register: out
- debug: var=out.stdout_lines
- name: Execute 'apt-get update'
command: apt-get update
- name: Install basic commands
apt: name=git state=installed