以iscroll 為例修改
me.addEvent = function(el, type, fn, capture) {
// el.addEventListener(type, fn, !!capture) 改為
el.addEventListener(type, fn, { passive: false })
}
me.addEvent = function(el, type, fn, capture) {
// el.addEventListener(type, fn, !!capture) 改為
el.addEventListener(type, fn, { passive: false })
}
1.列出所有的kernal
dpkg --get-selections|grep linux-image
2.目前使用的kernal
uname -r
3.刪除舊kernal
sudo apt-get purge xxxxxxx
4.刪除kernal src
/usr/src 下
rm -rf xxxxxx
5. 察看硬碟狀況
df -lh
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
setopt prompt_subst
autoload -Uz vcs_info
zstyle ':vcs_info:*' stagedstr 'M'
zstyle ':vcs_info:*' unstagedstr 'M'
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:*' actionformats '%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f '
zstyle ':vcs_info:*' formats \
'%F{5}[%F{2}%b%F{5}] %F{2}%c%F{3}%u%f'<pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee;font-size: 12px;border: 1px dashed #999999;line-height: 14px;padding: 5px; overflow: auto; width: 100%"><code>parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
</code></pre>
zstyle ':vcs_info:git*+set-message:*' hooks git-untracked
zstyle ':vcs_info:*' enable git
+vi-git-untracked() {
if [[ $(git rev-parse --is-inside-work-tree 2> /dev/null) == 'true' ]] && \
[[ $(git ls-files --other --directory --exclude-standard | sed q | wc -l | tr -d ' ') == 1 ]] ; then
hook_com[unstaged]+='%F{1}%f'
fi
}
precmd () { vcs_info }
PROMPT='%F{5}[%F{2}%n%F{5}] %F{3}%3~ ${vcs_info_msg_0_} %f%# '
sudo apt-get install gcc ruby-dev rubygems
sudo gem install compass
vi /etc/sysctl.conf
fs.inotify.max_user_watches=524288
執行 /bin/bash | zsh
設定 vi ~/.bashrc 或 .zshrc
應用 source ~/.bashrc
設定預設 chsh -s /bin/zsh
1.sudo apt install qemu-kvm.
2.sudo adduser $USER kvm //將自己帳號加入到kvm群組內
3.重新啟動電腦 就可以用了
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64