在atom编辑器的设置--> font family选项中加入文泉驿的字体,比如文泉驿微米黑,然后将你喜欢的字体写在前面,就像这样:
DejaVu Sans Mono, WenQuanYi Micro Hei Mono
这条指令可以查看当前系统下的中文字体: fc-list :lang=zh
输出类似这样
base-files - 43.32-r667 | |
block-mount - 0.1.0-2.1 | |
busybox - 1.15.3-3.1 | |
crda - 1.1.1-1 | |
dnsmasq - 2.55-6.1 | |
dropbear - 0.53.1-5 | |
firewall - 2-34.8 | |
hotplug2 - 1.0-beta-3 | |
iptables - 1.4.6-3.1 | |
iptables-mod-conntrack - 1.4.6-3.1 |
#!/usr/bin/env python3 | |
import socket | |
import json | |
HOST, PORT = "localhost", 9527 | |
data = { | |
"name": "hello, I am Tom.", | |
"age": 10, | |
"info": "sample is simple." | |
} |
ffmpeg -i rtsp://192.168.1.234:8554/hi -f segment -segment_time 10 -segment_format mpegts -segment_list list_file.m3u8 -c copy -bsf:v h264_mp4toannexb -map 0 output_file-%d.ts
ffmpeg -i "Apache Sqoop Tutorial Part 1.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
#!/bin/bash | |
# from http://stackoverflow.com/questions/67699/clone-all-remote-branches-with-git | |
# usage: sh -x pull_all.sh | |
# 在你的git目录下执行此脚本即可 | |
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do | |
git branch --track ${branch##*/} $branch | |
done |
# Tcp Chat server | |
import socket, select | |
#Function to broadcast chat messages to all connected clients | |
def broadcast_data (sock, message): | |
#Do not send the message to master socket and the client who has send us the message | |
for socket in CONNECTION_LIST: | |
if socket != server_socket and socket != sock : | |
try : |
#!/usr/bin/env python3 | |
import os | |
log_path = "/tmp/log" | |
# 读取log内容 | |
with open(log_path, 'r') as f: | |
read_data = f.read() |
#!/bin/sh | |
#high chance need have a change ... | |
if [ ! $# -eq 2 ]; then | |
echo "usage: $0 UBOOTFILE MD5" | |
exit | |
fi | |
UBOOT_NAME=$1 | |
MD5SUM_SHOULD_BE=$2 |
#!/bin/sh | |
# Name:bakmysql.sh | |
# This is a ShellScript For Auto DB Backup and Delete old Backup | |
# | |
backupdir=/home/sqlbak | |
mysql_bin_dir=/usr/bin | |
time=`date +%Y%m%d` | |
dbname1= | |
dbname2= | |
username= |