http://www.jianshu.com/p/b7681abee5cb
- 1月 28 週六 201710:28
Python Web开发的进击之路
- 1月 24 週二 201717:06
bash prompt git branch name
用git branch 去取得目前的branch name
不要用git checkout (太花時間了)
#vi ~/.bashrc
--------------------------------
:
:
git_branch()
{
cd /your/git/dir
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1='\[\e[1;32m\]\u@\[\e[1;31m\]\t:\[\e[1;33m\]\w\[\e[1;36m\] $(git_branch)\[\e[0m\]\$ '
-------------------------------
#source ~/.bashrc
不要用git checkout (太花時間了)
#vi ~/.bashrc
--------------------------------
:
:
git_branch()
{
cd /your/git/dir
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1='\[\e[1;32m\]\u@\[\e[1;31m\]\t:\[\e[1;33m\]\w\[\e[1;36m\] $(git_branch)\[\e[0m\]\$ '
-------------------------------
#source ~/.bashrc
- 1月 23 週一 201721:39
bash ?? color
參考
echo -e "\\033[48;5;95;38;5;214mhello world\\033[0m"
綠色是背景
紅色是前景
echo -e "\\033[48;5;95;38;5;214mhello world\\033[0m"
綠色是背景
紅色是前景
- 1月 21 週六 201716:28
TP-Link 3239DL on FreeBSD
此篇文章受密碼保護,請輸入密碼後閱讀。
- 1月 19 週四 201723:02
Arduino Nano Driver
CH341SER_EXE
裝上這個驅動就可以看到出現在COM和LPT下面
裝上這個驅動就可以看到出現在COM和LPT下面
- 1月 17 週二 201717:13
Ubuntu Desktop autologin
參考
sudo mkdir /etc/lightdm/lightdm.conf.d
sudo vi /etc/lightdm/lightdm.conf.d/50-myconfig.conf
-------------------------------------------------------
[SeatDefaults]
autologin-user=USERNAM
-----------------------------------------------------
sudo mkdir /etc/lightdm/lightdm.conf.d
sudo vi /etc/lightdm/lightdm.conf.d/50-myconfig.conf
-------------------------------------------------------
[SeatDefaults]
autologin-user=USERNAM
-----------------------------------------------------
- 1月 10 週二 201716:57
Ubuntu crontab執行在X11上
此篇文章受密碼保護,請輸入密碼後閱讀。
- 1月 05 週四 201716:57
selenium geckodriver
geckodriver下載
使用selenium需要配合Firefox的話
要下載geckodriver
將之放到python的資料夾下(ex: C:\Python34 )
使用selenium需要配合Firefox的話
要下載geckodriver
將之放到python的資料夾下(ex: C:\Python34 )
