Skip to content

u/_ahrs

In this archive from Apr 2017 to Dec 2026

1
posts
138
comments
0
media
573
score

Then you go to confirm and the option is to use your other email account or confirm with your password. What is the purpose of allowing me to confirm my sign in with the password that I just used to sign in?

Should a criminal get a hold of my account they would just use the password they already know to confirm their illegitimate sign in.

1 points

How would plugins work? Do they need to be written as .so modules that get loaded via C FFI or supplied as Rust source code and everyone has to build their own custom binary?

Porting Wordpress to Rust is easier said than done. Rather than move away from PHP it would make more sense to me to port PHP away from C to Rust. CNN like most other MSM as usual completely misses the point that the vulnerability with PHP had absolutely nothing to do with the language.

1 points

If your UEFI has a BIOS boot menu you can still use EFIstub with a dual-boot, just have separate loader entries for Windows and Linux. I have my desktop set to boot Linux by default but I can always mash F8 at boot to get the BIOS boot menu and select Windows instead.

5 points

If you have some spare machines or something like a Raspberry Pi you can even configure ntpd to operate as a server and then have everything else on your network sync from that.

$ ntpq -pn
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
+fe80::6d9:f5ff: 220.167.128.70   4 u   46  512  377    0.109   +0.378   0.085
+fe80::d65d:64ff 218.20.98.110    3 u  232  512  377    0.084   +1.185   0.050
*fe80::fa32:e4ff 162.159.200.123  4 u  160  512  377    0.175   +1.159   0.105
-2606:4700:f1::1 10.21.8.19       3 u  450  512  377    6.346   +0.372   0.313
-2606:4700:f1::1 10.21.8.19       3 u  410  512  377    6.170   -0.048   0.458

The first three machines above are all machines on my network, Cloudflare's NTP servers are there as a backup but aren't used because the machines on my network have an accurate enough clock. In the future I might buy a GPS receiver and use that as a proper reference clock source instead of relying on the NTP pool but that's a project for another day.

2 points

There's your issue. Nvidia has their own Xorg driver (so does AMD but it's not proprietary) which needs to be kept up-to-date with the version of Xorg you're using. The open drivers will typically be updated in lockstep with the Xorg server but this can't be done for Nvidia you have to wait for them to update things first and cut a new release.

3 points

What's up with the average response time? 700ms average response time is almost a whole second to respond which is way too long. If I httping to https://aur.archlinux.org I get an average response time of 145ms:

$ httping -6 -c10 https://aur.archlinux.org
Auto enabling SSL due to https-URL
PING aur.archlinux.org:443 (/):
connected to [2a01:4f9:c010:50::1]:443 (330 bytes), seq=0 time=145.69 ms
connected to [2a01:4f9:c010:50::1]:443 (330 bytes), seq=1 time=146.12 ms
connected to [2a01:4f9:c010:50::1]:443 (330 bytes), seq=2 time=151.82 ms
connected to [2a01:4f9:c010:50::1]:443 (330 bytes), seq=3 time=151.04 ms
connected to [2a01:4f9:c010:50::1]:443 (330 bytes), seq=4 time=137.61 ms
connected to [2a01:4f9:c010:50::1]:443 (330 bytes), seq=5 time=139.47 ms
connected to [2a01:4f9:c010:50::1]:443 (330 bytes), seq=6 time=153.65 ms
connected to [2a01:4f9:c010:50::1]:443 (330 bytes), seq=7 time=138.88 ms
connected to [2a01:4f9:c010:50::1]:443 (330 bytes), seq=8 time=144.81 ms
connected to [2a01:4f9:c010:50::1]:443 (330 bytes), seq=9 time=146.04 ms
--- https://aur.archlinux.org/ ping statistics ---
10 connects, 10 ok, 0.00% failed, time 11458ms
round-trip min/avg/max = 137.6/145.5/153.6 ms
7 points

You can still have this issue even when using an upstream resolver with a low ping if this resolver hands back an IP address for a server in China because this is what Google's nameservers gave them when they queried it.

The other possibility is that the IP address is fine but it's for a server that exists in multiple places around the world and your ISP's routing is broken so it takes a path through China when it shouldn't because there's a geographically closer path it could follow.

2 points

Since they're running Intel + NVIDIA it won't work anyway unless they run Firefox on the Intel iGPU which supports dmabuf and vaapi. NVIDIA is working on dmabuf support for their driver but that still leaves the issue of vaapi support because they only support vdpau or their proprietary nvenc/nvdec. There's a wrapper providing vdpau -> vaapi translation but it's not ideal and won't work on Wayland which distributions are trying to move to.

1 points

Something like this should work. Feel free to adjust it however you want (or completely ignore it):

#!/usr/bin/env bash
BROWSER="${BROWSER:-firefox}"
mime="$(curl -s --head --write-out '%{content_type}' $@ | tail -1 | awk '{print tolower($0)}')"

# on the odd chance download is exported in the environment unset it here just to be sure...
unset download

run_in_background() {
  # sanity check for zero arguments
  [ "$#" -eq 0 ] && exit 1

  # don't download files by default
  download="${download:-0}"

  # set prog to the first argument
  prog="$1"
  # shift 1 to remove $1 from $@ so all we're left with is the URL
  shift 1

  url="$@"
  [ "$download" -eq 1 ] && {
    TMPDIR="${TMPDIR:-/tmp}"
    mkdir -p "$TMPDIR" || exit 1
    _tmp="$(mktemp)"
    wget "$url" -q -O "$_tmp" || exit 1
    url="$_tmp"
  }

  # background the program and completely disown it from the shell
  # pros: if you run this in the terminal it won't block
  # cons: it hides stdout and stderr so if something goes wrong you
  # won't see any errors...
  nohup $prog $url > /dev/null 2>&1 & disown
}

case "$mime" in
  image/*|application/pdf)
    download=1 run_in_background "xdg-open" $@
    ;;
  video/*)
    # mpv can stream video files without having to download them...
    run_in_background "mpv" $@
    ;;
  text/html|*)
    # open web pages (and anything without a mime above) in the default browser...
    run_in_background "$BROWSER" $@
    ;;
esac
2 points

Set your default browser to a script and then use that script to filter the content and open the correct application. This will tell you what the server is telling you (note: the server may lie, you can't know for sure what the file is without downloading the entire thing and inspecting it locally):

$ curl -s --head --write-out '%{content_type}' http://example.org
HTTP/1.1 200 OK
Content-Encoding: gzip
Accept-Ranges: bytes
Cache-Control: max-age=604800
Content-Type: text/html
Date: Sat, 04 Aug 2018 19:40:09 GMT
Etag: "1541025663+ident"
Expires: Sat, 11 Aug 2018 19:40:09 GMT
Last-Modified: Fri, 09 Aug 2013 23:54:35 GMT
Server: ECS (dca/5327)
X-Cache: HIT
Content-Length: 606

text/html
3 points

The most minimal config you can have that should do this:

server {
        listen 80;
        server_name whatever.whatever;

        location / {
                proxy_pass http://localhost:10080;
        }
}

Depending on what you're proxying though, you may need to add additional things. For Plex you'd probably need a more complex config to proxy the websockets and whatever else it uses.

2 points

Automatic pulling gives no control over the software versions inside your containers.

If you're just doing docker pull someimage then yes you're right. You can specify a tag though e.g docker pull ubuntu:14.04 or docker pull ubuntu:16.04 etc. That gives you slightly more control than just pulling the latest version but is of course dependent on whoever makes the images to tag them with versions and then continue updating them. This way you could have different channels e.g stable, dev, lts, etc and choose to stick to that channel.

If you wanted absolute control over versions you'd have to build the images yourself.

1 points

I know all of this but don't want to worry about compatibility. I know for sure ZFS will always support the latest LTS kernel so I just stick to that. For my systems that run BTRFS I don't even have to worry about compatibility because the filesystem is maintained together with the kernel. I wish Oracle would grant a GPL license exception already. I could use a current (but not bleeding edge) kernel but then I might miss out on security updates so I'd advise against that.

1 points

I'm far from an expert but the best way I've found to avoid this problem is to not snapshot the entire system. There are some things I don't need snapshots of such as qemu images so I create a separate subvolume for all of these directories that I want to exclude and now my snapshots are much smaller since BTRFS is no longer storing the difference between two large virtual machine images or keeping unnecessary copies of things like /var/tmp which is temporary data so does not need to be kept in snapshots.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.