Skip to content

Instantly share code, notes, and snippets.

View mamboer's full-sized avatar

Levin Van mamboer

View GitHub Profile
@mamboer
mamboer / macOS-Software-list.md
Last active December 6, 2023 03:26
macOS 软件推荐 - Apple Silicon(2023.12)

系统增强工具

顾名思义,基本都是在系统已有的功能上进行增强,例如截图工具

homebrew–软件包管理

主页:brew.sh

官方安装方式:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@mamboer
mamboer / macos-terminal-themes
Created December 6, 2023 03:06
Mac - Terminal Themes
1. https://draculatheme.com/terminal
2. https://github.com/lysyi3m/macos-terminal-themes
@mamboer
mamboer / makemusic-reverb-plugins.md
Created December 5, 2023 04:12
makemusic - reverb plugins
@mamboer
mamboer / pandafan-reload-local-dev-page-loop.md
Created November 29, 2023 13:48
Pandafan 每隔 60 秒刷新本地开发的页面

背景

Mac 电脑,本地跑了一个 react app(http://localhost:3000) host 配置 prompt-dev.com, 指向 127.0.0.1 nginx 配置 prompt-dev.com 做了反向代理,指向 react app 的端口。

结果

浏览器访问 prompt-dev.com 的时候,每隔 60 秒刷新一次页面。

解决办法

@mamboer
mamboer / lofi-music-plugins.md
Last active November 29, 2023 08:30
Lofi Music Plugins(2023.12)
  1. Donutsaudio Lo-Fi Drums for Mac(低保真鼓插件)
  2. Lofi Panda
  3. Unison Lo-fi Drum and Melody
  4. F-AudioLabs 套装
  5. ArturiaFX Collection for Mac(音乐效果器合集)
  6. Rigid Audio Lofi Explorer Bundle for mac
@mamboer
mamboer / install-nginx-macos-80-port.md
Created November 28, 2023 14:01
Install nginx on macOS at port 80(2023.12)
@mamboer
mamboer / homebrew-cn.md
Last active November 28, 2023 12:36
homebrew 加速

文章参考

.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"
@mamboer
mamboer / bash-dircolors-monokai
Last active November 17, 2018 10:15
bash console color configurations
# 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.
@mamboer
mamboer / scrollIt.js
Last active January 22, 2018 09:53
Page scrolling in vanilla JavaScript
// 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;
},
@mamboer
mamboer / regex-css-import.js
Created May 31, 2013 08:47
A regex pattern for matching css's inline import url.
//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"+
"}";