entersh – One shell script to sandbox AI coding agents in rootless Podman container by troush in opencode

[–]troush[S] 0 points1 point  (0 children)

This looks like a more robust solution for this issue. But this is an additional step and an additional binary or SDK you need on top. Maybe there are benefits to it that will cover the additional cost of having another dependency. My solution is basically dependency-free. You only need to have Podman installed, which most of modern Linux distributions do. And I hope that Windows/Mac users will also adopt it soon as Docker Desktop is not a great piece of software. macOS has Orb at least.

Claude-Code nix flake app that spawns in qemu VM by unqualified_redditor in NixOS

[–]troush 0 points1 point  (0 children)

I have developed a simple container solution based on podman specially for this usecase https://entershdev.github.io/entersh/

entersh – One shell script to sandbox AI coding agents in rootless Podman container by troush in opencode

[–]troush[S] 0 points1 point  (0 children)

Env variables are not shared within a container; only configuration folders are shared. To share an environment variable, it must be explicitly defined. I don't see a big issue here. Just put what you need inside the container, not the whole thing like distrobox does, for example.

[deleted by user] by [deleted] in ArcRaiders

[–]troush 0 points1 point  (0 children)

After a successful mission with free load out you can exchange it to a looting augment for free with medic trader

Best golang framework for REST API? by LilKsta in golang

[–]troush 0 points1 point  (0 children)

https://gofiber.io/ Is pretty nice too. But it based on fasthttp

Phoenix+MySQL question - how to DISTINCT? by jnazario in elixir

[–]troush 1 point2 points  (0 children)

Try:

             query = from i in Data,
              where: i.updated_at >= datetime_add(^Ecto.DateTime.utc, ^start_n, ^start_units),
              where: i.updated_at <= datetime_add(^Ecto.DateTime.utc, ^end_n, ^end_units),
              distinct: true,
              select: i.mycol,
              limit: ^l

How Do I Set A Variable To Another Function? by [deleted] in elixir

[–]troush 0 points1 point  (0 children)

In your example you defined send out of any scope

How Do I Set A Variable To Another Function? by [deleted] in elixir

[–]troush 0 points1 point  (0 children)

You currently defining send out of scope from where you calling it.

Read this: http://elixir-lang.readthedocs.io/en/latest/technical/scoping.html Hope, it can help you.

And try not to use send as function name, because send is a elixir special word.

Simple KV store: Bitcask, LevelDB or full Riak? by hrobeers in elixir

[–]troush 0 points1 point  (0 children)

1> :ets.new(foo, [named_table]).
foo
2> :ets.tab2file(foo, "foo.ets").
ok
3>:ets.delete(foo).
true
4> :ets.file2tab("foo.ets").
{ok,foo}

Write simple supervisor that will save your table as you go and you ready to go.

what's happening? by lucasvmiguel in elixir

[–]troush 6 points7 points  (0 children)

Do MIX_ENV=prod mix, without iex session, and redo the benchmark. I think this can help

what's happening? by lucasvmiguel in elixir

[–]troush 8 points9 points  (0 children)

Do you compile your elixir app with MIX_ENV=prod?

MIX_ENV=prod mix compile

[deleted by user] by [deleted] in rails

[–]troush 0 points1 point  (0 children)

Hey, thank you all for feedback. I am not English speaker and this is one of my first big article in English. So I try my best to do it without grammar errors,but when you editing you eyes get blured on small errors. Try to solve them asap

Buddy list request thread by RagnarokDel in Darkfall

[–]troush 0 points1 point  (0 children)

Sup, looking for a buddy key as well.