To Drink

  • 首页

  • 关于

  • 标签

  • 分类

  • 归档

  • 创作

Hexo workflow

发表于 2021-01-13 分类于 Hexo
本文字数: 378 阅读时长 ≈ 1 分钟
preparation
  • git, add id_rsa.pub to 「Deploy keys」
    | C:\Users\Administrator.ssh\id_rsa.pub
  • node.js:v12.8.0
  • npm (mirror)
1
2
3
npm install -g hexo-cli
npm install ## package.json
npm install hexo-deploy-cli@x.x.x
workflow
1
2
3
4
5
6
7
8
9
git clone https://github.com/Alazia/Alazia.github.io.git
hexo new post
hexo clean
hexo g
gulp
hexo d
git add * (and .gitignore)
git commit -m 'source'
git push origin source

Linux与windows 文件搜索、统计与重命名

发表于 2021-01-11 更新于 2021-01-13 分类于 CODE
本文字数: 2.7k 阅读时长 ≈ 2 分钟
Linux 文件查询统计与命名
  • 查看当前目录下文件大小

    1
    ls -lh
  • 查看当前目录下的文件数量(包含子目录中的文件) 注意:R,代表子目录

    1
    ls -l|grep "^-"| wc -l
  • 查看当前目录下的文件夹目录个数(不包含子目录中的目录),如果需要查看子目录的,加上R

    1
    ls -lR|grep "^-"| wc -l
阅读全文 »

Git

发表于 2021-01-11 更新于 2021-01-13 分类于 CODE
本文字数: 15k 阅读时长 ≈ 14 分钟
为什么学Git?
  • 1 工欲善其事,必先利其器
  • 2 Def:distributed Version Control System(VCS) for tracking changes in computer files
  • 3 His: 
       Linus->Linux (1991):diff+Linus手工合并代码:CVS\SVN集中式速度慢,商用版不符合开源精神
       2002:BitKeeper(BitMover)授权Linux社区免费使用
       2005:Andrew(Samba开发者)试图破解BitKeeper协议,收回。
       Linus->Git(by C) in two weeks
       2008:GitHub
Install
  • 1 win: https://git-scm.com/download/win
Basic commands
1
2
3
4
5
6
7
$ git init   // initialize Local Git Repository 
$ git add<file> // Add File(s) To Index
$ git status // Check Status of Working Tree
$ git commit // Commit Changes In Index
$ git push //Push to Remote Repository
$ git pull //Pull Latest From Remote Repository
$ git clone //clone Repository into a new Directory
阅读全文 »

Mix drinks and change lives

发表于 2021-01-01
本文字数: 111 阅读时长 ≈ 1 分钟

久しぶりです——

To Drink 是alazia|空想珺的个人网站

You can read me from this CyberSpace,Reality OR Virtual

阅读全文 »
alazia

alazia

Time to mix drinks & change lives
4 日志
2 分类
4 标签
GitHub Instagram Twitter E-Mail
© 2021 alazia | 18k | 17 分钟
由 Hexo 强力驱动 v3.9.0
|
主题 – NexT.Gemini v7.3.0