This file contains hidden or 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
go tool 6g -S test.go | |
--- prog list "InvertedSlice.Len" --- | |
0000 (test.go:17) TEXT InvertedSlice.Len+0(SB),$0-32 | |
0001 (test.go:17) MOVQ s+8(FP),BX | |
0002 (test.go:17) MOVQ BX,.noname+24(FP) | |
0003 (test.go:17) RET , | |
--- prog list "InvertedSlice.Swap" --- | |
0004 (test.go:18) TEXT InvertedSlice.Swap+0(SB),$0-40 |
This file contains hidden or 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
go test -bench=.* | |
testing: warning: no tests to run | |
PASS | |
BenchmarkSort 5000000 707 ns/op | |
BenchmarkShellSort 5000000 603 ns/op |
This file contains hidden or 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
go test -bench=. | |
PASS | |
BenchmarkSortString1K 5000 386508 ns/op | |
BenchmarkSortInt1K 10000 194999 ns/op | |
BenchmarkSortInt64K 100 19355025 ns/op | |
ok _/usr/local/code/timsort 9.003s | |
go test -run=TestSortBM | |
PASS | |
ok _/usr/local/code/timsort 0.607s |
This file contains hidden or 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
// func GetCpuForThread() uint64 | |
TEXT ·GetCpuForThread(SB),7,$0 | |
MOVQ $0xB,AX | |
XORQ CX,CX | |
CPUID | |
MOVQ DX,ret+0(FP) | |
RET |
This file contains hidden or 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
from Crypto.PublicKey import RSA | |
import binascii | |
badKey="""-----BEGIN RSA PRIVATE KEY----- | |
MIIC2gIBAAKBgDfABK8+joDLdbFTDJ+y3PTTzkqCi1L2qEjgxdg1iyZshJTeKUck | |
SYVyKBeOBtB3FwwqXVa6iNEHJeLFewFE6ulEOIcatVp11Zg0ibMfnqTivbd6t8/z | |
3KzqrFksg9xQiicMactmTqFkm8ro5ODc2NTQzMjEwLy4tLCslBOCOVHxAgMBAAEC | |
gYATW12FB2BtQbecmSxh6rWjYENZRZhgdvoZS8oF9xlYfwdNtRF5/RR1/BwFia++ | |
BAuBktgTu/KzORsjcNPzrd0uTCbTG6hW8YPK2ROVOOeAMHek8Nl3+SW5wdePKuWw | |
MdjDDjqxXDns+ZC1d2Cpz5V+x+2znOYL0bsEKei0sWl7LQKBgDfABK8+joDLdbFT |
This file contains hidden or 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
$curl -s http://www.theregister.co.uk/Design/page/hub/gchq-enigma2013/img/image/comp3.jpg | xxd -g0 | grep ffd8ff | |
0000000: ffd8ffe000104a4649460001010100c8 ......JFIF...... | |
000cbd0: 401fffd9ffd8ffe000104a4649460001 @.........JFIF.. | |
$ curl -s -r 52180- http://www.theregister.co.uk/Design/page/hub/gchq-enigma2013/img/image/comp3.jpg > 4.jpg |
This file contains hidden or 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
--Total bytes used for nodes with LedgerSequence>=32570 | |
SELECT MIN(Ledger),MAX(Ledger),FORMAT(SUM(Length),0) FROM headers WHERE Ledger>=32570; | |
+-------------+-------------+-----------------------+ | |
| MIN(Ledger) | MAX(Ledger) | FORMAT(SUM(Length),0) | | |
+-------------+-------------+-----------------------+ | |
| 32570 | 6234456 | 435,232,146,456 | | |
+-------------+-------------+-----------------------+ | |
1 row in set (3 min 49.36 sec) |
This file contains hidden or 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
ATTACH DATABASE 'ec1/hashnode.db' AS ec1; | |
ATTACH DATABASE 'ec2/hashnode.db' AS ec2; | |
ATTACH DATABASE 'ec3/hashnode.db' AS ec3; | |
ATTACH DATABASE 'db_old.1/hashnode.db' AS db1; | |
ATTACH DATABASE 'db_old.2/hashnode.db' AS db2; | |
ATTACH DATABASE 'db.3/hashnode.db' AS db3; | |
SELECT HEX(OBJECT) | |
FROM( | |
SELECT 'ec1' AS Source,* FROM ec1.CommittedObjects |
This file contains hidden or 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
7B6226018FD59FBF988E045BBF4A4D457883F3B81BEA941B54AB2F8983BEA505:54584E0012000022000100002400000001614000082F79CD900068400000003B9ACA0073210330E7FC9D56BB25D6893BA3F317AE5BCF33B3291BD63DB32654A313222F7FD020744630440220196959B245C76126056B7654A44E541B9218BBE5447B22D8F70D6D1F061600C502203C9C490085685D94EE35B5705C333F83017CA62C65FA4E220EE557215079F97D8114B5F762798A53D543A014CAF8B297CFF8F2F937E88314C06883DA16983A0289DFAC996C491D8F8E8FD996 | |
B6EC3A86F5850AAE97CCBBA44CA5A59E918BBD77E973918C150EBA949BA0E140:54584E001200002200010000240000000261401C6CDDFAD9100068400000000000000A73210330E7FC9D56BB25D6893BA3F317AE5BCF33B3291BD63DB32654A313222F7FD02074463044022032751BF8FF743E668C321FBB8688C788608B93CACF09A7798B7EC50FA76CDADA0220623EE19763363D0FAFC948414DDA4516CD56627A39C76AA7DD4822C119363D928114B5F762798A53D543A014CAF8B297CFF8F2F937E88314C06883DA16983A0289DFAC996C491D8F8E8FD996 | |
3792284EACC486632AD0426A8162516718E3F5753B9B79C7D57A916676F683B6:54584E00120000220001000024000000036140000000001E848068400000003B9ACA0073210330E7FC9 |
This file contains hidden or 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
lz4cat dump.lz4|LC_ALL=C gfgrep -f wanted > found |