vscode 上使用 bash on windows 時,terminal 會出現亂碼
只要將環境變數改成 xterm-256color 即可
2017年6月5日 星期一
2017年6月2日 星期五
solution for Error 0x80070005 in bash on windows
If you failed to start bash on windows because of Error 0x80070005,
just remove everything in %localappdata%\lxss directory.
It will works again
https://github.com/Microsoft/BashOnWindows/issues/473
2017年4月29日 星期六
python asyncio 入門介紹
asyncio 用在有些操作需要 block ,但是你不想要讓 main thread 被 block 時。你可以透過 multi thread 或是 multiprocessing 來解決剛剛的問題,但是建立 thread 或 process 的成本比較高,切換 thread 或 process 需要 kernel 介入,速度慢等問題。而 asyncio 無此問題。
點選文章閱讀全文
點選文章閱讀全文
2017年4月3日 星期一
2017年2月25日 星期六
qubes hvm linux 網路設定
把以下的內容貼到 /etc/rc.local 並修改 ip 和 gateway。 ip 和 gateway 可以從 vm settings 裡找到
ip=10.137.5.44
gateway=10.137.5.1
ifconfig eth0 $ip netmask 255.255.255.255
ifconfig eth0 up
route add -host $dateway dev eth0
route add default gw $gateway
echo 'nameserver 8.8.8.8' > /etc/resolv.conf
ip=10.137.5.44
gateway=10.137.5.1
ifconfig eth0 $ip netmask 255.255.255.255
ifconfig eth0 up
route add -host $dateway dev eth0
route add default gw $gateway
echo 'nameserver 8.8.8.8' > /etc/resolv.conf
2017年1月31日 星期二
atom editor 使用 alt +num 切換 tab 時,focus 會轉移到 tree-view 的解法
atom editor 使用 alt +num 切換 tab 時,focus 會轉移到 tree-view 的解法
解決辦法
移除 synced-sidebar plugin
解決辦法
移除 synced-sidebar plugin
2017年1月24日 星期二
windows 下,給 bash on ubuntu on windows 使用的最好終端機模擬器
如題,這是我目前看到最好用的終端機模擬器
用來跑 bash on ubuntu on windows
2017/01/24
https://github.com/mintty/wsltty
用來跑 bash on ubuntu on windows
2017/01/24
https://github.com/mintty/wsltty
2017年1月8日 星期日
solutions for bash on windows hang because of some reasons
There are some way to break bash on windows.
One way is that move file using mv command.
To make your bash work again, this is a solution.
This is not the only solution.
The solution will clean all your data in bash on ubuntu on windows.
Use it carefully
Steps:
One way is that move file using mv command.
To make your bash work again, this is a solution.
This is not the only solution.
The solution will clean all your data in bash on ubuntu on windows.
Use it carefully
Steps:
- lxrun.exe /uninstall /full /y
- rebootdelete all thing in "%LOCALAPPDATA%/lxss/temp/"
- reboot
- lxrun.exe /install
2016年12月28日 星期三
sbt 執行時發生 no trusted certificate found 的解法
當執行 sbt 時發生 no trusted certificate found 的解法
移除 openjdk-9 安裝 openjdk-8
移除 openjdk-9 安裝 openjdk-8
2016年8月24日 星期三
enable tab to click in fedora
在 /etc/X11/xorg.conf.d 建立 99-touchpad.conf (數字很重要,99比較好)
有下面內容
有下面內容
Section "InputClass"
Identifier "touchpad overrides"
# This makes this snippet apply to any device with the "synaptics" driver
# assigned
MatchDriver "synaptics"
####################################
## The lines that you need to add ##
# Enable left mouse button by tapping
Option "TapButton1" "1"
Option "TapButton2" "3"
# Enable vertical scrolling
Option "VertEdgeScroll" "1"
# Enable right mouse button by tapping lower right corner
Option "RBCornerButton" "3"
####################################
EndSection
訂閱:
文章 (Atom)