Mysql建库备忘
总是忘记Mysql新装后的建库utf8脚本,记录一下,备忘 vi gogs.sql DROP DATABASE IF EXISTS gogs; CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8 COLLATE utf8_general_ci; mysql -u root -pyour_password < gogs.sql
View Articlego语言安装与配置
首先下载2进制包 wget https://dl.google.com/go/go1.9.3.linux-amd64.tar.gz 编辑~/.bashrc export GOPATH=/home/git/go export GOROOT=/usr/local/src/go export PATH=${PATH}:$GOROOT/bin 解压: tar zxf...
View ArticleUbuntu下如何固定选择老的核心启动
不知道为何,Ubuntu系统自动升级,弄了好多个核心。 结果启动都是异常,必须用老的4.10的核心才能正常启动,Nvidia显卡的驱动才能正常加载。 那么如何固定Ubuntu启动的时候选择老核心启动呢? 很简单 vi /etc/default/grub GRUB_DEFAULT= 把上面更换为 GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu,...
View ArticleF5的SSL每秒传输数限制
公司用到了SSL的泛域名证书,网站整体套上了HTTPS,然后最前面是F5做SSL的卸载。 麻烦也来了,F5的SSL Transactions Per Second (TPS) 是有license的,首先检查一下吧 tmsh show sys license detail | grep -i perf_SSL_total_TPS perf_SSL_total_TPS [500] 显示是500...
View Article做个postfix发送邮件以及邮件黑洞
配置postfix能自由转发内网的邮件: 就改一个地方即可 vi /etc/postfix/main.cf ... mynetworks = 127.0.0.0/8, 172.16.0.0/16 ... 配置个黑洞,所有邮件都受到,然后drop掉 relayhost = relay_transport = relay relay_domains = static:ALL...
View ArticleExt4分区的缩小
装好了virtualizor,准备测试Xen的虚机环境 结果发现杯具了,Xen的模板只能用于lvm环境,分区的时候只分了/和swap,空间全用掉了,没有建lvm的地方了。 没办法,只能缩小/ ext4分区 步骤如下: 查看分区是什么文件类型 file -sL /dev/sd* /dev/sda: x86 boot sector; GRand Unified Bootloader, stage1...
View ArticleUbuntu下MongoDB不同版本的安装
MongoDB 2.6.9的安装 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' | sudo tee...
View ArticleFreelancer的任务之一:多IP多重匿名代理加认证
Freelancer上有个proxy setup的任务: Project Description Hi, I would like to create a new VPS proxy server with multiple IPs on the same VPS. Are you able to that? What OS do you prefer? - I have 10 ips. - I...
View ArticleCentos 6.6 突然无法Git clone了
公司里的机器突然不能git clone了。 古怪。报错信息如下: git clone https://github.com/httperf/httperf Cloning into 'httperf'... fatal: unable to access 'https://github.com/httperf/httperf/': SSL connect error...
View Articlehttperf的安装使用
先clone回来 git clone https://github.com/httperf/httperf 准备环境,编译安装 yum install lib-tools cd httperf mkdir m4 autoreconf -i autoconf configure.ac ./configure make 测试一把,参数不是一般的多啊 ./httperf --server...
View ArticleFreelancer任务之二:建一个scramble obfuscated opevpn
这个很奇怪撒,仔细查了下,原作者是这么说的: I have created a patch which introduces some forms of scrambling to the packet payload of any OpenVPN connection. I have been successfully using the patch with Iranian and...
View ArticleFreelancer任务之三:Setup Proxy on VPS for Instagram
任务的要求是: • Multiple subnets to avoid bans •I need the proxies to have the ability of User:Pass •Proxy needs to be Residential IPv6 还给出了一个参考:...
View Article用nanopi-neo搭建一个自动翻墙设备
感谢Xuebing Wang老师的厚爱,加入了他的team,对嵌入式设备kernel进行了修改,从中才知道国人其实在嵌入式内核方面其实走在了世界前列 蒙赐一个nanopi-neo的小设备,家里本来是用hp5315的设备进行翻墙的,由于内核太低,无法使用ipset。所以迫不得已,升级到nanopi-neo 说一下过程:...
View Article配置一个提供 IPv6 tunnel over IPv4的OpenVPN服务器
先普及一下IPv6 地址。 IPv6 地址大小为 128 位。首选 IPv6 地址表示法为 x:x:x:x:x:x:x:x,其中每个 x 是地址的 8 个 16 位部分的十六进制值。IPv6 地址范围从 0000:0000:0000:0000:0000:0000:0000:0000 至 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff。 除此首选格式之外,IPv6...
View ArticleFreelancer任务之四squid查询用户浏览记录
这个需求也比较简单: User Browsing Log for Open VPN server 简单说就是用户连到他的openvpn服务器,通过上面的squid代理来浏览其他网站,比较特别的是需要查看用户http和https的浏览记录。 squid做透明代理,这样就可以截取浏览记录并且提供加速了 服务器是Ubuntu,缺省安装的的squid是不支持SSL的,所以需要重新编译一个 安装依赖包:...
View ArticleFreelancer任务之五多线路聚合vpn
这个任务很有意思 链接地址: https://www.freelancer.com/projects/software-architecture/Bonded-connection-for-video-streaming 任务描述: we need a set of vpn server / client programmed for embedded linux (or windows) to...
View ArticleFabric 1.0在Centos 7上面的安装
同事突然雅兴大发,说要研究研究区块链。给了个链接: http://www.voidcn.com/article/p-szuznezg-bqr.html 首先说明,这里的装法是过时的,网上类似的文章一抓一大把,到最后是肯定装不成功的 会卡在最后一步network-stup.sh up,报错 2018-04-25 03:09:49.100 UTC [grpc] Printf -> DEBU 003...
View ArticleFreelancer任务之六Compile an ipk file on Lede (OpenWRT)
这是一次失败的任务,即使再来一次,依然会失败,因为无法验证,真够shit的,扣了我10$的手续费。 记录一下,以供后效。 任务如下: Job would be to compile an ipk file of SHC that would work with LEDE OS (openwrt) and the processor used in our system - will provide...
View ArticleCeph装好RGW如何配置s3cmd进行访问
Ceph的安装就不多说了,本来是只想用rbd进行块设备访问配搭kvm的。 同事也搭好了rgw,正好之前用过amazon的s3,s3cmd用起来十分爽啊,那么怎么用s3cmd对ceph进行访问呢? 过程如下: 首先Ceph是luminous,然后用ceph-deploy安装,安装用户是cephuser 那么登录后用cephuser的身份sudo进行操作,直接用root是不行的,注意 sudo...
View ArticleTomcat的日志记录
我们tomcat记录的日志内容为: pattern="%a|%A|%T|%{X-Forwarded-For}i|%l|%u|%t|%r|%s|%b|%{Referer}i|%{User-Agent}i " resolveHosts="false"/> 都是什么意思呢? %a - Remote IP address %A - Local IP address %b - Bytes sent,...
View Article