-
读写混合性能相比5.7有很大提升
-
高竞争场景的性能有很大提升
-
不支持query cache了
-
只有innodb支持分区(PARTITION)
-
expire_logs_days废弃了,使用binlog_expire_logs_seconds
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
package main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
"bufio" | |
) | |
func main() { |
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
package main | |
// #include <stdlib.h> | |
// #include "wrapper.c" | |
import "C" | |
import "unsafe" | |
import "fmt" | |
func read(filename string) string { | |
f := C.CString(filename) |
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
// https://blogs.oracle.com/janp/entry/how_the_scp_protocol_works | |
package main | |
import ( | |
"fmt" | |
"golang.org/x/crypto/ssh" | |
) | |
const privateKey = `content of id_rsa` |
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
package main | |
import ( | |
"crypto" | |
"crypto/rsa" | |
"crypto/sha1" | |
"crypto/x509" | |
"encoding/base64" | |
"fmt" | |
) |
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
#!/bin/bash | |
#脚本文件名: tc2 | |
######################################################################################### | |
#用TC(Traffic Control)解决ADSL宽带速度技术 Ver. 1.0 by KindGeorge 2004.12.27 # | |
######################################################################################### | |
#此脚本经过实验通过,更多的信息请参阅http://lartc.org | |
#tc+iptables+HTB+SFQ | |
# | |
#一.什么是ADSL? ADSL(Asymmetric Digital Subscriber Loop,非对称数字用户环路) | |
#用最简单的话的讲,就是采用上行和下行不对等带宽的基于ATM的技术. |
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
import struct | |
from Crypto.Cipher import AES | |
LOGIN_KEY_LEN = 20 | |
MY_LOGIN_HEADER_LEN = 24 | |
MAX_CIPHER_STORE_LEN = 4 | |
f = open(".mylogin.cnf", "rb") | |
f.seek(4) | |
b = f.read(LOGIN_KEY_LEN) |
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
import zipfile | |
import pathlib | |
import chardet | |
def unzip(file, path): | |
z = zipfile.ZipFile(file) | |
detector = chardet.UniversalDetector() | |
for i in z.infolist(): | |
if i.flag_bits & 0x800 == 0: | |
detector.feed(i.filename.encode("cp437")) |
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
package main | |
// https://blog.kowalczyk.info/article/Jl3G/https-for-free-in-go.html | |
// To run: | |
// go run main.go | |
// Command-line options: | |
// -production : enables HTTPS on port 443 | |
// -redirect-to-https : redirect HTTP to HTTTPS | |
import ( |
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
package main | |
import ( | |
"crypto/tls" | |
"errors" | |
"log" | |
"net" | |
"net/smtp" | |
) |
NewerOlder