• git笔记

    多用户配置 ssh

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    ssh-keygen -t rsa -C "example@email.com"

    -- .ssh 目录下新建config文件
    Host gitlab
    User caopeihe
    Hostname 192.168.3.17
    IdentityFile ~/.ssh/id_rsa_gitlab
    PreferredAuthentications publickey

    Host github
    User ehoac
    Hostname github.com
    IdentityFile ~/.ssh/id_rsa_github
    PreferredAuthentications publickey

    Host gitea
    User ehoac
    Hostname 127.0.0.1
    IdentityFile ~/.ssh/id_rsa_gitea
    PreferredAuthentications publickey
  • 《以交易为生》读书笔记

    术语

    • 空头:从事商品、有价证券交易的人,预料货价将跌而卖出现货或期货,伺机买进相抵,这种做法叫空头。
    • 多头:从事商品、有价证券交易的人,预料货价将涨而买进现货或期货,伺机卖出,这种做法叫多头。
  • 数据库笔记

    概述 关系数据库 关系数据库管理系统(Relational DataBase Management System, RDBMS)是以集合理论为基础的系统,实现为具有行和列的二维表。 与 RDBMS 交互的标准方法,是结构化查询语言(Structu...
  • c 语言基础知识记录

    数据类型

    c 有多种数据类型,基本数据类型分为两大类,整数类型浮点数类型,通过为类型分配的储存量以及是有符号还是无符号区分不同的整数类型。可以使用unsigned创建无符号类型。_Bool是一种无符号类型,可储存01,分别代表falsetrue

    整数可以表示为十进制、八进制( 0前缀)、十六进制(0x前缀)。

    lL后缀表示该值是long类型。

  • oracle 笔记

    表结构修改

    • 增加字段
    1
    ALTER TABLE TABLE_NAME ADD(COLUMN_NAME NUMBER(38,0) NOT NULL);
  • windows 中 debian 使用记录

    国内程序源

    兰州大学镜像站

    1
    2
    3
    4
    5
    6
    7
    8
    9
    deb http://mirror.lzu.edu.cn/debian stable main contrib non-free
    deb http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free
    deb http://mirror.lzu.edu.cn/debian/ buster-backports main contrib non-free
    deb http://mirror.lzu.edu.cn/debian-security/ buster/updates main contrib non-free

    deb-src http://mirror.lzu.edu.cn/debian stable main contrib non-free
    deb-src http://mirror.lzu.edu.cn/debian stable-updates main contrib non-free
    deb-src http://mirror.lzu.edu.cn/debian/ buster-backports main contrib non-free
    deb-src http://mirror.lzu.edu.cn/debian-security/ buster/updates main contrib non-free
  • RESTful 设计

  • css 样式表属性与示例记录

    常用样式

    垂直居中

    1. 第一
    1
    2
    3
    4
    selector: {
    display: inline-block;
    vertical-align: middle;
    }
  • redis 笔记

    安装

    1
    2
    sudo apt-get update
    sudo apt-get install redis-server
  • debian 操作系统使用记录

    防火墙 UFW

    安装防火墙

    1
    sudo apt install ufw
/4