V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  lululau  ›  全部回复第 1 页 / 共 101 页
回复总数  2007
1  2  3  4  5  6  7  8  9  10 ... 101  
6 小时 36 分钟前
回复了 SuperBig 创建的主题 程序员 有没有这么一个 MacOS 软件,可以快速切换工作环境
cp -r project_a project_a2
还自然排序,有够扯的

man 2 getdirentries

getdirentries() reads directory entries from the directory referenced by
the file descriptor fd into the buffer pointed to by buf, in a filesystem
independent format. Up to nbytes of data will be transferred. Nbytes
must be greater than or equal to the block size associated with the file,
see stat(2). Some filesystems may not support getdirentries() with
buffers smaller than this size.

The data in the buffer is a series of dirent structures (see dir(5)) The
order of the directory entries vended out via getdirentries() is not
specified. Some filesystems may return entries in lexicographic sort
order and others may not.
摩托车不算机动车吗,堵车的话,四轮机动车堵,两轮的机动车就不堵了?什么原理?
6 天前
回复了 AaronNia 创建的主题 软件 marginnote 4 又要收费,如何看待新版功能?
哪里每年更新一个版本了。。。从 3 到 4 用了 4 年时间吧,而且也没觉得有什么重要的新功能。。。
Magit: 我不是针对谁,我是说,在座的各位都是垃圾,我让小弟上就行了,Neogit, 你先上
Neogit: 好的,老大。git clone -b neogit https://github.com/lululau/nvchad-starter.git ~/.config/nvim && cp ~/.config/nvim/magit /usr/local/bin/; cd $PROJECT_DIR; magit
从 OS X 10.4 Tiger 一路上升来的,没感觉到明显的卡顿
17 天前
回复了 czd670 创建的主题 Apple Mac 远程 Mac,什么方案比较靠谱?
最靠谱的方式通过 VPN 放到一个网里,然后 ssh 还是 VNC 就随意了

VPN 也有两种方案:1. 公司有 VPN Server 2. 家里装个有外网 IP 的宽带,在家里开个 VPN Server
20 天前
回复了 liv22 创建的主题 长沙 120w 是买长沙还是广州?
120W ?买个充电头还要考虑在什么地方买?这么考究吗😅
把系统管理(包括 Homebrew 安装)的 Python 挂载到 pyenv 管理:
```
if [ -z "$HOMEBREW_PREFIX" ]; then
if [ -e "/opt/homebrew/bin/brew" ]; then
HOMEBREW_PREFIX="/opt/homebrew"
else
HOMEBREW_PREFIX="/usr/local"
fi
fi

mkdir -p ~/.pyenv/versions

if [ -e "$HOMEBREW_PREFIX/Cellar/python@2" ]; then
ln -nfs $HOMEBREW_PREFIX/Cellar/python@2/2*(On[1]) ~/.pyenv/versions/
ln -nfs $HOMEBREW_PREFIX/Cellar/python@2/2*(On[1]) ~/.pyenv/versions/2
fi

if [ -e "$HOMEBREW_PREFIX/Cellar/[email protected]" ]; then
ln -nfs $HOMEBREW_PREFIX/Cellar/[email protected]/3*(On[1]) ~/.pyenv/versions/
ln -nfs $HOMEBREW_PREFIX/Cellar/[email protected]/3*(On[1]) ~/.pyenv/versions/3
ln -nfs $HOMEBREW_PREFIX/Cellar/[email protected]/3*(On[1]) ~/.pyenv/versions/3.12
fi

if [ -e "$HOMEBREW_PREFIX/Cellar/[email protected]" ]; then
ln -nfs $HOMEBREW_PREFIX/Cellar/[email protected]/3*(On[1]) ~/.pyenv/versions/3.11
fi

if [ -e "$HOMEBREW_PREFIX/Cellar/[email protected]" ]; then
ln -nfs $HOMEBREW_PREFIX/Cellar/[email protected]/3*(On[1]) ~/.pyenv/versions/3.10
fi


if [ -e "$HOMEBREW_PREFIX/Cellar/[email protected]" ]; then
ln -nfs $HOMEBREW_PREFIX/Cellar/[email protected]/3*(On[1]) ~/.pyenv/versions/3.9
fi

if [ -e "$HOMEBREW_PREFIX/Cellar/[email protected]" ]; then
ln -nfs $HOMEBREW_PREFIX/Cellar/[email protected]/3*(On[1]) ~/.pyenv/versions/3.8
fi

cd ~/.pyenv/versions/3/bin
cp -Rf python3.12 python3
cp -Rf python3 python
cp -Rf pip3.12 pip3
cp -Rf pip3 pip
cp -Rf pydoc3.12 pydoc3
cp -Rf python3.12-config python3-config
cp -Rf 2to3-3.12 2to3
cp -Rf idle3.12 idle3
ln -nfs wheel3.12 wheel3

if [ -e ~/.pyenv/versions/3.11 ]; then
cd ~/.pyenv/versions/3.11/bin
cp -Rf python3.11 python3
cp -Rf python3 python
cp -Rf pip3.11 pip3
cp -Rf pip3 pip
cp -Rf pydoc3.11 pydoc3
cp -Rf python3.11-config python3-config
cp -Rf 2to3-3.11 2to3
cp -Rf idle3.11 idle3
ln -nfs wheel3.11 wheel3
fi

if [ -e ~/.pyenv/versions/3.10 ]; then
cd ~/.pyenv/versions/3.10/bin
cp -Rf python3.10 python3
cp -Rf python3 python
cp -Rf pip3.10 pip3
cp -Rf pip3 pip
fi

if [ -e ~/.pyenv/versions/3.9 ]; then
cd ~/.pyenv/versions/3.9/bin
cp -Rf python3.9 python3
cp -Rf python3.9 python
cp -Rf pip3.9 pip3
cp -Rf pip3.9 pip
fi

if [ -e ~/.pyenv/versions/3.8 ]; then
cd ~/.pyenv/versions/3.8/bin
cp -Rf python3.8 python3
cp -Rf python3.8 python
cp -Rf pip3.8 pip3
cp -Rf pip3.8 pip
fi
```
45 天前
回复了 fusi 创建的主题 Visual Studio Code 想找一种 vscode 扩展
我也是这么用的,不过是在 Emacs 里:

```
(let ((result '()))
(dolist (elem (append lx/dirs lx/demo-files lx/config-files lx/org-files lx/cheatsheets lx/server-files) result)
(let ((kbd (nth 0 elem))
(func-name (nth 1 elem))
(dir (nth 2 elem)))
(eval `(lx/make-open-file-function ,func-name ,dir))
(add-to-list 'result kbd t)
(add-to-list 'result (intern (format "lx/open-file-%s" func-name)) t)))
(apply 'spacemacs/set-leader-keys result))
```

我觉得你可以尝试自己实现一下,顺便也就学会用 vscode 了
47 天前
回复了 lucasj 创建的主题 程序员 推荐几个你一直在用的开源项目工具
48 天前
回复了 wato 创建的主题 问与答 面对文明冲突,算不算一种精神疾病?
东北素质确实稍微低点,但是全国也都不怎么高,这是历史上多少次民族融合的结果
docker / k8s 不都是用来解决部署问题的吗,为什么要在开发机笔记本弄这些。。。
冷知识:macOS(包括 Mac OS X) 只有 Mac OS X 10.7 Lion 是类 UNIX 系统,因为这个版本没有获得 Open Group 的 UNIX03 认证 😂
66 天前
回复了 jeffson 创建的主题 问与答 大家多长时间给自己电脑做个保养呢?
每天做啊

brew upgrade ; brew post-update ; brew cleanup ; brew list --casks | xargs -I {} brew upgrade --cask {}; brew cleanup;
JB 家的 IDE 不是支持同时开多个 projects 吗,为什么需要开两个 IDEA ?
101 天前
回复了 magic3584 创建的主题 Apple 下次电脑硬盘一定要买 1t 的了
做 iOS/macOS 开发的硬盘起码要 2TB 起步
未完成九年义务教育,不犯法吗
问这种问题,不把公司名字分享一下,大家好避避坑,活该你赔
1  2  3  4  5  6  7  8  9  10 ... 101  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2654 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 41ms · UTC 15:19 · PVG 23:19 · LAX 08:19 · JFK 11:19
Developed with CodeLauncher
♥ Do have faith in what you're doing.