python3 thisScript.py arg1 arg2
arg1: Server password
arg2: Client password
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
# | |
# Generate Certificates for MySQL | |
# | |
DIGEST := sha512 | |
KEY_LEN := 2048 | |
EXPIRE := 90 | |
CA_KEY := ca-key.pem | |
CA_CERT := ca.pem | |
CA_SUBJECT := "/CN=MySQL CA" |
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/sed -f | |
# SUID, GUID, Sticky-bit | |
s/^\(.\)\(..[sS]..[sS]..[tT]\)/\17\2/; t perm | |
s/^\(.\)\(..[sS]..[sS]..[^tT]\)/\16\2/; t perm | |
s/^\(.\)\(..[sS].\{5\}[tT]\)/\15\2/; t perm | |
s/^\(.\)\(..[sS][^sStT]\{6\}\)/\14\2/; t perm | |
s/^\(.\)\([^sS]\{5\}[sS]..[tT]\)/\13\2/; t perm | |
s/^\(.\)\([^sS]\{5\}[sS][^tT]\{3\}\)/\12\2/; t perm | |
s/^\(.\)\([^sS]\{8\}[tT]\)/\11\2/; t perm |
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
const iter = (function(){ | |
// 元のGenerator.prototype | |
const GeneratorProto = ({*g(){}}).g().constructor.prototype; | |
// 拡張してmap,filterを付与したprototype | |
const ExtendedGeneratorProto = Object.setPrototypeOf({ | |
map (func, thisArg = null) { | |
const iterable = this; | |
return Object.setPrototypeOf(function*() { | |
var i = 0; | |
for (const item of iterable) { |
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
## this is sample | |
COMMANDS: | |
- | | |
id | |
uname -n | |
date | |
- cat /path/to/file | |
ADMIN: true |
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
{ | |
"CustomFilter": { | |
"ls-l": { | |
"Cmd": "perl", | |
"Args": ["/Users/teramako/bin/ls-l-filter.pl", "$QUERY"], | |
"BufferThreshold": 100 | |
} | |
} | |
} |
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
@charset "utf-8"; | |
/* | |
* このファイルを編集して、profile-directory/chrome/userContent.css | |
* としてコピーしてください。 | |
*/ | |
/* | |
* このファイルは、表示するすべての Web ページにスタイルを適用するのに使用 | |
* することができます。 | |
* !important なし規定は、Web ページ作者が何かを設定した場合には、作者の |
Answer of ES6 Quiz
- 2
"func"
see: [9.2.12 SetFunctionName][9.2.12], [12.14.4 Runtime Semantics of AssignmentExpression][12.14.4]
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
/* Usage | |
function * gene() { | |
console.log("iter"); | |
yield 1; | |
console.log("iter"); | |
yield 2; | |
console.log("iter"); | |
yield 3; | |
} | |
var result = gene |
NewerOlder