Aug 27

劫持 53 就算了,还他妈长期缓存一些错误的结果,记录下。注释的是曾经错误的目前好了的。

#SHIT CMCC
#server=/ikafan.com/127.0.0.1#5053
#server=/ikafan.com/211.136.17.107#53
#server=/ikafan.com/211.136.20.203#53
#ignore-address=42.236.6.20
server=/g.csdnimg.cn/127.0.0.1#5053

:evil: :evil: :evil:

Tags: ,

Aug 27

说是转码,其实还有下载,录屏,线性编辑等功能,同时支持 Intel/Nvidia/AMD 的硬件加速解码编码。同类软件不用试了,没一个能打的,人肉测试了几十款下来的结果。小缺点就是不直接支持蓝光碟,还有你说它不能非线性编辑也可以~

:cool: :cool: :cool:


Aug 26

冲突表现为开着安装版(便携版好像没这个问题)的 Proxifier 则 Pandownload 无法下载,看错误日志与 DNS 解析有关,解决方法如下图:

:roll: :roll: :roll:


Aug 18

root 用户编译 toolchain 要加:

export FORCE_UNSAFE_CONFIGURE=1

直接上脚本:(https://gist.github.com/rampageX/28ca79a9812fe684650be9ac18df84fe)

#!/bin/bash

apt-get install -y distcc distcc-pump ccache

sed -ie 's/STARTDISTCC="false"/STARTDISTCC="true"/' /etc/default/distcc
sed -ie 's/ALLOWEDNETS="127.0.0.1"/ALLOWEDNETS="192.168.0.0\/16 172.16.0.0\/12 10.0.0.0\/8"/' /etc/default/distcc
sed -ie 's/LISTENER="127.0.0.1"/LISTENER="0.0.0.0"/' /etc/default/distcc
sed -ie "s/JOBS=\"\"/JOBS=\"`grep processor /proc/cpuinfo | wc -l`\"/" /etc/default/distcc
sed -ie 's/ZEROCONF="false"/ZEROCONF="true"/' /etc/default/distcc
#PATH here? https://midnightyell.wordpress.com/2012/10/14/a-good-compromise-cross-compiling-with-distcc/
echo "PATH=/opt/tomatoware/arm-soft-mmc/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" >> /etc/default/distcc

service distcc restart

echo 'CCACHE_PREFIX="distcc"' > /etc/profile.d/ccache-distcc.sh
echo 'CC="ccache gcc"' >> /etc/profile.d/ccache-distcc.sh

#for tomatoware, arm-linux-gcc etc. must in service path, or error code 110 on Router.
sed -ie 's~/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin~PATH=/opt/tomatoware/arm-soft-mmc/usr/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin~' /etc/init.d/distcc

#Tomatoware REF: https://github.com/lancethepants/tomatoware/wiki/Using-distcc

#apt-get install Error and Fix: https://github.com/distcc/distcc/issues/311
#`Traceback (most recent call last): File "/usr/bin/update-distcc-symlinks", line 39, in for gnu_host in os.listdir(gcccross_dir): FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/gcc-cross'`

#Fixed by disable following code:
#`for gnu_host in os.listdir(gcccross_dir): consider_gcc("%(gnu_host)s-" % vars(), "") for version in os.listdir(gcccross_dir + "/" + gnu_host): consider_gcc("", "-%(version)s" % vars()) consider_gcc("%(gnu_host)s-" % vars(), "-%(version)s" % vars())`


Aug 18

两行:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
#下面任选1个
#Ubuntu
#中科大
sudo sed -i 's~ports.ubuntu.com~mirrors.ustc.edu.cn/ubuntu-ports/~g' /etc/apt/sources.list
#清华
sudo sed -i 's~ports.ubuntu.com~mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/~g' /etc/apt/sources.list
#阿里云
sudo sed -i 's~ports.ubuntu.com~mirrors.aliyun.com/ubuntu-ports/~g' /etc/apt/sources.list
#台湾
sudo sed -i 's~ports.ubuntu.com~tw.archive.ubuntu.com/ubuntu-ports/~g' /etc/apt/sources.list
#Debian
#中科大
sudo sed -i 's~httpredir.debian.org~mirrors.ustc.edu.cn~g' /etc/apt/sources.list
#清华
sudo sed -i 's~httpredir.debian.org~mirrors.tuna.tsinghua.edu.cn~g' /etc/apt/sources.list
#阿里云
sudo sed -i 's~httpredir.debian.org~mirrors.aliyun.com~g' /etc/apt/sources.list
#台湾
sudo sed -i 's~httpredir.debian.org~tw.archive.ubuntu.com~g' /etc/apt/sources.list

Security 源:

deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free


[4/56]  < 1 2 3 4 5 6 7 8 9 10 > ... »