官方论坛产品帮助刷图视频问题反馈

为Chevereto静态资源使用腾讯云对象存储

发表于 秦海传媒

Change Chevereto statics to anothoer url
https://chevereto.com/community/threads/how-to-change-statics-to-anothoer-url.12479/#post-63586

为Chevereto静态资源使用腾讯云对象存储,提高网站加载速度。
示例站点:http://pic.qinhai.us

Add this line at app/settings.php

define('qinhai_host','http://pic.qinhai.us');
define('static_host','https://qinhai-1302838987.cos.ap-beijing.myqcloud.com');

change app/lib/classes/class.image.php at 1332

if(qinhai_host){
$url=parse_url ($display['url']);
$image['display_url']= qinhai_host.$url['path'];
}else{
$image['display_url'] = $display['url'];
}
//$image['display_url'] = $display['url'];

修改 app/lib/functions.render.php 的get_static_url函数

function get_static_url($filepath, $options = []){
$options = array_merge(['versionize' => true, 'minify' => null], $options);
if ($options['minify'] !== false) {
$filepath = get_cond_minified_file($filepath, $options['forced']); // Handle the conditional minify
}
$return = G\absolute_to_url($filepath, defined('CHV_ROOT_URL_STATIC') ? CHV_ROOT_URL_STATIC : null);
if ($options['versionize']) {
$return = versionize_src($return);
}
//add by osiris 3 lines
if(static_host){
$url=parse_url ($return);
$return = static_host.$url['path'];
}
//add end
return $return;
}

腾讯云搭建的Proftpd不能使用FlashFXP连接 PASV无响应

发表于 秦海传媒

修改 /etc/proftpd.conf
在port之后增加一行

TimeoutStalled 3600
MasqueradeAddress 119.28.49.39

禁止Owncloud更新——解决winxp下shgetknownfolderpath错误shell32.dll

发表于 秦海传媒

OK – I’m up and running again – I found an early version of the client and it installed (without deleting or uninstalling anything) – but it wouldnt work – saying the client was incompatible with the server or some such

I managed to source the link to older windows clients versions
I unplugged the network cable and booted the other PC (to see which version we were running prior to the update)

I went to https://owncloud.org/download/older-versions/#ownCloud_Desktop_Client
I downloaded 2.3.4 (the last version that was working before the update)
I installed it without deleting or uninstalling anything
It runs and syncs and does everything as it used to

I have also disabled auto update by adding
skipUpdateCheck=true
to my owncloud.cfg
(for me that is C:\Documents and Settings\Rob\Local Settings\Application Data\ownCloud\owncloud.cfg )

Only 1 thing to note – at the very bottom of the config file is has
[Updater]
autoUpdateFailedVersion=2.4.0.8894

so it seems it is “aware” that 2.4.0 update was attempted and knows it didn’t work out
…interesting – maybe disabling the auto update in the config is not necessary?

Also looks like the requirements for the desktop client is now Windows 7 and above..
https://doc.owncloud.org/server/latest/admin_manual/installation/system_requirements.html#desktop

(it maybe the requirements have stated this for a while – but as it has all just been working flawlessly I haven’t checked – I am sure there have been a couple of updates over the course of this year and I applied them when prompted)

Regards
Rob

利用闲置VPS/独服使用xmr-stak-cpu挖矿[XMR]

发表于 秦海传媒

最近购买了几个特价腾讯云,原来的腾讯云就被闲置了。看到 XMR(门罗币) CPU 的挖矿程序,可以废物利用一下.
在Debian下是非常简单的.

主要问题有几个:
1.效率低.
2.CPU占用过高.
3.用VPS非常容易违反TOS,导致封号等.

首先需要注册个钱包账户
注册地址: https://mymonero.com
获取钱包地址: Account –> XMR

运行环境
Debian9 x64:

    #安装依赖
    apt-get update
    apt-get install -y libmicrohttpd-dev libssl-dev cmake build-essential libhwloc-dev
    apt-get -y install git
    git clone https://github.com/fireice-uk/xmr-stak-cpu.git
    cd xmr-stak-cpu/

    #调整百分之二的开发者捐赠(强烈不建议这样做)
    sed -i 's/2.0/0.0/g' donate-level.h

    #编译安装
    cmake -DHWLOC_ENABLE=OFF .
    make install

    编辑 xmr-stak-cpu/bin/config.txt
    "cpu_threads_conf" :
    [
    { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 0 },
    ],

    选择一个矿池,我用的是https://supportxmr.com/
    更改地址等信息(nicehash 为例)


    "pool_address" : "de03.supportxmr.com:5555",
    "wallet_address":"46cm5SpUL1mEyGR8BmVqoCf2oQh7JCHXFiEsyH7rd61DD838m4suwbxVGRt3aj7nuF9MJigNpHC4NeUNFpZ8f1FKKKVTMZt",
    "pool_password" : "BJ01:s@qinhai.us",

  • 安装screen:

  • apt-get install -y screen
    screen

  • 执行程序
  • cd ~/xmr-stak-cpu/bin
    ./xmr-stak-cpu

  • 返回主界面
  • Ctrl+A然后按D

  • 查看当前screen列表
  • screen -ls
    #进去14906
    screen -r 14906

Editplus 注册码生成

发表于 秦海传媒

EditPlus注册码在线生成


用户名:

注册码:

Google ADs

除非另有声明,本站文章遵循知识共享署名-非商业性使用 2.5 中国大陆许可协议。 Copyright © 2008-2012 99288.NET.CN.