Skip to content

u/BCMM

In this archive from Jan 2012 to Dec 2026

2
posts
1.1k
comments
0
media
5.1k
score

The comment you just replied to does not say that you're asking in the wrong place. It says that you haven't provided enough detail.

Are you able to say what the GPL program you're working with is, and what sort of results you're talking about?

Are these "results" some sort of source code? In most cases, neither MIT nor GPL are sensible licences for a database.

3 points

Specifically U+2019 RIGHT SINGLE QUOTATION MARK, which is considered the correct way to represent a typographically apostrophe as well as a closing single quote. The straight "typewriter" apostrope should look normal, as it has an identical representation in ASCII and UTF-8.

And this isn't specifically a PHP problem - it happens whenever text encoded with UTF-8 is decoded with Windows code page 1252. The most common reason for this to happen is that you wrote text for your web page in a modern editor, so it's in UTF-8, but you forgot to declare a character encoding, so for historical reasons, the browser defaults to decoding it as Windows-1252.

(Alternatively, you might have one of the rare pages that's actually in Windows–1252, and declares that, but then you pull some text from a DB or whatever and don't properly consider whether it needs converting.)

5 points

This worries me from time to time. There's plenty of backup software around these days which assumes I don't trust the server. Not enough that assumes I trust the server more than the client!

I know I could set Borg to append-only mode, but this is rather inconvenient because I do need old archives to be deleted eventually. To me, the server component of the ideal backup system would enforce the retention policy server-side, either by automatically scheduling deletion of old archives or by offering the client a deletion API that protects certain archives.

Does anybody know of a system which does something like this? I'm open to somehow configuring/scripting Borg to do the right thing, or moving to anything that's free software and either incremental or deduplicating.

(I know that, in practice, ransomware is most likely to simply go through SMB shares, and not try to use my SSH key to mess with Borg. However, security through obscurity is not a principle on which I wish to rely.)

6 points

If they are SMR, are there any other downsides except the low transfer speeds? I honestly don't care about speed.

Are you sure you don't care about speed under any circumstances?

The thing with SMR drives is not that they perform like older or lower-spec CMR drives; it's that under certain specific circumstances they can perform extremely badly. Like, stuck writing single-digit Mb/s for a lengthy period bad.

If that's genuinely not a problem, they should be fine. There's some data suggesting they're not as reliable as CMR, but one shouldn't trust any hard drive anyway.

2 points

There really aren't a lot of options for 32-bit PowerPC machines at this point. Debian, which is usually a good option for keeping old hardware alive, dropped support in 2017.

I think, for major distros, you've basically just got Gentoo (using a modern computer to help with compilation), but expect problems because it's got relatively few people testing it.

Unfortunately, some modern websites use quite a lot more RAM than they really ought to, so you may need to temper your expectations a little on that front.

2 points

Its not "encrypted" as such. Just obfuscated.

The snippet you pasted decodes its payload using base64, a standard scheme for transmitting binary data over text-only channels which is widely used on the web. It then decompresses it before executing it.

It is safe to decode and decompress this as long as you do not eval() it. If you need to know what it says, echo the string instead of using eval. It should print php code. I'm on mobile so can't easily do this myself.

On the wider problem: frankly, you should simply delete the system and start with a fresh install. Somebody has had complete control of the account and it is impossible to list all of the different places they could have hidden things.

If you can document what the system is supposed to do and reconstruct it without using any of files from the compromised server, thst would be best. If you have to use config files or, heaven forbid, programs that exists only on the compromised server, then take only what is necessary and read it in its entirety to check that it all still does what you think it does.

1 points

I want to use ntfy.sh

It looks like maybe like that already supports SMTP? If so, that's likely to be a more ergonomic interface for emails.

I have 0 experience with Exim, in fact I’m now just hearing about it for the first time.

It's only a default, you can replace it with like Postfix or whatever quite easily.

Looking through the documentation it seems what I should be doing is add an accept router and set that router’s transport to a pipe transport I define which in turn can call my script? Will adding a router like that prevent the mail from being delivered? I don’t want to lose any mail in case my script/notification service is down, can a router handle the mail but then also indicate Exim should handle it as well?

I'm sure what you're asking is possible, as Exim is very configurable. It's a bit out of my depth, though. I more or less just did this on my NAS, and then set a couple of aliases to get stuff forwarded to my "real" inbox.

I would guess that one could use a filter to send to two "addresses", one which uses standard local delivery and one which uses the pipe transport. But that is a guess.

Losing mail by doing this shouldn't be a concern, though. Have a look at "2. Returned status and data". Your script can indicate that Exim should try again later, just like it would if a remote SMTP server was temporarily unavailable.

1 points

If you have access to the internet during installation, you can install Debian using any USB stick larger than 627MB.

There's also win32-loader, if you already have Windows and want to install Debian without a USB stick. I've never tried it, and I've seen surprisingly little written about it compared to conventional methods of installation, but it's there.

There's also network boot, although this requires a somewhat fiddly setup on another machine. You can boot from an SD card on some laptops, or on any PC if you have a USB SD reader. If you have a CD drive, you can still use that. You can even remove the hard drive from your computer, connect it to another Linux computer, install Linux, then put it back.

3 points

What kind of not working is it? Is it failing to connect or rejecting your credentials?

I suspect its because my work pc is part of a network

Does this mean a Windows domain? Have you entered the domain name in to Remmina?

Also, are you sure it doesn't have a firewall rule that would prevent machines not controlled by work from connecting (e.g. machines not a work VPN)?

1 points

There are a lot of different ways to build a GUI. Do you already know any programming languages?

For the "more features" you'll presumably want to actually write a program, but for the initial thing, you can use a simple shell script like

yt-dlp $(kdialog --title ytdlp --inputbox URL)

or, if you prefer GTK stuff

yt-dlp $(zenity --forms --title="ytdlp" --add-entry="URL")

i cant use ctrl+v on the terminal

Terminals usually don't grab that, as applications running in the terminal might want to use it. Paste will usually be available on a different shortcut though. Does Mint's terminal support Shift+Insert?

3 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.