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 ( | |
"bytes" | |
"encoding/hex" | |
"fmt" | |
"math/big" | |
"github.com/ethereum/go-ethereum/common/math" | |
) |
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
{ | |
"groups": {}, | |
"mod_policy": "Admins", | |
"policies": { | |
"Admins": { | |
"mod_policy": "Admins", | |
"policy": { | |
"type": 1, | |
"value": { | |
"identities": [ |
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
{ | |
"payload": { | |
"data": { | |
"config_update": { | |
"channel_id": "acmeChannel", | |
"isolated_data": {}, | |
"read_set": { | |
"groups": { | |
"Application": { | |
"groups": { |
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
{ | |
"payload": { | |
"data": { | |
"config_update": { | |
"channel_id": "acmechannel", | |
"isolated_data": {}, | |
"read_set": { | |
"groups": { | |
"Application": { | |
"groups": { |
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
{ | |
"data": { | |
"data": [ | |
{ | |
"payload": { | |
"data": { | |
"config": { | |
"channel_group": { | |
"groups": { | |
"Consortiums": { |
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
2019-04-25 20:30:49 [PicGo INFO] Before transform | |
2019-04-25 20:30:49 [PicGo INFO] Transforming... | |
2019-04-25 20:30:49 [PicGo INFO] Before upload | |
2019-04-25 20:30:49 [PicGo INFO] Uploading... | |
2019-04-25 20:30:53 [PicGo SUCCESS] | |
https://raw.githubusercontent.com/huahuayu/img/master/20190425203048.png | |
2019-04-25 20:35:44 [PicGo INFO] Before transform | |
2019-04-25 20:35:44 [PicGo INFO] Before upload | |
2019-04-25 20:35:47 [PicGo SUCCESS] | |
https://raw.githubusercontent.com/huahuayu/img/master/20190425203544.png |
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
# Install tmux 2.8 on Centos | |
# install deps | |
yum install gcc kernel-devel make ncurses-devel | |
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
curl -LOk https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz | |
tar -xf libevent-2.1.8-stable.tar.gz | |
cd libevent-2.1.8-stable | |
./configure --prefix=/usr/local |
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 | |
# | |
# Copyright IBM Corp. All Rights Reserved. | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
# if version not passed in, default to latest released version | |
export VERSION=1.4.0 | |
# if ca version not passed in, default to latest released version |
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
type CacheInterface interface { | |
Get(key string) ([]byte, error) | |
Set(key string, value interface{}) error | |
} | |
// Cache implements CacheInterface. | |
type Cache struct { | |
// wrap redis pool connection | |
// or whatever you need | |
} |
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 ( | |
"gpool" | |
"fmt" | |
"net/http" | |
"time" | |
) | |
func main() { |
NewerOlder