Sevenfal

这个人太懒什么东西都没留下

1.9 字符数组操作

#include <iostream> #include <algorithm> #include <functional> using namespace std; void main(){ cout << "char a[] = 123456789…

html bootstrap 部分实用代码

div居中 对body设置text-align:center,再对需要居中的div盒子设置css样式margin:0 auto,这样即可让对应div水平居中。 <!DOCTYPE html> <html> <head> <meta charset="utf-…

无线掉线后自动切换ssid

最近wifi老掉线,笔记本玩游戏很烦,由于赶着继续玩,也没去看为什么掉线,切换到另外一个wifi就可以了,所以写了一个自动切换的批处理,后来没玩的时候也掉,但是没解决这个问题,可以尝试tested中的那行命令 @echo off ::::::::::::::::::::: ::此脚本用于检测当前是否…

wordpress 清理数据库

清除、关闭修订版本: 最近更换服务器,发现数据库占用挺大,然而感觉应该没有这么多的数据,看了一下wps_posts表里面,发现有很多id无法打开的文章,看post_type是revision,于是打算把这些修订版本全部删掉。 mysql> DELETE FROM wps_posts WHERE…

防止搜索引擎收录网站

robots.txt文件,是屏蔽搜索引擎蜘蛛爬取网站! Disallow: /user Disallow: /lib Disallow: /admin Disallow: /vendor User-agent: Baiduspider Disallow: / User-agent: Sosospid…

CentOS 7.x设置自定义开机启动,添加自定义系统服务

Centos 系统服务脚本目录: /usr/lib/systemd/ 有系统(system)和用户(user)之分, 如需要开机没有登陆情况下就能运行的程序,存在系统服务(system)里,即: /lib/systemd/system/ 反之,用户登录后才能运行的程序,存在用户(user)里 服务以…