TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

100 Lines of C, in a Closet (2020)

172 pointsby rrampageover 1 year ago

8 comments

mananaysiempreover 1 year ago
&gt; Plus using your own machines allows you to do <i>immoral stuff</i>, such as pushing 100 MB files, if you feel like it. I have versioned controlled, quite a few mega-repos where the primary content is not text files at all. Shame me all you want, but being able to time-travel through my photo&#x2F;video collections is fantastic. I don&#x27;t really care that my 2 GB repo takes 4 GB on disk...<p>If one wants to avoid the downsides of just checking in big binary blobs, git-annex[1] is fantastic for maintaining archives (<i>not</i> backups). It also tracks locations of files (which of my drives is this file on?) in a completely peer-to-peer eventually consistent manner. It has a nearly unreasonable amount of features in multiple layers, though.<p>(Tip: set annex.largefiles[2] to avoid messing up your repo when you inevitably type `git add` instead of `git annex add`.)<p>[1] <a href="https:&#x2F;&#x2F;git-annex.branchable.com&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;git-annex.branchable.com&#x2F;</a><p>[2] <a href="https:&#x2F;&#x2F;git-annex.branchable.com&#x2F;tips&#x2F;largefiles&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;git-annex.branchable.com&#x2F;tips&#x2F;largefiles&#x2F;</a>
ncrucesover 1 year ago
I used to do the same, without public IP from the VPS.<p>I just used Cloudflare, and a Go package [1] to lock down access to anyone but Cloudflare (because at the time their tunnels required Argo).<p>I now also use a VPS that&#x27;s dirt cheap [2] if you make it IPv6 only (I have 3 in 3 different availability zones for about 1.5€&#x2F;mo, it&#x27;s insane). Cloudflare exposes it as IPv4+IPv6.<p>Compute light stuff comes from the VPS, compute heavy is proxied home instead.<p>[1]: <a href="https:&#x2F;&#x2F;pkg.go.dev&#x2F;github.com&#x2F;ncruces&#x2F;go-cloudflare&#x2F;origin" rel="nofollow noreferrer">https:&#x2F;&#x2F;pkg.go.dev&#x2F;github.com&#x2F;ncruces&#x2F;go-cloudflare&#x2F;origin</a><p>[2]: <a href="https:&#x2F;&#x2F;www.scaleway.com&#x2F;en&#x2F;stardust-instances&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.scaleway.com&#x2F;en&#x2F;stardust-instances&#x2F;</a>
ktpsnsover 1 year ago
I love this. Somehow people forgot how far simple things such as a VPS, some reverse proxies and some hand-written short tools in whatever language can bring you. For me, crappy little tools is the way to success. Perfection is the opposite of good.
评论 #38720018 未加载
bayindirhover 1 year ago
&gt; It can do live migrations to any device on my LAN, with zero downtime. KVM is really cool! It transfers the RAM continuously until it&#x27;s fully synced. This takes about 30 seconds.<p>Yes! It can take hours or days if you&#x27;re moving a large machine with tons of traffic, too. Everything is fast for small <i>n</i>.<p>This doesn&#x27;t make it less cool, though.
评论 #38719844 未加载
noman-landover 1 year ago
Nice to see RSS still being discovered in 2020. RSS rules.
aphraxover 1 year ago
Had no idea about DRBD (Distributed Replicated Block Device). Thats my evening sorted...
评论 #38719255 未加载
评论 #38720880 未加载
up2isomorphismover 1 year ago
You need to know C and bunch of other things which are lost arts since kids are learning computer using “cloud”.
alanjayover 1 year ago
Building a tiny Web server, with dB and stuff was the subject of an old FOSDEM talk.
评论 #38725768 未加载