lululau

lululau

V2EX 第 15170 号会员,加入于 2011-12-23 18:29:12 +08:00
今日活跃度排名 15173
11 G 1 S 8 B
根据 lululau 的设置,主题列表被隐藏
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
lululau 最近回复了
还自然排序,有够扯的

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.
摩托车不算机动车吗,堵车的话,四轮机动车堵,两轮的机动车就不堵了?什么原理?
4 天前
回复了 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 一路上升来的,没感觉到明显的卡顿
15 天前
回复了 czd670 创建的主题 Apple Mac 远程 Mac,什么方案比较靠谱?
最靠谱的方式通过 VPN 放到一个网里,然后 ssh 还是 VNC 就随意了

VPN 也有两种方案:1. 公司有 VPN Server 2. 家里装个有外网 IP 的宽带,在家里开个 VPN Server
18 天前
回复了 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
```
43 天前
回复了 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 了
45 天前
回复了 lucasj 创建的主题 程序员 推荐几个你一直在用的开源项目工具
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1147 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 11ms · UTC 18:26 · PVG 02:26 · LAX 11:26 · JFK 14:26
Developed with CodeLauncher
♥ Do have faith in what you're doing.