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
| #!/bin/bash | |
| # Reference https://github.com/microsoft/vscode-remote-release/issues/680 | |
| if [ $# -lt 1 ]; then | |
| echo "Usage: $0 sha" | |
| echo "Demo: $0 26076a4de974ead31f97692a0d32f90d735645c0" | |
| exit 0 | |
| fi | |
| sha=$1 |
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
| MariaDB [phone_property]> show variables like '%log_bin%'; | |
| +----------------------------------+-------+ | |
| | Variable_name | Value | | |
| +----------------------------------+-------+ | |
| | forbid_remote_change_sql_log_bin | ON | | |
| | log_bin | ON | | |
| | log_bin_trust_function_creators | ON | | |
| | sql_log_bin | ON | | |
| +----------------------------------+-------+ | |
| 4 rows in set (0.00 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
| package main | |
| import ( | |
| "bytes" | |
| "compress/flate" | |
| "compress/gzip" | |
| "compress/zlib" | |
| "io/ioutil" | |
| "math/rand" | |
| "testing" |
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
| import jsoniter "github.com/json-iterator/go" | |
| type NotOmitemptyValEncoder struct { | |
| encoder jsoniter.ValEncoder | |
| } | |
| func (codec *NotOmitemptyValEncoder) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream) { | |
| codec.encoder.Encode(ptr, stream) | |
| } |
OlderNewer