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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Useful scripts and environment setup for coding in VPS

44 点作者 browsergrip超过 4 年前

8 条评论

akx超过 4 年前
The install scripts lack `set -e` (or `set -xeuo pipefail`, which is what I&#x27;ve memorized), so if a command fails, the scripts just keep on steamrolling forward.<p>Then again, these scripts are clearly tailored for OP, since they contain their name and email, so it&#x27;s... not like these would be usable as-is for anyone else.<p>(Also, why is this published on Npm?)
评论 #24656757 未加载
评论 #24649705 未加载
dhanvanthri超过 4 年前
For the last couple of days, I&#x27;ve been trying to get a static website up using hugo (emacs + ox-hugo), and I&#x27;ve been using tramp to ssh into the machine and do my work.<p>Tramp is literally magic. It just puts the right text into your buffer, where all the tools you use on your machine are just available by default. Even org exports and the like behave as expected, outputting the resultant file into the correct dir on the remote machine.<p>I&#x27;ve been using emacs as a &lt;50IQ user for about a year now. I&#x27;ve yet to write a single line of Elisp (apart from use-package declarations). It&#x27;s awesome!
评论 #24656781 未加载
toyg超过 4 年前
<i>&gt; # uncomment for a colored prompt, if the terminal has the capability; turned off by default to not distract the user: the focus in a terminal window should be on the output of commands, not on the prompt</i><p>:eyeroll:<p>What a horrible attitude. The point of coloring is precisely to <i>help users focus on the output that matters</i>, rather than forcing them to parse and reparse a chunk of stuff they don&#x27;t care about. If the prompt is colored, my brain can filter it out much faster than if it isn&#x27;t.<p>By all means disable color by default for backward-compatibility purposes or to err on the safe side, but don&#x27;t lecture people with rubbish arguments...
评论 #24649698 未加载
评论 #24656853 未加载
评论 #24649691 未加载
_def超过 4 年前
This is so specialized, I really can&#x27;t think of a use for this other than for the one who wrote it.<p>Thanks for sharing though, it&#x27;s always interesting to me to get to know the workflows of other people!
评论 #24649858 未加载
t0astbread超过 4 年前
I use something similar to configure my entire desktop from a default Debian install using idempotent shell scripts. The repo isn&#x27;t public since it contains a lot of sensitive information but I&#x27;m currently developing something based on that for a server I&#x27;m working on: <a href="https:&#x2F;&#x2F;github.com&#x2F;T0astBread&#x2F;easymark-server-config" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;T0astBread&#x2F;easymark-server-config</a>
评论 #24650061 未加载
评论 #24650046 未加载
xaduha超过 4 年前
&gt; echo &quot;echo 3 &gt; &#x2F;proc&#x2F;sys&#x2F;vm&#x2F;drop_caches&quot; | sudo sh<p>khm<p><pre><code> sudo sysctl vm.drop_caches=3</code></pre>
评论 #24649633 未加载
robenkleene超过 4 年前
I’d love to hear more specifics about what kind work you do. I saw Node, so I’m guessing backend Node development? Do you do front end too? If so, what’s your workflow for running a dev web server and accessing it from a browser?
评论 #24650041 未加载
sourceless超过 4 年前
OP might want to look up NixOS, which would make this many times easier. Or consider setting up a pre-configured image.
评论 #24649733 未加载