自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 收藏
  • 关注

转载 【git】忽略已在仓库内的文件

.gitignore .gitignore作用于未添加入库的文件/文件夹Created with Raphaël 2.1.2用户用户仓库仓库git statusfilter .gitignore展示已修改的文件1、未在仓库内且未被ignore收录的文件2、已在仓库内的所有文件Created with Rapha...

2018-03-29 15:26:00 256

转载 记一次Windows Server 2008 服务器被植入挖矿木马处理

概览CentOS 6.5转Windows Server 2008 阿里云CES 运行环境:ASP.NET运行环境(2.0/3.5/4.0+MySql5.5) 部署情况:C#部署在IIS7.1上,Python服务部署在Apache2.4,SQL Server,MySql 部署方式:由于IIS与Apache均需要使用80端口,所...

2018-01-14 01:41:00 2066

转载 linux ssh 转发端口及使用

1、设置rsa登陆ssh-keygen -t rsa -p3次回车,出现下面的信息,表示rsa生成的位置 Enter file in which the key is (/home/ubuntu/.ssh/id_rsa): Enter new passphrase (empty for no passphrase...

2017-11-29 11:10:00 249

转载 查看CentOS版本

lsb_release -a [root@izwz98ifnmtig506emzy7pz ~]# lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Description: CentO...

2017-11-14 09:43:00 132

转载 python 出现unicode错误解决

import sysreload(sys)sys.setdefaultencoding('utf-8') 转载于:https://www.cnblogs.com/HeJD/p/8702021.html

2017-10-25 20:51:00 844

转载 python2.7 01字符串与二进制效率对比

01字符串 与 将 01字符串转换为数字的效率对比 用例: 字符串’1001’ 与 0b1001=9import timestarttime=time.time()for i in xrange(1000001): '10000001'=='10000001'endtime=time.time()pri...

2017-10-25 20:46:00 158

转载 Centos7 下 denyHosts 安装及使用

安装撰写博客时,库内的denyhosts版本为2.9yum install -y denyhosts配置配置文件路径vim /etc/denyhosts.conf配置(yum安装时,大部分配置已写好,稍作改动即可)DENY_THRESHOLD_INVALID = 5 #无效用户名限制登陆次数DENY_T...

2017-10-23 10:07:00 118

转载 ubuntu 强制关机后 mysql无法启动

su root/etc/init.d/mysql restart此处用root启动mysql,时间大约需要5分钟 转载于:https://www.cnblogs.com/HeJD/p/8702024.html...

2017-10-16 11:45:00 349

转载 Django 批量插入数据(create)

使用 QuerySet.bulk_createcreateList=[]for d in data: createList.append(OJB(*d))OBJ.objects.bulk_create(createList) ...

2017-09-01 11:16:00 308

转载 微信小程序 扫码 加载图片

官方示例index.wxml<view class="page"> <image style="width: 750rpx; height: 1000rpx; background-color: #ffffff;" src="{{src}}"></image></view...

2017-08-31 22:16:00 281

转载 微信小程序tabBar

在根目录的app.json中添加tabBar,示例如下{ "pages": [ "pages/index/index", "pages/logs/logs", "pages/scanning/scanning" ], "window": { "backgroundTextStyle": "...

2017-08-29 16:11:00 113

转载 python 分割列表

myList = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]segmentation = [myList[i:i+3] for i in range(0,len(myList),3)]输出 [[0, 1, 2], [3, 4, 5], [6, 7, 8], [9]]写成方法def cut_up(...

2017-08-29 11:01:00 129

转载 CentOS根据端口杀进程

查看端口被什么进程占用netstat -lnp|grep 8000得到结果如下tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 22864/python其中22864表示占用端口8000的进程号查...

2017-08-29 09:26:00 502

转载 Ubuntu16.04 Tensorflow安装

Anaconda安装Anaconda官网下载相应的版本 下载的文件名为:Anaconda2-4.4.0-Linux-x86_64.sh打开安装界面bash Anaconda2-4.4.0-Linux-x86_64.sh阅读协议,不停yes即可。 安装完之后,source ~/.bashrc使用Anaconda环境变量...

2017-08-22 10:06:00 99

转载 Python常用操作记录

当前日期格式化:time.strftime('%Y-%m-%d',time.localtime(time.time()))pprint:import pprintpp = pprint.PrettyPrinter(indent=4)pp.pprint(stuff)或import pprintpprint....

2017-07-31 17:52:00 125

转载 MySQL创建数据库指定字符集

CREATE DATABASE `test2` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; 转载于:https://www.cnblogs.com/HeJD/p/8702...

2017-05-17 09:36:00 201

转载 django test基本操作

在tests.py中,导入TestCase包from django.test import TestCase创建测试类:class SimpleTest(TestCase):创建测试函数,必须以test_开头def test_login(self):模拟客户端发送数据c=Clien...

2017-05-05 15:06:00 172

转载 AWS常用命令

登陆ssh -i *.pem <userName>@<AWS_host_name>.compute.amazonaws.com上传scp -i *.pem <source_file> <userName>@<AWS_host_name>.compute....

2017-03-31 11:14:00 156

转载 资源合集

字体:https://fonts.google.com/ 免费符号字体:https://icomoon.io/app/#/select 在线代码格式化:http://tool.oschina.net/codeformat/html apache2.2在线中文文档:http://works.jinbuguo.com/apache/m...

2017-03-03 09:10:00 1296

转载 Apache配置文件

主配置文件关联模块mod_mime关联指令< IfDefine >IncludeTypesConfigApache HTTP Server是通过将指令放在纯文本配置文件中配置的,主配置文件通常是httpd.conf。本地的配置文件在编译时(compile-time)被设置,但是可以使用-f来覆...

2017-02-28 17:17:00 80

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除