顾名思义,基本都是在系统已有的功能上进行增强,例如截图工具
主页:brew.sh
官方安装方式:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
顾名思义,基本都是在系统已有的功能上进行增强,例如截图工具
主页:brew.sh
官方安装方式:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
1. https://draculatheme.com/terminal | |
2. https://github.com/lysyi3m/macos-terminal-themes |
Mac 电脑,本地跑了一个 react app(http://localhost:3000) host 配置 prompt-dev.com, 指向 127.0.0.1 nginx 配置 prompt-dev.com 做了反向代理,指向 react app 的端口。
浏览器访问 prompt-dev.com 的时候,每隔 60 秒刷新一次页面。
Installing nginx in macOS Ventura using homebrew
Change the configuration value of listen from 8080 to 80
server {
listen 80;
server_name localhost;
#charset koi8-r;
文章参考:
在 .bash_rc
或 .zshrc
中添加相关变量:
export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
export HOMEBREW_PIP_INDEX_URL="https://pypi.tuna.tsinghua.edu.cn/simple"
# vim: set filetype=bash : | |
# Install: `ln -s ~/.bash/dircolors ~/.dircolors` | |
# Configuration file for the color ls utility | |
# This file goes in the /etc directory, and must be world readable. | |
# You can copy this file to .dir_colors in your $HOME directory to override | |
# the system defaults. | |
# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not | |
# pipes. 'all' adds color characters to all output. 'none' shuts colorization | |
# off. |
// https://pawelgrzybek.com/page-scroll-in-vanilla-javascript/ | |
function scrollIt(destination, duration = 200, easing = 'linear', callback) { | |
const easings = { | |
linear(t) { | |
return t; | |
}, | |
easeInQuad(t) { | |
return t * t; | |
}, |
//Paste the code below into chrome's console and press enter! | |
//Thanks to @alextang https://github.com/ikitty | |
var css = "@import url('file1.css');\r\n"+ | |
"@import url('file2.css');\r\n"+ | |
".test3{\r\n"+ | |
" height: 1px;\r\n"+ | |
"}"; |