HNHacker News
TopNewBestAskShowJobs

xomodo

16 karma · joined October 2, 2017

dev from DK
submissionscomments
xomodo··on GitLab discovers widespread NPM supply chain attack
I think I found some repos here: https://github.com/search?q=in:description+Sha1-Hulud&type=r...
xomodo··on Production-Grade Container Deployment with Podman Quadlets – Larvitz Blog
> 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.

xomodo··on Litestream v0.5.0
Thx. The only problem I have with litestream binary is ~31Mb !?

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

xomodo··on SSH as a Sudo Replacement
man chattr
xomodo··on Tips on adding JSON output to your command line utility. (2021)
I don't mind json outputs, but pls keep cli options as low letters, eg.: 'kubectl get pods -o json'.
xomodo··on Setting up PostgreSQL for running integration tests
Xunit offers several methods: https://xunit.net/docs/shared-context
xomodo··on Ask HN: SQLite in Production?
Sounds complicated. What object storage you use? If on aws, 's3 sync' might help.
xomodo··on The xz attack shell script
Thx. Timeline shows attack begun by adding ignore entry in .gitignore file. That is hard to detect nowadays.
xomodo··on Belgrade's kafana pub culture
So true. Even small children are having same attitude. This is why many of us had to move abroad.
xomodo··on My favourite API is a zipfile on the European Central Bank's website
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;'
xomodo··on Terraform best practices for reliability at any scale
Root-module: contains resources, sub-modules, incl. remote module calls.

Stack: deployable with hardcoded tfstate and tfvars configs.

xomodo··on Terraform best practices for reliability at any scale
Use 'terraform destroy' during CI phase. That is your pre-prod.
xomodo··on Do-nothing scripting: the key to gradual automation (2019)
Have you tried emacs org mode?
xomodo··on Automating a Software Company with GitHub Actions
Interesting approach. Do you mind sharing link with repos?
xomodo··on How Git servers work, and how to keep yours secure
How could one selfhost localhost.run setup on own wildcard domaine?
xomodo··on VSCode, Dev Containers and Docker
Looks like gitpod to me: https://github.com/gitpod-io/gitpod
xomodo··on Show HN: Tunshell – Remote shell into ephemeral environments behind NAT/firewall
Im using this IAM policy on ec2 instance profile: "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore"
xomodo··on Show HN: Tunshell – Remote shell into ephemeral environments behind NAT/firewall
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.
xomodo··on Show HN: Aviary.sh – A tiny Bash alternative to Ansible
Try docker contexts: https://www.docker.com/blog/how-to-deploy-on-remote-docker-h...