Command Palette
Search for a command to run...
Comments
Join the discussionNo comments yet. Be the first to comment.
More from this blog
抛弃旁路由,使用 clash 作为透明网关
不用(我)配置 iptables 的方案就是好方案

使用 clash docker 做透明网关
之前一直使用 OpenWrt 旁路由的方式来翻墙,但 OpenWrt 本身不够稳定,并且我长期处于只使用 OpenWrt 其中的一个插件的状态,所以决定开一台虚拟机来体验下使用 Clash 作为透明网关 先给出(从同事那借来的)配置: version: "3" services: # Enable ip_forward - https://askubuntu.com/a/311054 # For Ubuntu Server, you also need to disable syste...

warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = (unset), LC_MESSAGES = "en_US.UTF-8"
If you login to a vps through ssh and always get warning like me warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = (unset), LC_MESSAGES = "en_US.UTF-8", LANG = "en_US.UTF-8" ...
Compile openwrt apps
apt update apt-get install software-properties-common add-apt-repository ppa:deadsnakes/ppa apt install -y build-essential asciidoc binutils bzip2 curl gawk gettext git libncurses5-dev libz-dev patch python3.5 python2.7 unzip zlib1g-dev lib32gcc1 l...

Run js until css transition completed
写代码的时候我们可能会经常碰到需要在某个元素的动画完成后再执行某些代码的场景,这时,我们就需要用到 transitionend 事件。 使用的方法也相当简单: const listener = () => { // do something... } document.querySelector('#menu').addEventListener('transitionend', listener) 需要注意的两点: 如果 transition 是针对多个属性的,则该事件会被触发多...