Python 提供了两个基本的 socket 模块:
Socket它提供了标准的BSD Socket API。SocketServer它提供了服务器重心,可以简化网络服务器的开发。
下面讲解下 Socket模块功能。
| git config --global http.proxy http://127.0.0.1:1080 | |
| git config --global https.proxy http://127.0.0.1:1080 | |
| git config --global --unset http.proxy | |
| git config --global --unset https.proxy |
| #!/bin/sh | |
| # Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
| # CREATE block and create them in separate commands _after_ all the INSERTs. | |
| # Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
| # The mysqldump file is traversed only once. | |
| # Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
| # Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
| 【git 删除本地分支】 | |
| git branch -D br | |
| 【git 删除远程分支】 | |
| git push origin :br (origin 后面有空格) | |
| git代码库回滚: 指的是将代码库某分支退回到以前的某个commit id | |
| 【本地代码库回滚】: | |
| git reset --hard commit-id :回滚到commit-id,讲commit-id之后提交的commit都去除 | |
| git reset --hard HEAD~3:将最近3次的提交回滚 |
| _ooOoo_ | |
| o8888888o | |
| 88" . "88 | |
| (| -_- |) | |
| O\ = /O | |
| ____/`---'\____ | |
| . ' \\| |// `. | |
| / \\||| : |||// \ | |
| / _||||| -:- |||||- \ | |
| | | \\\ - /// | | |
| sudo cp /etc/apt/sources.list /etc/apt/sources.list_bak | |
| sudo gedit /etc/apt/sources.list | |
| 以下覆盖文件内容 | |
| #aliyun | |
| deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse | |
| deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse |
| # 首先更换为国内更新源,再到搜狗输入法官网下载搜狗输入法,下载deb文件。 | |
| https://pinyin.sogou.com/linux/?r=pinyin | |
| # 安装deb文件 | |
| sudo dpkg -i <file your downloaded> | |
| # 安装依赖 | |
| sudo apt-get install -f | |
| # 将输入法系统改为fcitx |
参考链接: https://bbs.archlinux.org/viewtopic.php?id=208874
If the firmware file directory doesn't exist, create it:
sudo mkdir -p /lib/firmware/ath10k/QCA6174/hw3.0/
If the directory already exists, backup everything important from it:
When you got this error
$ sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo: unable to resolve host bayanca05
[sudo] password for bayan-ca-05:
Selecting previously unselected package google-chrome-stable.
(Reading database ... 174654 files and directories currently installed.)
Preparing to unpack google-chrome-stable_current_amd64.deb ...
Unpacking google-chrome-stable (43.0.2357.81-1) ...