Skip to content

Instantly share code, notes, and snippets.

View mamboer's full-sized avatar

Levin Van mamboer

View GitHub Profile
@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 / 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 / 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 / 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 / dabblet.css
Created June 29, 2017 06:57 — forked from oli/dabblet.css
Using calc(), rem & vw for scalable rem-based layout
/* Using calc(), rem & vw for scalable rem-based layout */
/* ref http://dev.w3.org/csswg/css3-values/#calc0 example 13 */
/* waiting for vw support */
body {margin: 0; text-align: center;}
.wrapper {
width: 40rem;
margin: 2em auto;
border-bottom: 2px solid #ccc;
}
.content {
@mamboer
mamboer / html-languages.txt
Created June 20, 2017 06:48 — forked from JamieMason/html-languages.txt
HTML lang attribute / ISO language code reference / Culture names
CULTURE SPEC.CULTURE ENGLISH NAME
--------------------------------------------------------------
Invariant Language (Invariant Country)
af af-ZA Afrikaans
af-ZA af-ZA Afrikaans (South Africa)
ar ar-SA Arabic
ar-AE ar-AE Arabic (U.A.E.)
ar-BH ar-BH Arabic (Bahrain)
ar-DZ ar-DZ Arabic (Algeria)
ar-EG ar-EG Arabic (Egypt)