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
Cyrillic_A = U+0410 | |
Cyrillic_a = U+0430 | |
Cyrillic_BE = U+0411 | |
Cyrillic_be = U+0431 | |
Cyrillic_CHE_descender = U+04B6 | |
Cyrillic_che_descender = U+04B7 | |
Cyrillic_CHE = U+0427 | |
Cyrillic_che = U+0447 | |
Cyrillic_CHE_vertstroke = U+04B8 | |
Cyrillic_che_vertstroke = U+04B9 |
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
ls **/*.avi | xargs -d '\n' -n1 -I {} cnv film -b 500k -dn --log error {} |
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
# find-inodes <path> | |
find $1 -xdev -printf '%h\n' | sort | uniq -c | sort -k1 -n | less |
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
# x 2,4 <file> | |
# printf <text> | x 4,$ | |
sed -n $1p $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
// ECMAScript 6 | |
const flatten = (arr) => | |
// Reducer concat array items to accumulated result | |
// or recursively calls flatten again if the item is an array. | |
arr.reduce((acc, item) => | |
acc.concat(Array.isArray(item) ? flatten(item) // recursively flatten nested array | |
: item), // concat ordinary item | |
[]); // init empty accumulator |