- SC1000
$
is not used specially and should therefore be escaped. - SC1001 This
\o
will be a regular 'o' in this context. - SC1003 Want to escape a single quote?
echo 'This is how it'\''s done'
. - SC1004 This backslash+linefeed is literal. Break outside single quotes if you just want to break the line.
- SC1007 Remove space after
=
if trying to assign a value (or for empty string, usevar=''
... ). - SC1008 This shebang was unrecognized. ShellCheck only supports sh/bash/dash/ksh. Add a 'shell' directive to specify.
- SC1009 The mentioned parser error was in ...
- SC1010 Use s
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 9.
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
"name","link","description" | |
"SC1000","https://github.com/koalaman/shellcheck/wiki/SC1000","$ is not used specially and should therefore be escaped." | |
"SC1001","https://github.com/koalaman/shellcheck/wiki/SC1001","This `\o` will be a regular 'o' in this context." | |
"SC1003","https://github.com/koalaman/shellcheck/wiki/SC1003","Want to escape a single quote? echo 'This is how it'\\''s done'." | |
"SC1004","https://github.com/koalaman/shellcheck/wiki/SC1004","This backslash+linefeed is literal. Break outside single quotes if you just want to break the line." | |
"SC1007","https://github.com/koalaman/shellcheck/wiki/SC1007","Remove space after = if trying to assign a value (or for empty string, use var='' ... )." | |
"SC1008","https://github.com/koalaman/shellcheck/wiki/SC1008","This shebang was unrecognized. ShellCheck only supports sh/bash/dash/ksh. Add a 'shell' directive to specify." | |
"SC1009","https://github.com/koalaman/shellcheck/wiki/SC1009","The mentioned parser error was in ..." | |
"SC1010","https://github.com/koalaman/sh |
コマンドラインツール ffmpeg の有用なコマンド:
FFmpeg ダウンロード: https://www.ffmpeg.org/download.html
Mastodon が他のインスタンスと情報交換をする OStatus API の使い方。使ってるだけのユーザは知る必要がない裏側の話。
Mastodon インスタンスに対して、RFC6415 が規定する /.well-known/host-meta
というパスを要求すると以下の XML が返ってくる.
<?xml version="1.0"?>
<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
<Link rel="lrdd" type="application/xrd+xml" template="https://[MASTODON_HOST]/.well-known/webfinger?resource={uri}"/>
</XRD>
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
aa Afar | |
ab Abkhazian | |
af Afrikaans | |
ak Akan | |
sq Albanian | |
am Amharic | |
ar Arabic | |
an Aragonese | |
hy Armenian | |
as Assamese |
[Gehirn RS2] SSHキーをBitbucketに登録してgitコマンドを使えるようにする - Qiita
http://qiita.com/MegaBlackLabel/items/54f2a874acda6cb763f0
ssh-keygen
の -C
オプションはコメント。指定しないと ユーザー名@コンピュータ名
のようになる。
-f
オプションで保存するファイル名を指定する。
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
Fix:バグ修正 | |
Add:機能追加 | |
Modify:機能修正 | |
Change:仕様変更 | |
Clean:整理(リファクタリング) | |
Remove:削除 | |
Upgrade:バージョンアップ | |
Revert:変更取り消し |
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
var enums = {}; | |
enums.keyboard = { | |
BACKSPACE: 8, | |
TAB: 9, | |
ENTER: 13, | |
SHIFT: 16, | |
CTRL: 17, | |
ALT: 18, | |
PAUSE: 19, | |
CAPS_LOCK: 20, |
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
class Symbol | |
def call(*argv) | |
case | |
when block_given? | |
-> obj { self.to_proc[obj, *argv, &proc] } | |
when argv.size > 0 | |
-> obj { self.to_proc[obj, *argv] } | |
else | |
self.to_proc | |
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
#!/usr/bin/env ruby | |
# | |
# .git/hooks/prepare-commit-msg に配置する | |
# RAILS用コミットメッセージ追加 | |
if ARGV[1] && ARGV[1].include?("message") | |
files = `git diff --cached --name-only` | |
change_files = files.split("\n") |
NewerOlder