This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -n "$DESKTOP_SESSION" ];then | |
eval $(gnome-keyring-daemon --start) | |
export SSH_AUTH_SOCK | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SET /P var="backup? (Y/N) " | |
echo %var% | |
IF %var% == "N" GOTO END | |
set logfile=".\backup_%date:~0,4%-%date:~5,2%-%date:~8,2%.log" | |
robocopy "src" "dst" /MIR /R:2 /W:2 /XJD /XJF /FFT /256 /E /NP /TEE /LOG+:"%logfile%" | |
:END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo hoge | |
sleep 10 | |
echo foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error: {MIKUTTER_DIR}/core/retriever.rb:207:in `rescue in findbyid': ArgumentError | |
from {MIKUTTER_DIR}/core/utils.rb:204:in `type_strict' | |
from {MIKUTTER_DIR}/core/lib/weakstorage.rb:186:in `[]' | |
from {MIKUTTER_DIR}/core/retriever.rb:399:in `findbyid' | |
from {MIKUTTER_DIR}/core/retriever.rb:340:in `findbyid_timer' | |
from {MIKUTTER_DIR}/core/retriever.rb:197:in `block (2 levels) in findbyid' | |
from {MIKUTTER_DIR}/core/retriever.rb:196:in `each' | |
from {MIKUTTER_DIR}/core/retriever.rb:196:in `block in findbyid' | |
from {MIKUTTER_DIR}/core/retriever.rb:192:in `catch' | |
from {MIKUTTER_DIR}/core/retriever.rb:192:in `findbyid' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'unimidi' | |
dev = UniMIDI::Output.gets.open | |
def itocol(num) | |
n = (16 * (num / 4 % 4)) + (num % 4) + 12 | |
p n | |
n | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error: Some fatal warnings were triggered (3 occurrences) | |
*** omake: 1109/1203 targets are up to date | |
*** omake: failed (32.74 sec, 234/234 scans, 296/415 rules, 697/2149 digests) | |
*** omake: targets were not rebuilt because of errors: | |
src/env/omake_env.cmx | |
depends on: src/env/omake_env.ml | |
src/env/omake_env.o | |
depends on: src/env/omake_env.ml | |
Makefile:31: recipe for target 'all' failed | |
make: *** [all] Error 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
status key command | |
Composition Backspace Backspace | |
Conversion Backspace Cancel | |
Precomposition Backspace Revert | |
Composition Ctrl [ Cancel | |
Conversion Ctrl [ Cancel | |
Composition Ctrl @ ConvertToHalfAlphanumeric | |
Conversion Ctrl @ ConvertToHalfAlphanumeric | |
Precomposition Ctrl Backspace Undo | |
Prediction Ctrl Delete DeleteSelectedCandidate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Section "InputClass" | |
Identifier "Trackpoint Wheel Emulation" | |
MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device" | |
MatchDevicePath "/dev/input/event*" | |
Option "EmulateWheel" "true" | |
Option "EmulateWheelButton" "2" | |
Option "Emulate3Buttons" "false" | |
Option "XAxisMapping" "6 7" | |
Option "YAxisMapping" "4 5" | |
EndSection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<match target="font"> | |
<edit mode="assign" name="hinting" > | |
<bool>true</bool> | |
</edit> | |
</match> | |
<match target="font" > | |
<edit mode="assign" name="autohint" > |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Amazon で使った金額の合計を出す奴 | |
// | |
// 使い方: | |
// 1. 全部コピーする (右上の Raw をクリックした先でやるのが楽) | |
// 2. Amazon の注文履歴ページ ( https://www.amazon.co.jp/gp/css/order-history/ ) を開く | |
// 3. F12 または 右クリ→要素の検証 とかで出てくる開発者ツールのコンソール (JavaScript REPL) にペースト | |
// 4. エンターで実行 | |
// (Firefox はなんか allow pasting とタイプしろみたいなことを言われるので従う) | |
// 5. しばらく待つと alert で合計金額を表示 | |
// |