News for hackers. Stuff that matters.

xomodo

> How would you package this inside a Git repo?

There are many ways to do that. Start with a simple repo and spin up a VM instance from the cloud provider of your choice. Then integrate the commands from this article into a cloud-init configuration. Hope you get the idea.

Re:Litestream v0.5.0 Is Here on Sunday October 05, 2025 @04:16AM (#45479838)
Thx. The only problem I have with litestream binary is ~31Mbm !?

This why I prefer to take backup stuff in a side container, eg: https://github.com/atrakic/gin-sqlite/blob/main/compose.yml

As a side note, you might consider revisiting your dockerfiles and skip litestream build steps, eg. in your final stage just add line like this:

COPY --from=litestream/litestream /usr/local/bin/litestream /bin/litestream

Re:SSH as a Sudo Replacement on Sunday June 23, 2024 @01:54AM (#40765086)
man chattr
I don't mind json outputs, but pls keep cli options as low letters, eg.: 'kubectl get pods -o json'.
Re:Setting up PostgreSQL for running integration tests on Friday April 19, 2024 @04:11PM (#40091441)
Xunit offers several methods: https://xunit.net/docs/shared-context
Re:Ask HN: SQLite in Production? on Sunday April 07, 2024 @03:01PM (#39962905)
Sounds complicated. What object storage you use? If on aws, 's3 sync' might help.
Re:The xz attack shell script on Tuesday April 02, 2024 @05:15PM (#39910922)
Thx. Timeline shows attack begun by adding ignore entry in .gitignore file. That is hard to detect nowadays.
So true. Even small children are having same attitude. This is why many of us had to move abroad.
Thx. I have extended a bit as a script:

    # !/bin/bash
    ARG1=${1:-'select Date from stdin order by USD asc limit 1;'}
    curl -o - -Ls https://www.ecb.europa.eu/stats/eurofxref/eurofxref-hist.zip \
  | funzip | sqlite3 -csv ':memory:' '.import /dev/stdin stdin' "${ARG1}"

    # Usage:
    $ ./run.sh 'select * from stdin limit 1;'
Re:Terraform best practices for reliability at any scale on Sunday August 06, 2023 @11:56AM (#37023264)
Root-module: contains resources, sub-modules, incl. remote module calls.

Stack: deployable with hardcoded tfstate and tfvars configs.

Re:Terraform best practices for reliability at any scale on Sunday August 06, 2023 @11:50AM (#37023197)
Use 'terraform destroy' during CI phase. That is your pre-prod.
Re:Do-nothing scripting: the key to gradual automation (2019) on Wednesday November 03, 2021 @07:39AM (#29093320)
Have you tried emacs org mode?
Re:Automating a Software Company with GitHub Actions on Thursday August 19, 2021 @03:35PM (#28238303)
Interesting approach. Do you mind sharing link with repos?
Re:How Git servers work, and how to keep yours secure on Friday March 12, 2021 @10:48PM (#26443753)
How could one selfhost localhost.run setup on own wildcard domaine?
Re:VSCode, Dev Containers and Docker on Saturday January 23, 2021 @08:24AM (#25882025)
Looks like gitpod to me: https://github.com/gitpod-io/gitpod
Im using this IAM policy on ec2 instance profile: "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore"
For accessing aws ec2 instances behind nat/fw add this lines ~/.ssh/config:

  Host i-* mi-*
   ProxyCommand sh -c "aws ssm start-session --target %h --document-name AWS-StartSSHSession --parameters 'portNumber=%p'"
   UserKnownHostsFile /dev/null
   StrictHostKeyChecking no
   User ubuntu
   LogLevel ERROR
   DynamicForward 5060
Usage: `ssh -i key.pem i-0xxxxxxxxxx`. Last config line can be used for optional proxy browsing.