aboutsummaryrefslogtreecommitdiff
path: root/linux/misc.md
blob: 74a67ffc914563221ccd9eeb7cc8a9b95c0b04ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Misc

## Reverse sshfs

https://blog.dhampir.no/content/reverse-sshfs-mounts-fs-push

You need the SFTP server program on your local machine (on Debian, the `openssh-server` package) and sshfs on the remote machine.

## Find non-Debian packages

```
aptitude search '~S ~i !~ODebian'
```

## Memory usage queries

### systemd

```
systemd-cgtop -m
```

Drill down with:

```
systemd-cgtop -m user.slice/user-1000.slice
```

### smem

```
sudo smem -P beam.smp -kta
```

## Quick rerouting of browser traffic through another host

`ssh -D 1234 host` creates a Socks proxy on `localhost:1234` that sends traffic through `host`.

By enabling "allow extension to control proxy settings" in the [multi account containers](https://addons.mozilla.org/en-US/firefox/addon/multi-account-containers/) Firefox add-on, you can make containers use specific proxies.