TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Perl saved my vacation

34 点作者 mudge大约 16 年前

2 条评论

chops大约 16 年前
I had a similar experience several years ago, though not vacation related. I was testing a script I was writing, and had a critical typo, which ended up wiping out (rm -fr) all my website code (it wasn't a business thing yet, so I wasn't taking backups in any reliable manner).<p>After my heart skipping a beat realizing I didn't have any decently recent backups, I unmounted the partition, whipped out perl and scanned the device for instances of "&#60;?" and grabbing the following 5000 bytes, dumping the results to a collection of incrementally named files.<p>I had to manually go through the files, clean them up, and remember what their filename was based on the code, but that wasn't as bad as it sounds. The hardest part was the conflicting versions, since there were lots and lots of remnants from old replaced files there. But about 8 hours later, I had everything recovered.<p>Backups went on a cronjob after that.
almost大约 16 年前
Totally off topic. But 500 photos in a day!! I just don't understand why people's reaction to going to beautiful places is to spend the day looking down the view finder of a camera.
评论 #585606 未加载
评论 #585232 未加载
评论 #585290 未加载
评论 #585536 未加载
评论 #585407 未加载
评论 #585342 未加载
评论 #585579 未加载
评论 #585229 未加载