SunDaSheng's blog

hello,stupid wrold


  • 首页

  • 分类

  • 标签

  • 关于

  • 归档

hexo迁移新电脑

发表于 2021-01-09 | 更新于: 2021-01-09 | 分类于 hexo
字数统计: 457 | 阅读时长 ≈ 1

hexo迁移新电脑

步骤

我们初步的解决方案是把我们的文件提交到git上,利用git来管理它,我是这样解决的: 在现有的XXX.github.io项目上创建一个分支来管理

  1. 克隆gitHub上的XXX.github.io项目的文件到本地
    git clone https://github.com/yourname/xxx.github.io.git
  2. 删除文件夹里除了.git的其他所有文件
  3. 把hexo项目文件下的所有文件全部复制过来
  4. 里面应该有一个叫.gitignore的文件,如果没有就输入 touch .gitignore,创建一个
    .DS_StoreThumbs.dbdb.json*.lognode_modules/public/.deploy*/
  5. 创建一个叫hexo的分支并切换到这个分支上
    git checkout -b hexo
  6. 提交复制过来的文件到暂存区
    git add --all
  7. 提交
    git commit -m "新建分支资源文件"
  8. 推送分支到github
    git push --set-upstream origin hexo
    到这一步我们就基本上搞定了,以后再跟新了博客就直接 git push就可以了,hexo的操作跟以前一样不变。
  9. 今后无论什么时候想要在其他电脑上面用hexo写博客,就直接把创建的分支克隆下来,npm install安装依赖之后就可以用了。
    克隆分支的操作git clone -b hexo https://github.com/yourname/xxx.github.io.git
  10. 因为上面创建的是一个名字叫hexo的分支,所以这里-b后面的是hexo,再把后面的gitHub的地址换成你自己的hexo博客的地址就可以了。
  11. 这样做完了以后,每次写完博客发布之后不要忘了还要git push把源文件推到分支上。

原文链接https://blog.csdn.net/wxl1555/article/details/79293159

问题

hexo 不支持最新 node14+

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#brew安装nvm
brew install nvm

#添加路径
cd ~
vim .bash_profile

#添加
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh

source .bash_profile

#安装 nodejs
nvm ls-remote
nvm install 12

Hello World

发表于 2021-01-09 | 更新于: 2019-08-10
字数统计: 73 | 阅读时长 ≈ 1

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

re的刷题

发表于 2020-05-12 | 更新于: 2020-08-01 | 分类于 ctf , re
字数统计: 30.5k | 阅读时长 ≈ 170

教练我想学逆向

阅读全文 »

成绩单

发表于 2019-11-25 | 更新于: 2020-03-11
字数统计: 126 | 阅读时长 ≈ 1

题目123.206.87.240:8002/chengjidan/index.php

阅读全文 »

备份是个好习惯

发表于 2019-08-16 | 更新于: 2019-11-06 | 分类于 ctf , web
字数统计: 508 | 阅读时长 ≈ 2

题目:备份是个好习惯

http://123.206.87.240:8002/web16/
听说备份是个好习惯

emm,备份是什么。
不管他,我选择御剑。

阅读全文 »

http协议

发表于 2019-08-16 | 更新于: 2019-09-07 | 分类于 ctf , web
字数统计: 2.8k | 阅读时长 ≈ 10

HTTP协议

1. 简介

1.1 超文本传输协议

(Hypertext transfer protocol)
Markdown
规定了浏览器和万维网(WWW = World Wide Web)服务器之间互相通信的规则,通过因特网传送万维网文档的数据传送协议。
HTTP协议位于TCP/IP模型中应用层的协议。通常承载于TCP协议之上,有时也承载于TLS或SSL协议层之上,这个时候,就成了我们常说的HTTPS
HTTP是一个应用层协议,由请求和响应构成,是一个标准的客户端服务器模型。HTTP是一个==无状态==的协议。
HTTP默认的端口号为==80==,HTTPS的端口号为==443==

阅读全文 »

算法与数据结构

发表于 2019-08-15 | 更新于: 2019-10-14 | 分类于 算法与数据结构
字数统计: 4.3k | 阅读时长 ≈ 21

算法与数据结构

程序 = 数据结构 + 算法
——Nikiklaus Wirth

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/** 
* _ooOoo_
* o8888888o
* 88" . "88
* (| -_- |)
* O\ = /O
* ____/`---'\____
* .' \\| |// `.
* / \\||| : |||// \
* / _||||| -:- |||||- \
* | | \\\ - /// | |
* | \_| ''\---/'' | |
* \ .-\__ `-` ___/-. /
* ___`. .' /--.--\ `. . __
* ."" '< `.___\_<|>_/___.' >'"".
* | | : `- \`.;`\ _ /`;.`/ - ` : | |
* \ \ `-. \_ __\ /__ _/ .-` / /
* ======`-.____`-.___\_____/___.-`____.-'======
* `=---='
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* 佛祖保佑 永无BUG
* 佛曰:
* 写字楼里写字间,写字间里程序员;
* 程序人员写程序,又拿程序换酒钱。
* 酒醒只在网上坐,酒醉还来网下眠;
* 酒醉酒醒日复日,网上网下年复年。
* 但愿老死电脑间,不愿鞠躬老板前;
* 奔驰宝马贵者趣,公交自行程序员。
* 别人笑我忒疯癫,我笑自己命太贱;
* 不见满街漂亮妹,哪个归得程序员?
*/
阅读全文 »

安装RsaCtfTool问题

发表于 2019-08-12 | 更新于: 2019-08-13 | 分类于 问题
字数统计: 113 | 阅读时长 ≈ 1

安装RsaCtfTool遇到的问题

1.没有安装mpfr和mpc

1
2
3
错误
fatal error: mpfr.h
fatal error: mpc.h

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
解决
ftp://ftp.gnu.org/gnu/mpfr
tar mpfr-v.tar.gz
cd mpfr-v
./configure
make
make check
make install

ftp://gcc.gnu.org/pub/gcc/infrastructure
tar -xzvf mpc-v.tar.gz
cd mpc-1.0.3
./configure
make
make check
make install

安装配置mpfr和mpc

2.网络

1
2
3
4
5
错误
Could not find a version that satisfies the requirement skimage (from versions: )
Collecting distribute
Exception:
Traceback (most recent call last):

1
2
解决
pip install -r requirements.txt -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

换豆瓣的镜像源

bugku-rsa

发表于 2019-08-12 | 更新于: 2019-08-15 | 分类于 ctf , crypto
字数统计: 234 | 阅读时长 ≈ 1

Rsa

1
2
3
N : 460657813884289609896372056585544172485318117026246263899744329237492701820627219556007788200590119136173895989001382151536006853823326382892363143604314518686388786002989248800814861248595075326277099645338694977097459168530898776007293695728101976069423971696524237755227187061418202849911479124793990722597  
e : 354611102441307572056572181827925899198345350228753730931089393275463916544456626894245415096107834465778409532373187125318554614722599301791528916212839368121066035541008808261534500586023652767712271625785204280964688004680328300124849680477105302519377370092578107827116821391826210972320377614967547827619
enc : 38230991316229399651823567590692301060044620412191737764632384680546256228451518238842965221394711848337832459443844446889468362154188214840736744657885858943810177675871991111466653158257191139605699916347308294995664530280816850482740530602254559123759121106338359220242637775919026933563326069449424391192
阅读全文 »

前几题

发表于 2019-08-11 | 更新于: 2019-08-15 | 分类于 ctf , crypto
字数统计: 367 | 阅读时长 ≈ 1
  • 变异凯撒

    afZ_r9VYfScOeO_UL^RWUc  
阅读全文 »
12
SunDaSheng

SunDaSheng

12 日志
7 分类
8 标签
GitHub E-Mail
© 2019 — 2021 SunDaSheng | Site words total count: 40k
由 Hexo 强力驱动
|
主题 — NexT.Pisces v5.1.4