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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Today in History, Brought to You by Unix

80 点作者 thefilmore超过 6 年前

9 条评论

peterwwillis超过 6 年前
If you like Calendar, you might like Fortune. It&#x27;s usually in the &quot;bsdgames&quot; package (<a href="https:&#x2F;&#x2F;www.polyomino.org.uk&#x2F;computer&#x2F;software&#x2F;bsd-games&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.polyomino.org.uk&#x2F;computer&#x2F;software&#x2F;bsd-games&#x2F;</a>). You can add it to your bashrc file to see a new fortune each time you open your shell.<p><pre><code> ~$ fortune Overload -- core meltdown sequence initiated. ~$ fortune Politicians are the same all over. They promise to build a bridge even where there is no river. -- Nikita Khrushchev ~$ fortune Distress, n.: A disease incurred by exposure to the prosperity of a friend. -- Ambrose Bierce, &quot;The Devil&#x27;s Dictionary&quot; ~$ fortune The Preacher, the Politician, the Teacher, Were each of them once a kiddie. A child, indeed, is a wonderful creature. Do I want one? God Forbiddie! -- Ogden Nash</code></pre>
评论 #17982171 未加载
评论 #17982459 未加载
评论 #17981167 未加载
AdmiralAsshat超过 6 年前
I think the coolest part of this was looking at the shell script for &#x2F;usr&#x2F;bin&#x2F;calendar. It&#x27;s personally gratifying to know that even the UNIX guys wrote scripts that shellcheck.net would crap all over:<p><a href="https:&#x2F;&#x2F;imgur.com&#x2F;o4gCthk" rel="nofollow">https:&#x2F;&#x2F;imgur.com&#x2F;o4gCthk</a>
bespoke_engnr超过 6 年前
Oh cool!<p>$ calendar<p>Sep 13* Rosh Chodesh Tishrei (Beginning of the month of Tishrei)<p>Sep 13* First Day of Rosh Hashanah (Jewish New Year; 5768; sabbatical)<p>Sep 13 Barry Day commemorates the death of Commodore John Barry, USA<p>Sep 13 Chiang Kai-Shek becomes president of China, 1943<p>Sep 13 Building of Hadrian&#x27;s Wall begun, 122<p>Sep 13 British defeat the French at Abraham near Quebec City, 1788<p>Sep 13 58� C (136.4� F) measured at el Azizia, Libya, 1922<p>Sep 13 Walter Reed born, 1851<p>Sep 14 Francis Scott Key writes words to &quot;Star Spangled Banner&quot;, 1814<p>Sep 14* Rosh Hashanah (sabbatical)<p>Sep 14 Battle of San Jacinto in Nicaragua<p>Sep 14 Frodo &amp; Bilbo&#x27;s birthday<p>Sep 14 The US Selective Service Act establishes the first peacetime draft, 1940<p>Sep 14 Salem, Massachusetts, is founded, 1629<p>Sep 14 Benjamin Franklin is sent to France as an American minister, 1778
contingencies超过 6 年前
Has anyone tried altering this to use the Wikipedia data? eg. <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;September_13" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;September_13</a><p>The most appropriate sections seem to be <i>Events</i> and <i>Holidays and Observances</i>. There are also links to parallel daily databases by the BBC and New York Times.
stepvhen超过 6 年前
It comes in the base of OpenBSD, and I use it in lieu of a calDAV server. Being able to quickly jot down an appointment and recall it on the command line is hecka useful.
nineteen999超过 6 年前
Why anyone would bother using UNIX or its inferior clones (eg. Windows NT) in 2018 is <i>beyond</i> me.<p>The year of the Linux desktop already has been and gone, back in 2001.<p>We are spoiled for choice with a variety of free, modern, microkernel based desktop OS&#x27;s written in safe languages, such as Rust, Golang, Haskell and Java. Why people persist with this monolithic, unsafe, ancient artifact of the early days of computing is anyone&#x27;s guess.
petercooper超过 6 年前
It&#x27;s not on my macOS, though I am on 10.12. If it&#x27;s on macOS now, it means they&#x27;ve added it in the past couple of years which would be interesting.<p>(Edit: Seems like it might just be me :-D)
评论 #17979212 未加载
评论 #17983800 未加载
评论 #17979136 未加载
评论 #17979264 未加载
评论 #17979258 未加载
bitofhope超过 6 年前
I would not have thought of using cpp(1) like that. I will be using calendar fron now on. Thanks for the tip.
fosco超过 6 年前
super neat,<p>anyone know of a way to search through the history using less or other?
评论 #17979735 未加载