長條貓 (@simbafs) header
長條貓 (@simbafs) profile picture

⟨Taiwan⟩ 我家貓貓叫花生 @peanutfs_tw 這是我男朋友 -› @Junter1523

NYCU
Joined February 2020
Photo by 長條貓 (@simbafs)Photo by 長條貓 (@simbafs)Photo by 長條貓 (@simbafs)Photo by 長條貓 (@simbafs)Photo by 長條貓 (@simbafs)Photo by 長條貓 (@simbafs)Photo by 長條貓 (@simbafs)Photo by 長條貓 (@simbafs)Photo by 長條貓 (@simbafs)Photo by 長條貓 (@simbafs)
長條貓 retweeted
几乎所有程序员都形成了一条安全本能:收到陌生人发来的求职测试项目时,绝不乱跑里面的 install.sh、绝不盲目执行 npm install 或 cargo build,先敲个 git status 或 git checkout 看看代码总归是绝对安全的吧?一位开发者在 r/programming 分享的真实遭遇,把这条安全常识彻底击碎了——攻击者把恶意载荷藏进了 ZIP 压缩包自带的 .git 目录里,有时你甚至只需要在终端里 cd 进那个文件夹,木马就已经在后台静默跑起来了。 事情源于猎头在 LinkedIn 上发来的一份待遇优厚的加密货币信用卡系统开发邀约,对方发来一个名为 Contract-2026.zip 的压缩包,声称求职合同、岗位说明和项目源码分别放在仓库的三个 Git 分支上。为什么攻击者非要传一个带完整 .git 目录的 ZIP 包,而不直接发 GitHub 仓库链接让你 git clone? 这就是整条攻击链最阴险的设计:当你执行普通的 git clone 时,Git 只会从远端拉取提交历史和文件对象,绝对不会把远端机器上的本地 .git/config 配置文件或本地钩子复制过来;但直接解压别人打包好的 ZIP,你就原盘继承了攻击者精心调教过的本地 Git 配置! 作者用归档查看器扒开 .git/config 发现了两处致命机关:第一,攻击者把 core.hooksPath 指向了极其隐蔽的 .git/objects/interrupt/ 目录(没人会去翻存放哈希对象的 objects 文件夹),并在里面塞了一个切换分支就会触发的 post-checkout 脚本;第二,配置里定义了一个名为 ltr 的自定义文件过滤器(clean = .git/ltr),并在 .git/info/attributes 里写下了星号通配符,强制对仓库内所有文件生效。一旦你在 README 引导下敲出 git checkout 切换分支,或者你的终端装了 Oh My Zsh、Starship、Powerlevel10k 等会在 cd 进目录瞬间自动调用 git status 刷新分支状态的主题插件,再或者你直接用 VS Code 打开了这个文件夹,Git 就会在检查工作区状态时立刻调用 .git/ltr 过滤脚本,甚至在 Windows 下也会直接借道 Git 自带的 sh.exe 拉起 curl 和 PowerShell 下载远控木马。记住铁律:任何带 .git 目录的不明压缩包,等于裸奔的可执行程序。
5
33
207
16,799
長條貓 retweeted
OpenStreetMap nigdy nie zawodzi. Na screenie Most Krymski.
23
158
6
4,436
104,151
原來世界各地的麥當勞都這樣 漢堡王好像比較不會這樣搞,他們的叫號螢幕是真的
Diz a Lei de Goodhart que "Quando uma medida se torna uma meta, ela deixa de ser uma boa medida." Esse painel do McDonald's é um testemunho dessa lei. Deve haver um uma meta rigorosa de tempo de entrega do pedido após o pagamento. Diante da pressão o que os funcionários fazem? Digitam como entregue os pedidos mesmo antes de iniciar o preparo. Quando pronto ficam chamando no berro cada número de pedido abaixo do painel feito para anuncia-lo. - "738! Pedido sete três oito!" O KPI deve estar lindo, dashboard todo verde. Os gestores devem estar satisfeitos, mas o tempo de atendimento continua sendo aquele que a equipe consegue entregar. Tenho certeza que em qualquer filial que pisam sem o crachá, à paisana só para matar a fome, devem testemunhar a fraude. Não há espaço para desconhecimento da situação É uma espécie de cuckold corporativo. Um fetiche em ser enganado por KPI.
1
203
所以這是黎曼猜想被真的證實了嗎
The Lean FRO and Mathlib Initiative have released a joint statement on the Lean verification of the Riemann Hypothesis. On November 20, Levent Alpöge released a proof of the Riemann Hypothesis as a Lean library of 17 million lines of code. Over the past day, the Lean and Mathlib communities worked together to verify it. The statement certifies the proof as correct and describes how it meets all necessary verification criteria. Congratulations to Levent on this achievement, and thank you to everyone in the community who contributed to the verification. Full statement: leanprover-community.github.…
1
1
169
我甚至還記得那隻手機的觸感
Finally, Android 2.1 Eclair on a phone from 2026...
1
4
246
那隻 Nexus S 應該還在我抽屜,理論上他應該還能開機
12
長條貓 retweeted
在家里玩游戏,结果玩到自己家? ? 这位住在佛罗里达州的GTA 6玩家在游戏中发现一栋公寓,外观竟然跟自己住的公寓一模一样 于是他赶紧跑到阳台一看,结果发现还真的就是自己家!
426
4,722
248
50,009
3,538,423
長條貓 retweeted
実はついったのURLの数字には、細かすぎる投稿時刻が残ってます。 𝕏.com/amanetoki7/status/2123839037568061684 ① 2の22乗(4194304)で割って、小数点以下を切り捨てます! ▶︎ 506362685577 ② それに 1288834974657 を足します(ついった向けの定数です) ▶︎ 1795197660234 (実はこれがもうUNIX時刻のミリ秒単位になってます!) ③ 秒単位にしたいので1000で割ります ▶︎ 1795197660 秒(余りの 234 はミリ秒なのであとで使います) ④ がんばってUNIX時刻を変換します(普通は変換サイト使え) 2026年の年始(UTC)が 1767225600 なので、そこから引くと 27972060 秒。 これを 86400(1日の秒数)で割ってみます。 ▶︎ 323 日 と 余り 64860 秒 ⑤ 日付を出します 2026年は平年なので、各月の1日までの経過日数はこうなってます。 [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334] 11月1日の 304 を超えてるので、323 - 304 = 19 日経過。 11月1日に19日を足して、11月20日になります! ⑥ 余りの秒数から「時・分・秒」を出します 余っていた 64860 秒を 3600(1時間の秒数)で割ります。 ▶︎ 18 時間 と 余り 60 秒(つまり1分0秒、きれいすぎ) つまり、③で取っておいたミリ秒も合わせると 2026年11月20日 18時01分00秒234(UTC)! ⑦ 最後に日本時間(+9時間)に直します 18時に9時間を足すと27時になるので、日付が1日進んで…… ▶︎ 2026年11月21日 03時01分00秒234(JST)になります!
10
114
21
877
59,804
這兩天在進行一個娛樂(? 純手工寫程式,不開任何 agent 也不開 GitHub Copilot,就像 2021 之前一樣 不過還是有開 ChatGPT 網頁版,但不直接複製,就當作 stackoverflow 用
1
17
594
長條貓 retweeted
KDE has a new official terminal, and you can install it from Flathub today. Kwi 0.1.0 is the first release of the Konsole alternative built on Ghostty's terminal engine. It adds global menus, an option to hide the tab bar for single tabs, last-used Ctrl+Tab order and translucent scrollbars, and it has passed KDE Review. Lead developer Eike Hein says next up is a Plasma setting to embed Kwi in apps like Dolphin, Kate and Yakuake, plus split panes.
14
47
7
599
17,677
之前被這個搞到好煩
Fixed: your text editing session stays open when switching windows or tabs.
2
128
how could they massacre my boy like that 😭 😭
3
73
長條貓 retweeted
The new Rust client's architecture allows us to bring more feature parity across platforms. Linux will now have overlay support as well as other features previously locked to Windows, and macOS will get them as well.
Fast launch times are cool, but actual usage is what matters. Check out the speed of the long-requested mobile account switcher on iOS on the new Rust client. And yes it is just as fast on Android and Desktop. We're still in testing for now but hope to get it out to you as soon as it's ready.
184
139
44
3,789
516,480
GTA6 可以摸貓咪!還會翻肚!
Melhor parte da gameplay até agora foi caçar gatos pra fazer carinho neles
1
150
手書き曲線をなぞるリンク機構を数値最適化で探してみた
8
76
9
690
39,927
長條貓 retweeted
時代力量每次給我的感覺就是「你們這些好人沒有打敗壞人,所以你們比壞人更壞」。 普發兩萬這題,全部都針對民進黨縣市長候選人來罵,甚至包含早就請假的委員們,國民黨跟民眾黨只有一句帶過……可以偏差成這樣真的是難看了。
13
59
4
525
8,198
右下角 OpenStreatMap
Race @GoogleMaps Pegman through Tokyo's Shibuya Scramble Crossing to reach the Google building 🏃 Built with Gemini 4 Neon, this 3D runner turns nearly 1M tokens of real OpenStreetMap data (654 roads, 70 rail lines, and 280 building footprints) into a playable arcade map with custom Web Audio.
2
5
394
長條貓 retweeted
using carbon with 4 hydrogen subagents. i call it... methane.
187
667
106
11,472
237,816
難精準分配用量難度不亞於分配餅乾的巧克力醬
2
113