Skip to content

Instantly share code, notes, and snippets.

View umireon's full-sized avatar

Kaito Udagawa umireon

View GitHub Profile
2014-11-01 11:46:36,760 [salt ][INFO ][10906] Setting up the Salt Minion "10.0.2.15"
2014-11-01 11:46:36,761 [salt.utils.process][DEBUG ][10906] Created pidfile: /var/run/salt-minion.pid
2014-11-01 11:46:36,761 [salt.config ][DEBUG ][10906] Reading configuration from /etc/salt/minion
2014-11-01 11:46:36,763 [salt.loader ][TRACE ][10906] loading grain in ['/var/cache/salt/minion/extmods/grains', '/usr/lib/python2.7/site-packages/salt/grains']
2014-11-01 11:46:36,763 [salt.loader ][TRACE ][10906] Skipping /var/cache/salt/minion/extmods/grains, it is not a directory
2014-11-01 11:46:36,766 [salt.loader ][TRACE ][10906] Added core.append_domain to grain
2014-11-01 11:46:36,766 [salt.loader ][TRACE ][10906] Added core.fqdn_ip4 to grain
2014-11-01 11:46:36,767 [salt.loader ][TRACE ][10906] Added core.fqdn_ip6 to grain
2014-11-01 11:46:36,767 [salt.loader ][TRACE ][10906] Added core.get_machine_id to grain
2014-11-01 11:46:36,767 [salt.loader ][T
@umireon
umireon / cookpad_to_evernote.user.js
Created October 22, 2014 12:33
クックパッドをEvernoteに送るボタン
// ==UserScript==
// @name クックパッドをEvernoteに送るボタン
// @description クックパッドのレシピにEvernoteでクリップボタンを追加します。
// @namespace https://github.com/umiiro/gmscripts
// @match http://cookpad.com/recipe/*
// @run-at document-end
// @require http://static.evernote.com/noteit.js
/*
Exception: syntax error
@Scratchpad/2:1

Klangは,定義済み関数や定数を提供し,カスタム関数を定義することができる,拡張可能なプログラム電卓の実装である.

構文解析,実行

Klangは,入力された文字列を解釈するために構文解析器を備えている. Klangの構文解析器は,再帰下降法を用い,字句解析と構文解析を同時に行っている. 再起降下法は,文法をプログラムの構造として記述するための方法の一種で,非終端記号の出現を関数呼び出しで表現する,という点で特徴付けられる. Klangの字句解析器は,基本的には1文字を1つの字句としているが,数値や識別子が現れた場合は,その終端までを1つの字句として切り出している.

@umireon
umireon / igloo-test_gdb.txt
Created May 13, 2014 00:36
Debug igloo-test with gdb
gdb bin/igloo-tests
GNU gdb (Ubuntu 7.7-0ubuntu3) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
$ strace bin/igloo-tests
execve("bin/igloo-tests", ["bin/igloo-tests"], [/* 23 vars */]) = 0
brk(0) = 0x280a000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f06446e7000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=31269, ...}) = 0
mmap(NULL, 31269, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f06446df000
close(3) = 0
@umireon
umireon / igloo-test_stacktrace.txt
Created May 12, 2014 17:15
Debug igloo-test with lldb
$ lldb-3.4 bin/igloo-tests
(lldb) run
Process 10885 launched: '/home/umireon/igloo/build/bin/igloo-tests' (x86_64)
Process 10885 stopped
* thread #1: tid = 10885, 0x00007ff6f341fc4a libstdc++.so.6`??? + 10, name = 'igloo-tests', stop reason = invalid address (fault address: 0x8)
frame #0: 0x00007ff6f341fc4a libstdc++.so.6`??? + 10
libstdc++.so.6`??? + 10:
-> 0x7ff6f341fc4a: movq 0x8(%rax), %rax
0x7ff6f341fc4e: cmpq %rdi, %rax
0x7ff6f341fc51: je 0x7ff6f341fc6e ; ??? + 46
$ git bisect start master igloo.1.1.1
Previous HEAD position was c32bb3d... chor(build): added travis configuration file
Switched to branch 'master'
Your branch is up-to-date with 'origin/master'.
Bisecting: 5 revisions left to test after this (roughly 3 steps)
[c32bb3df68e9b2cae436df851a0c17ab201d138e] chor(build): added travis configuration file
$ git bisect run bash -c "rm -fr build && mkdir build && cd build && cmake .. && make"
running bash -c rm -fr build && mkdir build && cd build && cmake .. && make
-- The C compiler identification is Clang 3.4.0
-- The CXX compiler identification is Clang 3.4.0
@umireon
umireon / load-prl_eth.service
Created April 5, 2014 14:28
The proper way to load prl_eth to create bridge device
[Unit]
Description=Load Parallels Desktop's Ethernet Driver
Before=NetworkManager.service
[Service]
Type=oneshot
ExecStart=modprobe prl_eth
[Install]
WantedBy=multi-user.target
@umireon
umireon / file1.txt
Created February 26, 2014 14:22
Packstack --allinone with Fedora 20 (2014/02/26) ref: http://qiita.com/umireon/items/b395a1aa3c0f056472cd
$ sudo sh packstack_allinone_fedora20_20140226.sh
# Install the Parallels Tools
PARALLELS_TOOLS_ISO=prl-tools-lin.iso
mount -o loop $PARALLELS_TOOLS_ISO /media/cdrom
/media/cdrom/install --install-unattended-with-deps --progress
umount /media/cdrom
# Cleanup
# rm $PARALLELS_TOOLS_ISO
echo "start on stopped rc\nexec restart networking" > /etc/init/prl_eth-loaded.conf