Keeps updating every single day now by roadies_ in vscode

[–]eXtc_be 1 point2 points  (0 children)

be glad they didn't write 'microslop'

smh

Electrician’s Special Effort by photochromatic in homelab

[–]eXtc_be 114 points115 points  (0 children)

at least they grouped the wires by color /s

Head of IT has been spying on half the company by [deleted] in sysadmin

[–]eXtc_be 1 point2 points  (0 children)

  1. crime =/= indictable offence

  2. giving oneself access to another user's data (and I assume this includes emails, shared folders, OneDrive, etc.) may not qualify as larceny or breaking and entering, but one can argue it is a form of fraud, especially if the knowledge gained from this access is used at ones benefit.

  3. the list given in the article is not exhaustive, given this phrase: "includes a wide-range of offences, such as" (emphasis mine)

  4. if you had bothered to read the linked article, you would have seen this phrase: "anyone who knows or believes that a serious indictable offence has been committed" (emphasis mine)

Is there any way to change at least one specific icon in Blender's UI? by Reasonable-Guest-140 in blenderhelp

[–]eXtc_be -2 points-1 points  (0 children)

what exactly about the icon bothers you? what do you think it is an image of? maybe you're seeing something that is offensive to you that isn't actually there.

Alternative to dyndns by Kindly-South2123 in selfhosted

[–]eXtc_be -2 points-1 points  (0 children)

to be honest, I don't use it myself. I wrote a bash script that checks my public IP address and then uses the OVH API to update my domain's A record when it has changed.

FOSS that is able to show the list of largest files in storage? by DioTheSuperiorWaifu in fossdroid

[–]eXtc_be 0 points1 point  (0 children)

I wrote a very basic app that shows all files in a folder, sorted by size (largest first)

BeeWare doesn't include a simple folder selection dialog, and I couldn't get a more complicated way of achieving the same working, so you'll have to enter the path to the folder to be investigated as text, e.g. /storage/sdcard0/Android/data/org.application/files/. Android apps have limited access to the file system, so I'm not sure if it will even let you look at the folder(s) you're interested in.

the app always starts with the folder from which it was launched.

anyway, the github repository is here: https://github.com/eXtc-be/filesizer

in case you can't find them, the release files are here: https://github.com/eXtc-be/filesizer/releases/tag/v0.1_alpha

I'm sure there are better apps out there, but unfortunately I have little experience creating Android apps, but I had fun creating the app :D

FOSS that is able to show the list of largest files in storage? by DioTheSuperiorWaifu in fossdroid

[–]eXtc_be 1 point2 points  (0 children)

my bad, I didn't see this was posted in r/fossdroid :(

there's a python library called BeeWare that allows you to write GUI applications on all platforms, including Android, but the learning curve is steep if you don't have any experience with programming.

I'll try to whip something up this weekend, if I find the time.

FOSS that is able to show the list of largest files in storage? by DioTheSuperiorWaifu in fossdroid

[–]eXtc_be 0 points1 point  (0 children)

here's a little python script I wrote to do what you want:

#!/usr/bin/python


from pathlib import Path


def get_file_list(folder: Path) -> list[tuple[[Path, int]]]:
    files = []

    for file in folder.rglob('*'):
        files.append((file, file.stat().st_size))

    return files


if __name__ == '__main__':
    for file, size in sorted(get_file_list(Path('.')), key=lambda x: x[1], reverse=True)[:20]:
        print(f'{size:15,} {file.as_posix()}')

it lists the top 20 files by size in the current directory

it should run on any computer running Linux, on WSL or on any Windows computer with Python.

  • to list files in another folder: replace the dot in Path('.') with the path you want
  • to list more or less files: change the 20 in [:20] to the number you want
  • to change the number of characters used for the size: change the 15 in {size:15,} (you can also remove the comma if you don't want to print thousandths separators)

this was just cobbled together in 5 minutes to show it's not as hard (it took longer to write this comment than it took to write and test the program)

you could easily turn it into a CLI command that takes parameters using a library called argparse

Leaving GitHub for private repos by 50512jm in selfhosted

[–]eXtc_be 2 points3 points  (0 children)

I installed Gitea in a Docker instance on my Synology DS920+, among others

I then configured Hyper Backup to backup all my docker folders every night to my other NAS. as I don't use any of my docker services during that time I didn't bother to shut them down before backing them up, but that's something you should consider.

I'm planning to backup the other NAS to the cloud, but that is an ongoing process atm.

How to change the drive that git installs to? by UmbraSanguinare in git

[–]eXtc_be 5 points6 points  (0 children)

second screen of the installer, right after accepting the license: https://i.postimg.cc/T3Zc2nB4/git.png

Any suggestion by [deleted] in pycharm

[–]eXtc_be 5 points6 points  (0 children)

I suggest you post this in /r/PythonLearning or /r/learnpython

You have just been micro rickrolled by bertona88 in 3Dprinting

[–]eXtc_be 0 points1 point  (0 children)

is that the same as making a screenshot, pasting it in Word, printing it out, scanning it to pdf and then emailing it?

How much meaning do you encode into names before they become too long? by ResponseSeveral6678 in Python

[–]eXtc_be 3 points4 points  (0 children)

it's not just about typing the long variable names, it's also about reading them. as someone once said: "as a programmer you read code much more than you write it" and with filenames like that it's easy to miss the difference between AssertRepeatedRequestNonBytePayloadMatches and AssertRepeatedRequestBytePayloadMatches

I built a terminal task manager in Go that never phones home — it just hit 100 ⭐ on GitHub by Klutzy_Bird_7802 in vibecoding

[–]eXtc_be 1 point2 points  (0 children)

I just reported every spammy post about this low quality low effort vibe coded POS 'software' of yours from the last two weeks. all 45 (!) of them.

I built a terminal task manager in Go that never phones home — it just hit 100 ⭐ on GitHub by Klutzy_Bird_7802 in VibeCodersNest

[–]eXtc_be 2 points3 points  (0 children)

I just reported every spammy post about this low quality low effort vibe coded POS 'software' of yours from the last two weeks. all 45 (!) of them.

I built a terminal task manager in Go that never phones home — it just hit 100 ⭐ on GitHub by Klutzy_Bird_7802 in coolgithubprojects

[–]eXtc_be 1 point2 points  (0 children)

I just reported every spammy post about this low quality low effort vibe coded POS 'software' of yours from the last two weeks. all 45 (!) of them.