Skip to content

Instantly share code, notes, and snippets.

View 10sr's full-sized avatar
👀
I may be slow to respond.

10sr 10sr

👀
I may be slow to respond.
View GitHub Profile
Patch to build mozc_emacs_helper to use GoogleJapaneseInput on Mac.
Can be applied to https://github.com/google/mozc afb03dd.
Modified from https://gist.github.com/koshian/044eaf7a03027ed37a83
- http://koshian.hatenablog.com/entry/2016/02/19/134015
diff --git a/src/build_mozc.py b/src/build_mozc.py
old mode 100644
new mode 100755
index 46fa082..e90a395
@10sr
10sr / stooge_loader.rb
Created July 21, 2018 04:42 — forked from bowsersenior/stooge_loader.rb
A demo of YAML anchors, references and nested values
require 'rubygems'
require 'yaml'
# A demonstration of YAML anchors, references and handling of nested values
# For more info, see:
# http://atechie.net/2009/07/merging-hashes-in-yaml-conf-files/
stooges = YAML::load( File.read('stooges.yml') )
# => {
# "default" => {

Keybase proof

I hereby claim:

  • I am 10sr on github.
  • I am 10sr (https://keybase.io/10sr) on keybase.
  • I have a public key whose fingerprint is DBAF FDA8 D791 A763 1461 3674 B13B D9CC DD1B FC49

To claim this, I am signing this object:

@10sr
10sr / AsciidocCheatsheet.adoc
Created June 6, 2016 03:15 — forked from powerman/AsciidocCheatsheet.adoc
Asciidoc cheatsheet for GitHub

Asciidoc cheatsheet for GitHub

@10sr
10sr / a.md
Last active September 27, 2015 13:23

||| |:---:|:---:|:---:| |1|2|3|

ヘッダのない表を作る方法はないのだろうか…

@10sr
10sr / a.warning.md
Last active August 31, 2015 15:30
Hadoop warning
  • /proc/sys/vm/swappiness を 0 に設定することをお勧めします。現在の設定は 60 です。sysctl コマンドを使用して、この設定を実行時に変更します。この設定が再起動後に保存されるよう /etc/sysctl.conf を編集します。インストールは続行できますが、スワッピングが原因でホストの状態に問題が発生したと Cloudera Manager からレポートされる可能性があります。以下のホストが影響を受けています
  • Transparent Huge Page が有効化されており、重大なパフォーマンスの問題が発生する可能性があります。リリース「CentOS release 6.7 (Final)」およびバージョン「2.6.32-504.el6.x86_64」のカーネルが有効化され、「[always] madvise never」に設定されており、デフラグが「[always] madvise never」に設定されています。「echo never > /sys/kernel/mm/redhat_transparent_hugepage/defrag」を実行して、これを無効化します。次に、システ ムの再起動時に設定されるように、/etc/rc.local などの init スクリプトに同じコマンドを追加します。または、RHEL 6.5 以降にアップグレードします。これらのバージョンにはこのバグは存在しません。次のホストが影響を受けます:
@10sr
10sr / a.md
Last active August 29, 2015 14:24
django heroku アプリつくる
@10sr
10sr / a.md
Last active February 24, 2020 15:31
.profile, .bashrc, .bash_profile... どこに何を書くか
@10sr
10sr / a.md
Last active August 29, 2015 14:11
Markdown test, especially for nests and indenting

Markdown Test

  • A element

  • B element

    Text.

  • C element