Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// List of domains bind to your WorkersProxy. | |
const domain_list = ['https://你的cloudflareWorker应用地址/'] | |
// Website you intended to retrieve for users. | |
const upstream = 'https://需要加速的网站的地址/' | |
// Website you intended to retrieve for users using mobile devices. | |
const upstream_mobile = 'https://需要加速的网站移动端的地址/' | |
// Countries and regions where you wish to suspend your service. |
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 graphene | |
from graphene import String | |
from graphene_sqlalchemy import SQLAlchemyObjectType, SQLAlchemyConnectionField | |
from promise import Promise | |
from promise.dataloader import DataLoader | |
from sqlalchemy import Column, BigInteger, ForeignKey | |
from sqlalchemy.orm import relationship | |
from db import Base, db_session # 这里自己去定义 |
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
Mounting block device in lxc (specifically Proxmox 4) | |
1. Find devices' major & minor ID (need both dev + partition for HDD) | |
# ls -al /dev/sda | |
brw-rw---- 1 root disk 8, 0 Dec 19 11:16 /dev/sda1 | |
# ls -al /dev/sda1 | |
brw-rw---- 1 root disk 8, 1 Dec 19 11:16 /dev/sda1 | |
That's 8,0 for sda and 8,1 for sda1 |