×

Falcon

  • Falcon
    2022-07-08 00:38
    #稍后阅读# 在线多人文档的实现细节,可以看一下 yjs 的 demo:

    Yjs is a modular framework for syncing things in real-time - like editors!(一个专注实时同步的模块化框架-=比如编辑器)



    https://docs.yjs.dev/getting-started/a-collaborative-editor
  • Falcon
    2022-07-07 12:09
    深空灰500G硬盘的MacBook Air到了,这下可放心了,不再为存储焦虑。
  • Falcon
    2022-07-06 07:50
    #daily tips# #php# nginx 中 fastcgi_intercept_errors on 表示接收fastcgi输出的http 1.0 response code,后端php可以输出header指示nginx输出什么错误页面。开启这个之后,我们才能在php里面自定义错误代码和页面。
  • Falcon
    2022-07-05 16:59
    #daily tips# 很不错的Linux可视化工具,能非常直观地看到 cpu 、内存、磁盘使用等情况,跟htop有异曲同工之妙。
    https://github.com/aristocratos/btop
    同类还有bottom:https://github.com/ClementTsang/bottom
    gtop:https://github.com/aksakalli/gtop
    gotop:https://github.com/xxxserxxx/gotop
    其他替换:
    these have been around for years. All of them are terminal-based tools.

    Grandpa top. Written 36 years ago, C, installed by default on almost every Unix descendant.
    bashtop, in pure bash! Beautiful and space efficient, and deserves special comment.
    bpytop, @aristocratos, the author of bashtop, rewrote it in Python in mid-2020; it's the same beautiful interface, and a very nice alternative.
    htop. A prettier top. Similar functionality. 16 years old!
    atop. Detailed process-focused inspection with a table-like view. Been around for 9 long years.
    iftop, a top for network connections. More than just data transfer, iftop will show what interfaces are connecting to what IP addresses. Requires root access to run.
    iotop, top for disk access. Tells you which processes are writing to and from disk space, and how much. Also requires root access to run.
    nmon a dashboard style top; widgets can be dynamically enabled and disabled, pure ASCII rendering, so it doesn't rely on fancy character sets to draw bars.
    ytop, a rewrite of gotop (ca. 3.0) in Rust. Same great UI, different programming language.
    slabtop, part of procps-ng, looks like top but provides kernel slab cache information! Requires root.
    systemd-cgtop, comes with systemd (odds are your system uses systemd, so this is already installed), provides a resource use view of control groups -- basically, which services are using what resources. Does not require root to run.
    virt-top top for virtualized containers (VMs, like QEMU).
    ctop top for containers (LXC, like docker)

     
  • Falcon
    2022-07-05 06:27
    charles 难用的一匹,建议换 whistle 或者 proxyman
  • Falcon
    2022-07-04 06:36
    #daily tips# 测试php-fpm配置是否正确



    php-fpm -t

    [04-Jul-2022 14:34:52] NOTICE: configuration file /usr/local/etc/php/8.0/php-fpm.conf test is successful
  • Falcon
    2022-07-03 13:03
    躺平才是唯一的答案?
  • Falcon
    2022-07-03 09:11
    也许审美是一个非常主观的感受,银色和深空灰都各有千秋,但在实用性的场景下,尤其是经常要需要面对不确定的光照环境,无论室内还是室外,深空灰的Macbook air相比银色有一个非常诱人、称得上杀手级的优势,就是在强光下的镜面反射要比银色弱很多,这样的效果就是不刺眼,就冲着这一点,毫无疑问我必须得选深空灰啊!什么掉色、阴郁之类的小缺点完全可以靠边站。

    准备再蹲一个深空灰16G-512G的版本,因为256G的固态硬盘真的有存储焦虑,在我装上16.99G的Xcode ,卸载掉自带的Page,Numbers、iMovie,keynote、酷乐队之后,存储空间只剩84G了,只有1/3。
    看上去也不少,可如果再考虑未来几年的可能性,继续开发别的项目,Docker镜像、设计软件、那就有点捉襟见肘了。当然省点用也勉强够用,但多花不1300~1500块不用时时担心空间不够,我觉得值得投资。