Hacker Newsnew | past | comments | ask | show | jobs | submit | mattrighetti's commentslogin

First time I hear about DietPi OS, does it offer a headless distro?

Yes, you can setup the entire OS through dietpi terminal utilities over ssh.

Heard too many horror stories, pass


I’ve just released v2.0 of Kintoun (https://kintoun.app), an iOS client for Cloudflare that I’ve been building for quite a while now.


> Ngl I’m reading this article after having used ai to build a beautiful front end that is pixel perfect.

Was about to say the same thing


I’ve just released v2 of https://kintoun.app which is something I’ve been working on for quite a while now.

It’s an iOS client for Cloudflare and it covers a lot of resources with this last release.

Next bit of work is to clean the swift sdk a bit and make it open source, it’s been heavily inspired by the python-cloudflare sdk.


I have a summary alias that kind of does similar things

  # summary: print a helpful summary of some typical metrics
  summary = "!f() { \
    printf \"Summary of this branch...\n\"; \
    printf \"%s\n\" $(git rev-parse --abbrev-ref HEAD); \
    printf \"%s first commit timestamp\n\" $(git log --date-order --format=%cI | tail -1); \
    printf \"%s latest commit timestamp\n\" $(git log -1 --date-order --format=%cI); \
    printf \"%d commit count\n\" $(git rev-list --count HEAD); \
    printf \"%d date count\n\" $(git log --format=oneline --format=\"%ad\" --date=format:\"%Y-%m-%d\" | awk '{a[$0]=1}END{for(i in a){n++;} print n}'); \
    printf \"%d tag count\n\" $(git tag | wc -l); \
    printf \"%d author count\n\" $(git log --format=oneline --format=\"%aE\" | awk '{a[$0]=1}END{for(i in a){n++;} print n}'); \
    printf \"%d committer count\n\" $(git log --format=oneline --format=\"%cE\" | awk '{a[$0]=1}END{for(i in a){n++;} print n}'); \
    printf \"%d local branch count\n\" $(git branch | grep -v \" -> \" | wc -l); \
    printf \"%d remote branch count\n\" $(git branch -r | grep -v \" -> \" | wc -l); \
    printf \"\nSummary of this directory...\n\"; \
    printf \"%s\n\" $(pwd); \
    printf \"%d file count via git ls-files\n\" $(git ls-files | wc -l); \
    printf \"%d file count via find command\n\" $(find . | wc -l); \
    printf \"%d disk usage\n\" $(du -s | awk '{print $1}'); \
    printf \"\nMost-active authors, with commit count and %%...\n\"; git log-of-count-and-email | head -7; \
    printf \"\nMost-active dates, with commit count and %%...\n\"; git log-of-count-and-day | head -7; \
    printf \"\nMost-active files, with churn count\n\"; git churn | head -7; \
  }; f"
EDIT: props to https://github.com/GitAlias/gitalias


Curious - why write it as a function in presumably .gitconfig and not just a git-summary script in your path? Just seems like a lot of extra escapes and quotes and stuff


It's a very old config that I copied from someone many years ago, agree that it's a bit hard to parse visually.


Not the poster, but one theory: so you only need to copy one file. Portability.


Looks like the above assumes a POSIX shell, so one could argue a dedicated script would actually be more portable.


Looks nice. Unfortunately I don't have log-of-count-and-email, log-of-count-and-day or churn



You could make a local `man` page.


I was going to say, the OP's assertion that "they" are typing all these commands out by hand each time without an alias is just one of many tells that this post is AI slop. Nobody that proficient with shell commands should be typing any of those by hand more than once or twice without aliasing for reuse.


I see tons of articles like this, and I have no doubt sqlite proved to be a great piece of software in production environments, but what I rarely find discussed is that we lack tools that enable you to access and _maintain_ SQLite databases.

It's so convenient to just open Datagrip and have a look at all my PostgreSQL instances; that's not possible with sqlite AFAIK (not even SSH tunnelling?). If something goes wrong, you have to SSH into the machine and use raw SQL. I know there are some cool front-end interfaces to inspect the db but it requires more setup than you'd expect.

I think that most people give up on sqlite for this reason and not because of its performance.


I have a project to help with that:

  uvx datasette data.db
That starts a web app on port 8001 that looks like this:

https://latest.datasette.io/fixtures



> As these were not logistical flights, they were not covered by the bilateral treaty governing U.S. military bases in Italy which allow for logistical and technical use; that led Defense Minister Guido Crosetto to deny the planes the use of the Sigonella base since permission in this case would need approval from the Italian parliament.


And:

> their flight plan was not communicated in advance to the Italian air force general staff, nor had the American aircraft received authorization to land,

Sounds like they might have gotten authorization if they had just told them in advance.


What is a logistical flight?


Cargo, passengers?

Versus combat operations.


[flagged]


This isn't the place for that


Yeah, I remember I’ve seen those signs in Luxembourg and Germany as well! We don’t have that in Italy though


Website has been hugged


Thats not good advertising for raris Performance claims.


Fair point! To be clear: rari handled the traffic perfectly fine - the issue was an overly defensive rate limiter I had configured (and it was grouping proxy traffic incorrectly). The framework itself was cruising, I just had the safety rails set too tight. Adjusted now and it's handling the load as expected!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: