Skip to content

Commit

Permalink
add 添加头图
Browse files Browse the repository at this point in the history
  • Loading branch information
ctftools committed Apr 11, 2024
1 parent ace7fa6 commit feda96c
Show file tree
Hide file tree
Showing 58 changed files with 51 additions and 5 deletions.
1 change: 1 addition & 0 deletions source/_posts/newpost-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: svn提交后jenkins自动部署
date: 2020-11-13 14:53:49
tags: [运维,持续集成]
index_img: /assets/headImg/jenkins.png
---

## 一、jenkins相关
Expand Down
1 change: 1 addition & 0 deletions source/_posts/newpost-10.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 基于firewalld端口转发
date: 2021-02-08 15:07:53
tags: 运维
index_img: /assets/headImg/linux.png
---

## 1.首先确认firewalld已经安装
Expand Down
1 change: 1 addition & 0 deletions source/_posts/newpost-12.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 删除node_modules重新安装
date: 2021-03-18 14:48:05
tags: [编程,前端]
index_img: /assets/headImg/nodejs.png
---

* 1.关闭项目,终端中进入项目目录
Expand Down
1 change: 1 addition & 0 deletions source/_posts/newpost-13.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: LocalDate获取当前周周一日期
date: 2021-06-21 13:40:24
tags: [编程,Java]
index_img: /assets/headImg/java.png
---

```java
Expand Down
1 change: 1 addition & 0 deletions source/_posts/newpost-14.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: mysql获取当期日期是该年第几周
date: 2021-06-21 13:52:30
tags: [编程,MySQL]
index_img: /assets/headImg/mysql.png
---

* 最简单常用,返回值为4,这种情况按国际标准,周四在哪一年,这周就属于哪一年,默认周一是一周的第一天
Expand Down
1 change: 1 addition & 0 deletions source/_posts/newpost-15.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: VsCode开发Python常用配置
date: 2021-06-24 16:06:11
tags: [编程,Python]
index_img: /assets/headImg/python.png
---

```js
Expand Down
1 change: 1 addition & 0 deletions source/_posts/newpost-16.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: python实现微信jsapi签名
date: 2021-06-24 16:12:39
tags: [编程,Python]
index_img: /assets/headImg/python.png
---

* 以下完整演示了获取access_token,获取ticket,最后签名返回前端全过程。
Expand Down
1 change: 1 addition & 0 deletions source/_posts/newpost-17.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 常用的Linux进程基本命令
date: 2021-07-12 14:44:07
tags: 运维
index_img: /assets/headImg/linux.png
---

#### 按内存或cpu占用排序
Expand Down
1 change: 1 addition & 0 deletions source/_posts/newpost-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: python - pip换源
date: 2020-11-16 17:06:23
tags: [运维,Python]
index_img: /assets/headImg/python.png
---

* windows直接在user目录中创建一个pip目录,如:C:\Users\xx\pip,新建文件pip.ini,内容如下
Expand Down
1 change: 1 addition & 0 deletions source/_posts/newpost-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: mysql获取最近一段时间数据
date: 2020-11-26 16:25:56
tags: [编程,MySQL]
index_img: /assets/headImg/mysql.png
---

* 获取最近七天,其中`CREATE_TIME`改为实际表中存储时间的字段
Expand Down
1 change: 1 addition & 0 deletions source/_posts/newpost-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 前端下载二进制文件
date: 2020-11-30 09:28:30
tags: 前端
index_img: /assets/headImg/js.png
---

假设你从后台获取到的二进制数据为`res`,则
Expand Down
1 change: 1 addition & 0 deletions source/_posts/newpost-5.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: java复制不同实体类中相同的字段
date: 2020-12-03 17:50:16
tags: [编程,Java]
index_img: /assets/headImg/java.png
---

用下边的方法就能实现,其中`source`为复制源,`target`为复制目标。
Expand Down
6 changes: 3 additions & 3 deletions source/_posts/newpost-55.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: JS计算字节大小,把字节转换为KB/MB/GB/TB等
tags:
- JavaScript
- 前端
index_img: /assets/headImg/nodejs.png
index_img: /assets/headImg/js.png
date: 2024-04-10 17:24:35
---

Expand All @@ -23,11 +23,11 @@ function calcByte(val) {
let i = 0;
for (i = 0; i < unitList.length; i++) {
if (val < 1024 ** (i + 1)) {
return (val / (1024 ** i)).toFixed(2) + unitList[i];
return (val / (1024 ** i)).toFixed(2).replace(/\.?0*$/, '') + unitList[i];
}
}
// 如果超出最大单位,显示为最大单位
return (val / (1024 ** (i - 1))).toFixed(2) + unitList[i - 1];
return (val / (1024 ** (i - 1))).toFixed(2).replace(/\.?0*$/, '') + unitList[i - 1];
}
```

Expand Down
1 change: 1 addition & 0 deletions source/_posts/newpost-6.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: JavaScript获取当前周或下n周的周n的日期
date: 2020-12-15 17:32:57
tags: [JavaScript,前端]
index_img: /assets/headImg/js.png
---

调用方法`getDate(cur_m, day_m)`
Expand Down
1 change: 1 addition & 0 deletions source/_posts/newpost-7.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: mysql清空表,并让自增从0开始
date: 2020-12-23 13:51:34
tags: [编程,MySQL]
index_img: /assets/headImg/mysql.png
---

mysql清空表与自增
Expand Down
1 change: 1 addition & 0 deletions source/_posts/newpost-8.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Java过滤html标签
date: 2020-12-28 14:26:04
tags: [编程,Java]
index_img: /assets/headImg/java.png
---

假设str为html富文本,则
Expand Down
1 change: 1 addition & 0 deletions source/_posts/newpost-9.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: pip 安装 tensorflow MemoryError
date: 2021-01-18 16:11:46
tags: [编程,Python]
index_img: /assets/headImg/tensorflow.png
---

原因是内存不够了,可以添加`--no-cache-dir`禁用缓存,例如:
Expand Down
1 change: 1 addition & 0 deletions source/_posts/newpost.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 常见nginx反向代理配置
date: 2020-11-13 10:20:28
tags: [运维,Nginx]
index_img: /assets/headImg/nginx.png
---

* 此配置可以用于jenkins反向代理等
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post005.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 一个小白的自学建站史(菜鸟建站入门)
date: 2017-03-07 22:14:49
tags: [运维,Nginx]
index_img: /assets/headImg/nginx.png
---

# 接触
Expand Down
2 changes: 2 additions & 0 deletions source/_posts/post009.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
title: 短网址
date: 2017-03-07 22:40:49
tags: [运维,编程]
index_img: /assets/headImg/js.png
---

### 短网址系统免费开放,欢迎大佬们使用:[DZ.GL](http://dz.gl) (短址过来)
### 该域名已经售出,继续提供源码下载
### 短网址系统已经开源,放在了百度网盘,需要的朋友可以下载。

[下载源码](https://pan.baidu.com/s/1eR406T8)

### 最后更新于2017-02-21
### 界面截图:
<!--more-->
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post036.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: wordpress发送邮件设置以及常见问题解决
date: 2017-03-09 14:26:16
tags: 运维
index_img: /assets/headImg/js.png
---

关于wordpress的搭建在我的另一篇文章"[一个小白的自学建站史(菜鸟建站入门)](/2017/03/post5)"的文末已经有了较为详细的解答,需要的朋友可以参考下。本文主要针对于wordpress的邮件设置,以下所有均在wordpress4.7.3环境下进行。
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post045.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: SEO Ultimate 7.6.5.9汉化版(中文版)免费下载
date: 2017-04-02 16:25:27
tags: [分享,汉化]
index_img: /assets/headImg/ui.png
---

**SEO Ultimate 7.6.5.9发布有一段时间了,到网上找了好久,唯一找到的汉化版还是付费才能用的,心里实在不爽,于是花了两天时间亲自汉化了这个程序,免费分享给大家。汉化主要结合谷歌翻译和自己的翻译能力,个别用到了百度翻译和有道翻译,希望大家能喜欢,谢谢!**
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post106.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: FBCTF汉化简体中文免费下载,FBCTF更新缓存代码
date: 2017-03-17 22:40:52
tags: [分享,汉化]
index_img: /assets/headImg/fbctf.png
---

[下载中文汉化版](http://d52.pw/fb)
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post122.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 在腾讯云服务器搭建FBCTF平台
date: 2017-03-30 19:56:04
tags: [运维,网络安全]
index_img: /assets/headImg/fbctf.png
---

# 前言
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post160.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: NSA工具包验证之SMB漏洞利用
date: 2017-06-15 12:12:59
tags: 网络安全
index_img: /assets/headImg/kali.png
---

### 验证环境:
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post162.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: NSA工具包验证之RDP漏洞利用
date: 2017-06-15 21:32:39
tags: 网络安全
index_img: /assets/headImg/kali.png
---

### 验证环境:
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post164.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: NSA工具包验证之IIS6.0漏洞利用
date: 2017-06-15 21:20:05
tags: 网络安全
index_img: /assets/headImg/kali.png
---

### 验证环境:
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post192.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 搭建L(Linux)+N(Nginx)+M(MySQL)+P(PHP)网站环境,并安装Wordpress
date: 2017-06-16 20:57:54
tags: 运维
index_img: /assets/headImg/linux.png
---

### 搭建LNMP环境:以下基于腾讯云镜像CentOS 6.8 64bit,或不适用于其他镜像
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post199.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 搭建L(Linux)+A(Apache)+M(MySQL)+P(PHP)网站环境,并安装Discuz
date: 2017-06-16 21:17:32
tags: 运维
index_img: /assets/headImg/linux.png
---

### 搭建LAMP环境:以下基于腾讯云镜像CentOS 6.8 64bit,本方法不适用于其他镜像
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post207.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 一个不到300行的C语言消灭敌机游戏
date: 2017-06-17 12:41:59
tags: [编程,C]
index_img: /assets/headImg/js.png
---

### 一个不到300行的C语言消灭敌机游戏
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post231.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 在ubuntu安装jdk并配置环境变量
date: 2017-09-21 17:11:43
tags: 运维
index_img: /assets/headImg/jdk.png
---

首先到java官网下载jdk:[http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post232.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 新起点,新征程
date: 2017-12-03 09:21:20
tags: 随笔
index_img: /assets/headImg/note.png
---

## 新起点,新征程
Expand Down
2 changes: 1 addition & 1 deletion source/_posts/post233.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Hexo安装配置并托管至github
date: 2017-12-07 18:27:36
tags: 运维
toc: true
index_img: /assets/headImg/hexo&github.png
---
所有可能用到的工具或者文件都放在百度网盘:链接:[https://pan.baidu.com/s/1mhLRnk8](https://pan.baidu.com/s/1mhLRnk8) 提取密码:7ott
### 一、安装Hexo到本地
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post234.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Java实现文件重命名,Java文件追加写入,java读取图片尺寸
date: 2017-12-15 17:47:38
tags: [编程,Java]
index_img: /assets/headImg/java.png
---
### 起由

Expand Down
1 change: 1 addition & 0 deletions source/_posts/post235.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: hexo-yilia主题相册
date: 2017-12-17 16:27:43
tags: [编程,前端]
index_img: /assets/headImg/hexo.png
---
### 起由
从yilia作者[Litten的博客](http://litten.me/)看到了他的相册,蛮喜欢的,就想给自己也弄一个,于是找了到他的博客在github上边的备份下载了source/photos文件夹,但是没有get到作者的方法,只好稍作修改把照片放到本地实现了作者博客中的效果。
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post239.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 危山
date: 2015-09-12 21:53:18
tags: 随笔
index_img: /assets/headImg/note.png
---
寂夜望危山,危山望不穿。
孰怜危山前,孤鸿几盘旋。
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post240.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 水调歌头
date: 2015-09-08 23:09:18
tags: 随笔
index_img: /assets/headImg/note.png
---
误被前缘误,痛被昔情痛。拟比名花,远胜月季牡丹红。残月窥人檐下,余晖隐洒案前,杯酒话心声。落花时节逢,安可赏孤鸿。
烛偷瘦,夜渐深,梦不成。奇葩艳卉,深红浅白何足争。长夜思君难彻,光阴暗转乾坤,耳畔荡清风。当使伊人在,冯虚幽境中。
1 change: 1 addition & 0 deletions source/_posts/post241.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 水调歌头
date: 2015-09-04 22:16:18
tags: 随笔
index_img: /assets/headImg/note.png
---
暮雨何时尽,举酒问青天。不知今夕此刻,孰与我同酣。也欲觅君而去,又恐路途险远,跌落在云端。辗转复反侧,伊人闹心间。
风凄凄,夜惨惨,君在安。不应长叹,何日与子共开颜。人云情深不寿,又曰慧极必伤,此事古难全。若使君心欢,吾宁肝肠断。
1 change: 1 addition & 0 deletions source/_posts/post242.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: 海滨校园助手api使用文档
date: 2018-06-04 15:25:08
tags: [文档,编程]
index_img: /assets/headImg/hb.png
---

### 公共接口
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post243.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Python自动处理依赖
date: 2019-11-14 20:45:54
tags: [编程, Python]
index_img: /assets/headImg/python.png
---

### 一、起由
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post244.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Vs Code编写md文件实现实时预览
date: 2020-10-28 17:36:54
tags: 经验
index_img: /assets/headImg/vscode.png
---

使用组合键Ctrl + Shift + P,打开命令窗口,输入mark,点击即可在右边实时预览,如图
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post245.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: Ubuntu 20.04 换国内源
date: 2020-11-02 14:57:54
tags: 运维
index_img: /assets/headImg/linux.png
---

编辑 `/etc/apt/sources.list`
Expand Down
2 changes: 1 addition & 1 deletion source/_posts/post246.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: centos安装svn服务器
date: 2020-11-03 17:11:47
tags: 运维
toc: true
index_img: /assets/headImg/svn.png
---

## 一、安装svn
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post247.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: centos安装jenkins
date: 2020-11-03 17:58:28
tags: [运维,持续集成]
index_img: /assets/headImg/jenkins.png
---

## 一、安装jdk
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post248.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: centos中jenkins配置环境变量
date: 2020-11-03 18:22:55
tags: [运维,持续集成]
index_img: /assets/headImg/jenkins.png
---

起由:在Jenkins配置脚本期望执行npm命令,但实际没有执行,也没有报错
Expand Down
1 change: 1 addition & 0 deletions source/_posts/post249.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: centos下hexo + svn + jenkins实现博客自动部署
date: 2020-11-04 09:53:02
tags: [运维,持续集成]
index_img: /assets/headImg/jenkins.png
---

起由:hexo是一个很好用的轻量级博客系统,生成纯静态相对安全而且高性能,但是每次写完博文都需要手动生成静态文件,部署到服务器,影响生活,于是就考虑使用jenkins实现自动部署。
Expand Down
Loading

0 comments on commit feda96c

Please sign in to comment.