
🐱

Today is another day.

1.安装npm
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"
# Download and install Node.js:
nvm install 22
# Verify the Node.js version:
node -v # Should print "v22.17.0".
nvm current # Should print "v22.17.0".
# Verify npm version:
npm -v # Should print "10.9.2".
2.设置terminal环境 使用API模式
# https://aistudio.google.com/app/apikey google账户Gemini api
echo 'export GEMINI_API_KEY="AIzaSyAO0qfzddYCzoPXdRdnXadsDEMP10cOXiw"' >> ~/.zshrc
source ~/.zshrc
3.安装Gemini CLI 并选择API模式
npm install -g @google/gemini-cli
gemini
4.运行
#terminal内之间执行
gemini


在执行某些 iOS 快捷指令(Shortcut)时,手机顶部总是会弹出“轻点以回应”的提示消息,非常烦人,而且在系统设置中的通知设置界面根本找不到快捷指令相关的通知设置(目前使用 iOS 15.7.1),所以无法直接关闭。
在网上反复查找关闭的方法,花了接近 2 小时,终于借助 网上的一篇攻略文章 把这个问题解决了。
sihp1020.dl文件至/etc目录VI /etc/hotplug.d/usb/Printer-HP1020#!/bin/sh set -e # 固件路径 FIRMWARE=/etc/sihp1020.dl # 打印机路径,可以从OpenWRT的USB打印机界面中中查看 DEVICE=/dev/usb/lp0 # Debug Log File LOGFILE=/tmp/hp1020 if [ "$PRODUCT" = "3f0/2b17/100" -a "$ACTION" = "bind" -a "$DEVTYPE" = "usb_device" ]; then echo "$(date): USB printer binded. Trying to upload firmware..." >> $LOGFILE cat $FIRMWARE > $DEVICE echo "$(date): Success. Done." >> $LOGFILE exit fi
加入首次启动 local startup /etc/rc.local
cat /etc/sihp1020.dl >> /dev/usb/lp0
打印机开机后触发USB热插拔事件,HP1020打印机绿灯常亮并立即进行自检,然后红灯绿灯交替闪烁再次自检,随后绿灯常亮
出处: https://www.pizzayy.com/openwrt-实现hp1020打印机网络共享.html?doing_wp_cron=1714973122.5799219608306884765625

Have you encountered the “Package crypto/ecdh is not in GOROOT” error while working with Go in Linux? This error can be frustrating, but it’s typically due to misconfigurations or outdated Go installations. In this quick guide, we’ll walk you through the steps to resolve this issue.
If you suspect that your current Go installation is causing the problem, you can uninstall it before re-installing the latest version. Use the following commands:
$ sudo apt-get remove golang-go
2. Remove the golang-go dependencies:
$ sudo apt-get remove — auto-remove golang-go
3. Uninstall the existing Go package:
$ sudo rm -rvf /usr/local/go
Now, let’s install the latest Go version:
2. Extract the archive file:
$ sudo tar -xvf go1.21.3.linux-amd64.tar.gz
3. Place the extracted Go directory in the desired location (e.g., /usr/local):
$ sudo mv go /usr/local
To configure Go properly, you need to set up environment variables:
$ export GOROOT=/usr/local/go
2. Define GOPATH as your Go workspace directory:
$ export GOPATH=$HOME/go
3. Add Go binary paths to your PATH:
$ export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
4. Reload environment variables:
$ source ~/.profile
Finally, verify your Go installation to ensure it’s working correctly:
$ go version
With these steps, you should have successfully resolved the “Package crypto/ecdh is not in GOROOT” error and updated your Go installation to the latest version. Your Go environment should now be correctly configured and ready for your projects. Happy coding!
Reddit问答版:在你曾经受到的建议里,有哪些是你开始时并不理解但在后来证明非常明智的?
-「爱并不能解决一切问题。」这是一个非常难以学会的事情,尤其是当你如此爱一个人的时候。但有时候,再多的爱也不足以拯救他们免于自我毁灭。他们必须足够爱自己,才会想要改变,而无论你给予他们多少爱,都无法强迫他们这样做。
source:r/AskReddit/comments/1b8sfer/whats_a_piece_of_advice_youve_received_that
【假如大多数人没有“随大流”,情况会如何?|#带着问题去读书#】( 文|热拉尔丁·施瓦茨 )我对纳粹的兴趣并非与生俱来。我的祖父母既不是受害者,也不是加害者。他们当年既没有什么英勇事迹,也没有犯下狂热的罪过。他们只是一些“Mitläufer”,一些“随大流者”,简言之,他们的态度和当时大多数德国民众的态度一样,仅仅是些许盲从和懦弱一点点累积、叠加在一起,便为人类历史上最为令人发指的国家犯罪铺平了道路。在德国战败后的多年时间里,我的祖父母同大多数德国人一样,他们没有意识到,假如没有“随大流者”的配合——即便是个体层面上那些微不足道的配合——希特勒也许无法犯下如此规模的罪行。
元首本人意识到了这一点,经常试探他的人民,想要摸清民众的底线在哪儿,哪些事情能接受,哪些不能接受,同时用纳粹和反犹太主义的宣传充斥民众的视线。德国第一次有组织地大规模驱逐犹太人的行动发生在德国西南部,我的祖父母当时就生活在那里,这一行动即将成为一场对民众接受度底线的测试:1940年10月,超过6500名犹太人从德国的西南部被驱逐押运到法国西南部的居尔拘禁营(Gurs)。为了让公民们习惯这样的场面,警察部队小心翼翼地维持着若无其事的样子,避免付诸暴力,为了载人甚至租用了一些客车车厢,而不是后来使用的货车。纳粹决策层想要探个究竟,想弄清民众肚子里面到底装着什么。于是,他们故意在光天化日之下采取行动,数百名犹太人排成队列,被推搡着,拉着沉重的手提箱,穿过市中心,前往火车站,其中包括哭泣的孩子和疲惫的老人。这些景象就在公众眼前发生,但他们冷眼旁观,从未展示出人性的光辉。第二天,大区的地方长官们骄傲地向柏林报告称他们管辖下的大区是德国第一个清除了犹太人的地区。元首想必是欢欣鼓舞,他的人民对他是如此体谅,已经成熟到能够“随大流”了。( 本文为节选 )
http://t.cn/A6YjfX0i