Skip to content

Instantly share code, notes, and snippets.

View harupong's full-sized avatar

Haruo Nakayama harupong

View GitHub Profile
@harupong
harupong / -
Last active December 30, 2015 02:49
tmux and mouse mode - Dan Lowe http://tangledhelix.com/blog/2012/07/16/tmux-and-mouse-mode/
tmux - Line wrap problems in Mac OS X terminal? http://comments.gmane.org/gmane.comp.terminal-emulators.tmux.user/651
-> http://stackoverflow.com/questions/2119942/how-to-wrap-git-commit-comments/6697519#6697519
-> git log -p した画面で ←→
@harupong
harupong / -
Created November 26, 2013 14:02
pandoc 1.11.1
Compiled with citeproc-hs 0.3.8, texmath 0.6.1.3, highlighting-kate 0.5.3.8.
Syntax highlighting is supported for the following languages:
actionscript, ada, apache, asn1, asp, awk, bash, bibtex, boo, c, changelog,
clojure, cmake, coffee, coldfusion, commonlisp, cpp, cs, css, curry, d,
diff, djangotemplate, doxygen, doxygenlua, dtd, eiffel, email, erlang,
fortran, fsharp, gnuassembler, go, haskell, haxe, html, ini, java, javadoc,
javascript, json, jsp, julia, latex, lex, literatecurry, literatehaskell,
lua, makefile, mandoc, matlab, maxima, metafont, mips, modula2, modula3,
monobasic, nasm, noweb, objectivec, objectivecpp, ocaml, octave, pascal,
@harupong
harupong / file1.txt
Created November 21, 2013 23:23
Created via API
Demo
@harupong
harupong / curl.md
Created November 20, 2013 11:35 — forked from btoone/curl.md

Introduction

An introduction to curl using GitHub's API

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
@harupong
harupong / mysb.md
Last active December 23, 2015 23:39
My SoftBank fetcher for Ruby

My SoftBank fetcher

This script fetchs and returns following data from My SoftBank(マイソフトバンク).

  • network usage
  • more to come, maybe? (bills, points, etc)

You must create/have the account for My SoftBank to use it.

How to use

最新バージョンの rdiscount だと Pro Git 原稿の HTML 変換に失敗する

回避策

rbenv でインストールした ruby にバージョン指定した rdiscount を導入する

$ rbenv version
1.9.3-p194 (set by /home/ubuntu/progit/.ruby-version)
@harupong
harupong / Vagrantfile
Created July 19, 2013 02:59
Windows 上の Vagrant を使って AWS で Ubuntu 13.04 を立ち上げたときの Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "dummy"
# https://github.com/mitchellh/vagrant-aws/issues/28
config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", disabled: true
config.vm.provider :aws do |aws|
aws.access_key_id = "<REDACTED>"

リポジトリごとに公開鍵認証を設定する

  1. 公開鍵認証用のパスフレーズ処理がめんどくさい(「/秘密のファイル/開くな.txtを開いてコピー&ペースト」)
  2. パスフレーズなしにするとセキュリティの懸念が!
  3. パスフレーズなしにして、用途限ったほうがよくね!? ←イマココ!

ということで、GitHub上にホストしてるOctopress用リポジトリ harupong/harupong.github.io 専用の公開鍵認証を設定してみた。

1. 専用の鍵を作る

PHP Markdown Extra 仕様の全訳(意訳) http://michelf.ca/projects/php-markdown/extra/

Markdown拡張仕様であるExtraモードの上記仕様ページを日本語訳したものです。


PHP Markdown Extraは、通常のオリジナルMarkdown記法では利用できない、いくつかの特徴を加えて移植されたPHP Markdown記法の特別なバージョンです。PHP Markdown Extra は、PHP Markdown home pageからダウンロードできます。

このドキュメントでは、PHP Markdown Extraで採用し、Markdown記法に追加した機能や変更を説明しています。このドキュメントを読む前に、オリジナルのMarkdown記法のドキュメントの方に目を通しておくべきでしょう。