Skip to content

Instantly share code, notes, and snippets.

View ks4na's full-sized avatar

_yuusha ks4na

  • Shanghai, China
  • 03:52 (UTC +08:00)
View GitHub Profile
@ks4na
ks4na / curl.md
Created March 18, 2023 12:09 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@ks4na
ks4na / 内网服务器安装nvm使用nodejs.md
Created March 15, 2023 06:47
内网服务器安装nvm使用nodejs

内网服务器上安装 nvm 和 nodejs

安装 nvm

首先参照 nvm 官网 Manual Install 章节,在有网的机器上下载 nvm 源码到某个目录(我这里指定为 ~/nvm):

git clone https://github.com/nvm-sh/nvm.git ~/nvm
@ks4na
ks4na / WSL2 set proxy to host proxy service.md
Last active October 8, 2024 12:56
WSL2 设置代理到宿主机的代理服务

WSL2 设置代理到宿主机的代理服务

新建脚本

在家目录下新建脚本 .setproxy.sh

vi $HOME/.setproxy.sh
@ks4na
ks4na / Mac 安装 Consolas.md
Last active March 16, 2022 07:23 — forked from nmcc/CONSOLAS.md
Install Consolas font on Mac

Download and install the font

  1. Download the Consolas font from http://www.fontpalace.com/font-details/Consolas/
  2. Open Finder and navigate to Downloads directory
  3. Double click the Consolas.ttf file
  4. A dialog box appears displaying the details about the font
  5. Click Install font button
@ks4na
ks4na / centos7创建常用非root用户.md
Last active January 14, 2022 08:17
centos 7 创建常用非root用户
# 创建用户
adduser yuusha

# 设置密码
passwd yuusha

# 添加 sudo 权限
# 查看 sudoers 文件存放位置
whereis sudoers