部署net-speeder

https://github.com/snooda/net-speeder

安装步骤:

1:下载源码并解压

wget https://github.com/snooda/net-speeder/archive/master.zip

unzip master.zip

2:准备编译环境

debian/ubuntu:

#安装libnet-dev:apt-get install libnet1-dev -y

#安装libpcap-dev:
apt-get install libpcap0.8-dev -y

centos:

#下载epel:https://fedoraproject.org/wiki/EPEL/zh-cn 例:CentOS6 64位:
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm#(如果是centos5,则在epel/5/下)
#安装epel:
rpm -ivh epel-release-6-8.noarch.rpm

#然后即可使用yum安装:
yum install libnet libpcap libnet-devel libpcap-devel -y

编译:

Linux Cooked interface使用编译(venetX,OpenVZ): …

AMH 4.2二次开发集

wget http://soft.vpskk.com/amh/files/4.5/amh.sh && chmod 775 amh.sh && ./amh.sh 2>&1 | tee amh.log
wget http://www.automoviel.com/AMH/Mysql/amh.sh && chmod 775 amh.sh && ./amh.sh 2>&1 | tee amh.log

前者网站关了

单独安装BBShijieSSL修正版 (支持大神的V4.5版)

    cd /root/amh/modules/
    wget http://www.automoviel.com/AMH/module/BBShijieSSL-2.0/BBShijieSSL-2.0.tar.gz;
    tar zxvf BBShijieSSL-2.0.tar.gz;
    rm -rf BBShijieSSL-2.0.tar.gz;
    (到这里你们可以选择在后台控制面板安装)
    amh module 

注册表修改IE设置

可以直接设置计算机里面的值

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\

Internet自定义级别的修改SoftWare/Microsoft/Windows/CurrentVersion/Internet  Settings /Zones下

0,我的电脑
1,本地Internet
2,可信站点
3,Internet

4,受限站点

一般值是DWORD,0表示允许,1表示提示,3表示禁止

1001     ActiveX 控件和插件:下载已签署的 ActiveX 控件 
1004     ActiveX 控件和插件:下载未签署的 ActiveX 控件 
1200     ActiveX 控件和插件:运行 ActiveX 控件和插件 
1201     ActiveX 控件和插件:对没有标记为可安全执行脚本的 ActiveX 控件进行初始化和脚本运行 
1206     其他:允许 Internet Explorer Web 浏览器控件的脚本编写 

锐速优化配置

#!/bin/echo Warning: this is a library file, can not be execute directly:
############################################################
# #
# ServerSpeeder Configuration File #
# #
############################################################
#/serverspeeder/etc/config
# Format: config=”value”
# Note that spaces are not allowed before and after the equal sign…

注册表对应的关系

HKEY_CURRENT_USER\Control Panel 对应HKEY_USERS\.DEFAULT\Control Panel
hkey_classes_root  –   hkey_local_machine\software\classes
hkey_current_user  –   hkey_users
hkey_current_config  – hkey_local_machine\config
还有一个是users下面的default…

centos/debian添加swap

cd /var/

dd if=/dev/zero of=swapfile bs=1024 count=1038336     (生成1g)

dd if=/dev/zero of=swapfile bs=1024 count=512000   (512m)

创建SWAP文件

/sbin/mkswap swapfile

激活SWAP文件

/sbin/swapon swapfile

添加到fstab文件中让系统引导时自动启动

echo “/var/swapfile swap swap defaults 0 0” >>/etc/fstab

dd if=/dev/zero of=/swapfile bs=1024 count=1024k  (debian 1G)
mkswap /swapfile
swapon /swapfile   

wordpress设置圆形头像

编辑主题文件 style.css

/**
    *WordPress 圆形头像
*/
img.avatar.photo {
    border-radius: 100%;
    -moz-border-radius: 100%;
}

头像旋转

/**
    *WordPress 圆形头像
    *头像旋转
*/
img.avatar.photo {
    border-radius: 100%;
    -moz-border-radius: 100%;
    transition: .5s;
    -webkit-transition: .5s;
    -moz-transition: .5s;
    -o-transition: .5s;
}
 
img.avatar.photo:hover {
    transform: rotate(720deg);
    -webkit-transform: rotate(720deg);