示例:
RUNAS /trustlevel:"0x20000" powershell
("0x20000"指普通用户)
btrfs subvol create @swap
chattr +C @swap # 禁用Copy On Write
btrfs property set @swap compression none # 禁用压缩
let t = {a: 'zzz'}; | |
t.a instanceof String >>> false!!!!! | |
typeof t.a >>> 'string' |
/*wp-config.php*/ | |
/*设置相对路径*/ | |
define('WP_HOME', 'http://'.$_SERVER['HTTP_HOST']); | |
define('WP_SITEURL', 'http://'.$_SERVER['HTTP_HOST']); | |
/* wp-includes/post.php 注意加注释的地方的$url */ | |
/* 设置图片附件为相对路径 */ | |
function wp_get_attachment_url( $attachment_id = 0 ) { | |
// ... | |
$url = ''; |
First create a mongod config file. e.g.
# mongod.conf
# Where and how to store data.
storage:
dbPath: /data/db
directoryPerDB: true
journal:
enabled: true
$ docker run --name mysql-c1 -d -v /workspace/docking:/workspace/docking mysql/mysql-server
Remember to wait for a few seconds and then continue.
$ docker logs mysql-c1 2>&1 | grep GENERATED # On Windows it's "findstr" instead of "grep"
# Copy that password from output: e.g. GENERATED ROOT PASSWORD: Axegh3kAJyDLaRuBemecis&EShOs
$ docker exec -it mysql-c1 mysql -u root -p
@media only screen and (min-width: 992px) { | |
.flex-left { | |
display: flex; | |
flex-direction: row; | |
} | |
.flex-right { | |
// usage e.g.: div align right. | |
// can also replace Bootstrap col-md-push and col-md-pull back in bootstrap 3 | |
display: flex; |