其他

\[\sigma_\mathrm{mean} = \frac{\sigma}{\sqrt{N}}\]
\[\begin{split}\begin{bmatrix} 1 & 3\\ -2 & 0 \end{bmatrix} \begin{bmatrix} -1 \\ 2 \end{bmatrix} = \begin{bmatrix} 5 \\ 2 \end{bmatrix}\end{split}\]
windows 计算 MD5 SHA1  SHA256
> certutil -hashfile D:\filename.txt MD5
> certutil -hashfile D:\filename.txt SHA1
> certutil -hashfile D:\filename.txt SHA256

系统常见问题

Windows镜像下载地址

https://msdn.itellyou.cn/

qbittorrent

http://www.qbittorrent.org/

OBS Studio

官网

https://obsproject.com/

搭建RTMP服务器

Docker

# https://hub.docker.com/r/jasonrivers/nginx-rtmp/
$ sudo docker run -d  -p 1935:1935 -p 8088:8080  --rm  jasonrivers/nginx-rtmp

# or
# https://github.com/alfg/docker-nginx-rtmp
$ sudo docker run -d -p 1935:1935 -p 8080:80 --rm alfg/nginx-rtmp

开源许可证

ceph

other

mingw编译gtk

Hello World program using GTK+


不要这样学习JavaScript


patch

SPAW 分区

Linux系统swappiness参数在内存与交换分区之间优化作用

Linux VPS的使用过程中,SWAP交换分区是一个很重要系统缓存分区。他是在内存不够用的情况下,从硬盘中临时分出一部分空间系统当做内存使用。但是,如果SWAP的占用超过30%的时候,系统的性能就会受到影响,这时候就要刷新SWAP。

# 可以执行命令刷新一次SWAP(将SWAP里的数据转储回内存,并清空SWAP里的数据)
$ sudo swapoff -a && sudo swapon -a


$ cat /proc/sys/vm/swappiness  # 查看
$ sysctl -q vm.swappiness      # 查看当前设置

# 临时设置
$ sudo sysctl vm.swappiness=10

# 永久设置
$ sudo echo "vm.swappiness=10" >> /etc/sysctl.conf
$ sysctl -p  # 激活

屏幕录像gif

CenterOS

  1. 检查某服务是否开机启动

    # chkconfig dnsmasq
    
  2. 开启/禁止 某服务开机启动

    # chkconfig dnsmasq on/off
    # systemctl enable/disable  dnsmasq
    
  3. 启动/停止/重启 某服务

    # systemctl start/stop/restart dnsmasq
    

amixer

amixer的用法(音频编码音量控制)

  1. 查看:

$ sudo alsamixer
$ sudo amixer -D pulse
$ sudo amixer scontrols   # 查看,哪些选择可以控制
  1. 声音设置

$ amixer -D pulse sset "Master" on
$ amixer -D pulse sset "Master" off    // 静音
$ amixer set "Master" 100%

$ amixer set "PCM" 94%    #  6100u 华科 噪音
  1. 录音设置

$ amixer set "Capture" 100%

$ amixer set "Front Mic Boost" 53%
$ amixer set "Rear Mic Boost"  53%

alsamixer设置默认声卡及调节音量保存配置

$ sudo apt-get install alsa-base alsa-utils alsa-oss alsa-tools

# 1. 如果默认声卡不是需要的
# 在home目录添加.asoundrc文件

$ sudo tee $HOME/.asoundrc <<-'EOF'
defaults.ctl.card 1 defaults.pcm.card 1
EOF

# 数字1代表声卡序号
# 可以通过以下指令查看

$ cat /proc/asound/cards

# 2. alsamixer调节声音
# Master和PCM是必须打开的。
# Master和PCM声道默认是静音的,标记是MM,用左右方向键选择,按M来修改为OO就是开启,上下键调节音量大小。
# 配置好之后执行:
$ alsactl store # 保存配置, 配置会保存在/var/lib/alsa/asound.state

nmcli命令

2.3.使用 NETWORKMANAGER 命令行工具 NMCLI

$ nmcli help
$ nmcli c help

$ nmcli con show
$ nmcli dev show eth0

rmp and yum

查询含有 *rdma.so 的rpm 包

yum provides *rdma.so

nginx


ubutnu 源制作

  • https://gist.github.com/awesomebytes/ce0643c1ddead589ab06e2a1e4c5861b

  • Requirements
    • Python (I used 2.7).

    • dpkg-scanpackages: sudo apt-get install dpkg-dev

    • gzip: sudo apt-get install gzip

    1. Create your debian hosting folder structure

    mkdir simple_debian_repo
    cd simple_debian_repo
    mkdir debian
    
    1. Add your .deb files to the debian folder

    cp my_awesome_thing.deb simple_debian_repo/debian
    
    1. Create Packages.gz file

    # You'll need to do this every time you add/update a .deb.
    dpkg-scanpackages debian /dev/null | gzip -9c > debian/Packages.gz
    

    You’ll get an output similar to

    dpkg-scanpackages: warning: Packages in archive but missing from override file:
    dpkg-scanpackages: warning:   my_awesome_thing.deb
    dpkg-scanpackages: info: Wrote 1 entries to output Packages file.
    
    1. Run a webserver to host it

    cd simple_debian_repo/
    python -m SimpleHTTPServer 8000
    
    1. Configure any machine to point to your new debian repository

    tee  /etc/apt/sources.list <<-"EOF"
    deb [trusted=yes] http://127.0.0.1:8000 debian/
    EOF
    
    apt-get update
    apt-cache search  "deb包“
    
    Note:

    that the packages will be non authenticated, so if you want to stop having warnings you’ll need to add the [trusted=yes]

ubuntu 好用的工具

# Indicator Stickynotes - Ubuntu 桌面便签小工具
sudo add-apt-repository ppa:umang/indicator-stickynotes
sudo apt-get update
sudo apt-get install indicator-stickynotes

tty终端中显示和输入中文

$ sudo apt-get install fbterm
$ sudo fbterm

问题

Apache2

重启Apache2出现:
Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName.问题
在/etc/apache2/apache2.conf文件最后加上:
# Server Name
ServerName localhost
# centos 目录或文件名中文显示
# vim /etc/httpd/conf/httpd.conf
AddDefaultCharset UTF-8
IndexOptions Charset=GBK

插入视频


remote-viewer

–hotkeys=release-cursor=”” # 屏蔽 ctrl+alt

BitTorrent
# 制作种子
mktorrent -a http://192.168.8.204:18888/announce -o drbl-live-xfce.iso.torrent /home/jxm/Downloads/drbl-live-xfce.iso
# or
ctorrent -t ~/Downloads/virtualbox-5.1.deb -u http://192.168.8.204:18888/announce -s virtualbox-5.1.deb.torrent

# 启动下载
ctorrent virtualbox-5.1.deb.torrent -s ~/Downloads/virtualbox-5.1.deb
BT Tracker List

https://github.com/ngosang/trackerslist https://newtrackon.com/

bittorrent文件编辑工具
  • BEncode Editor

  • TrackerEditor

待研究

DDRL(企鵝龍)

Udpcast


P2P File Transfer

https://github.com/ypingcn/P2PChat-Qt https://github.com/aanrv/P2P-File-Transfer-Client https://www.cnblogs.com/snake-hand/p/3148366.html https://blog.csdn.net/hackertom/article/details/73692902


http://www.isjian.com/

Linux From Scratch

https://linux.cn/lfs/LFS-BOOK-7.7-systemd/index.html

http://www.linuxfromscratch.org/

需求设计:
    基本上到现在我就没见到过合格的理清疑问、细化细节的需求设计。
    很多人过来一个需求,就几句话,这算什么需求?

低效的沟通:
    有的人只会浪费时间写很长的邮件,却不拎起电话,或者当面来问。
    一件事情可以反复来回好几天,而本来可以只花十多分钟。

不切实际的项目进度安排:
    我发现很多项目经理只会强调早就失去意义的截止日期。
    我们搞工程,如果做出来的是个垃圾产品,死守预设日期有什么意义?

过多的会议:
    很多会,是和工程项目无关的。往往在大公司这种情况比较常见,
    因为个人往往会被摊上很多乱七八糟的事情,越往上越多。

垃圾网络。
    国情,不解释。

猪队友:
    很多问题,归根结底都是人的问题。
    比如:对技术缺乏“工匠精神”,能完成任务就好,从来不考虑其它方面、是否能进一步改进等等。
    对新技术缺乏敏感度,甚至抵触。
    缺乏团队精神,喜欢强调自己的职责范围,不在他所认为的范围内的事情,就不管不问。
    缺乏谦虚,自以为是,没有相互学习的精神。很多讨论,变成站队、甚至面子问题。