# slop function

> Source: <https://gist.github.com/alganet/4dcf3a2ae01388c374fc6ff501bd3f83>
> Published: 2026-08-28 21:23:45+00:00

Place this into `~/.config/systemd/user/slop.slice`

. Adjust the values for your machine.

```
[Slice]
MemoryHigh=50G
MemoryMax=56G
MemorySwapMax=0
TasksMax=4000
```

And this on .bashrc

```
slop () {
  systemd-run --user --scope --slice=slop.slice --quiet -- "$@"
}
```

Then you can run `slop code`

(vscode) or `slop claude`

and they'll not run rampant on your RAM.

Place this into `~/.config/systemd/user/slop.slice`

. Adjust the values for your machine.

␃WPNCODE0␃

And this on .bashrc

␃WPNCODE1␃

Then you can run `slop code`

(vscode) or `slop claude`

and they'll not run rampant on your RAM.
