sudo useradd -m hadoop -s /bin/bash # 创建hadoop用户
sudo passwd hadoop # 修改密码
sudo adduser hadoop sudo # 增加管理员权限
参考链接: 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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 首先更换为国内更新源,再到搜狗输入法官网下载搜狗输入法,下载deb文件。 | |
https://pinyin.sogou.com/linux/?r=pinyin | |
# 安装deb文件 | |
sudo dpkg -i <file your downloaded> | |
# 安装依赖 | |
sudo apt-get install -f | |
# 将输入法系统改为fcitx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_ooOoo_ | |
o8888888o | |
88" . "88 | |
(| -_- |) | |
O\ = /O | |
____/`---'\____ | |
. ' \\| |// `. | |
/ \\||| : |||// \ | |
/ _||||| -:- |||||- \ | |
| | \\\ - /// | | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
【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次的提交回滚 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder