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
<# | |
.SYNOPSIS | |
DLL 内の Class および Enum メンバーを列挙する | |
.DESCRIPTION | |
対象DLLを読み込み、Class や Enum メンバーと、 | |
その属性(`System.ComponentModel.DescriptionAttribute`)値を列挙します。 | |
.PARAMETER Path | |
対象DLLファイル |
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
/* Usage | |
function * gene() { | |
console.log("iter"); | |
yield 1; | |
console.log("iter"); | |
yield 2; | |
console.log("iter"); | |
yield 3; | |
} | |
var result = gene |
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
' ="SELECT ..... FROM ... WHERE column_A in ("&join(A1:A10,",","'")&")" などと式に使うことを想定 | |
' SQLインジェクション可能だが知らん。 | |
Function join(r As Range, Optional delimiter As String = ",", Optional wrap As String = "'") As String | |
Dim i As Integer | |
Dim result = As String | |
result = wrap & r.Cells(1, 1).Value & wrap | |
For i = 2 To r.rows.Count |
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
$ file HOGEHOGE.zip | |
HOGEHOGE.zip: Bourne-Again shell script text executable | |
$ strings HOGEHOGE.zip | |
#!/bin/bash | |
sed -e '1,/BIGIN HOGEHOGE/d' $0 |sed -e '1,/BIGIN HOGEHOGE/d' > ./test.tar.gz | |
tar zxvf test.tar.gz >/dev/null; | |
chown root aFile bFile cFile | |
chmod 4755 aFile bFile cFile | |
exit 0 | |
#BIGIN HOGEHOGE |
NewerOlder