Skip to content

Instantly share code, notes, and snippets.

View long-woo's full-sized avatar
🐰

loong.woo long-woo

🐰
View GitHub Profile
@long-woo
long-woo / pve_xtermjs_for_ubuntu_vm.txt
Created March 29, 2024 07:38 — forked from edisonlee55/pve_xtermjs_for_ubuntu_vm.txt
Proxmox VE xterm.js (Serial Terminal) for Ubuntu VM
1. Add a virtual serial port to the VM using PVE Web GUI and restart the VM
2. Enable and start the virtual serial port on VM, change tty number as needed (Reference: https://askubuntu.com/a/621209/838946)
$ sudo systemctl enable serial-getty@ttyS0.service
$ sudo systemctl start serial-getty@ttyS0.service
3. Done! You can now select xterm.js in the PVE Web GUI
// ==UserScript==
// @name 4.4
// @namespace https://longwoo.me
// @version 0.2.0
// @description 全网默哀模式
// @author long.woo
// @include *
// @grant none
// ==/UserScript==
@long-woo
long-woo / npm.taobao.sh
Last active April 24, 2024 02:48 — forked from 52cik/npm.taobao.sh
npm 淘宝镜像配置
npm set registry https://registry.npmmirror.com # 注册模块镜像
npm set disturl https://npmmirror.com/mirrors/node/ # node-gyp 编译依赖的 node 源码镜像
## 以下选择添加
npm set sass_binary_site https://npmmirror.com/mirrors/node-sass/ # node-sass 二进制包镜像
npm set electron_mirror https://npmmirror.com/mirrors/electron/ # electron 二进制包镜像
npm set puppeteer_download_host https://npmmirror.com/mirrors # puppeteer 二进制包镜像
npm set chromedriver_cdnurl https://npmmirror.com/mirrors/chromedriver/ # chromedriver 二进制包镜像
npm set operadriver_cdnurl https://npmmirror.com/mirrors/operadriver/ # operadriver 二进制包镜像
npm set phantomjs_cdnurl https://npmmirror.com/mirrors/phantomjs/ # phantomjs 二进制包镜像
@long-woo
long-woo / git_toturial
Created February 21, 2017 09:37 — forked from guweigang/git_toturial
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库