AstroLightz

joined 2 years ago
[–] AstroLightz@lemmy.world 2 points 5 hours ago (1 children)

For quick edits in the terminal? Sure.

As my main IDE? No way. I'm too used to GUI IDEs like VSCodium and PyCharm.

I just find it easier to navigate with a mouse. With just keyboard, I find I overshoot the block of code I'm looking for, whereas scroll wheel gives me more control.

[–] AstroLightz@lemmy.world 2 points 2 days ago (2 children)

Hide in a cave for an eternity then. If no one knows I exist, then I live forever.

[–] AstroLightz@lemmy.world 6 points 4 days ago

Chilling after a long day of programming. Piano music helps to destress from the work.

[–] AstroLightz@lemmy.world 36 points 5 days ago (2 children)

When writing BASH scripts:

  • The .sh extension isn't necessary.
  • Using /usr/bin/env bash is better than /bin/bash as not everyone has their bash located in bin.
  • Try to use local variables when you can. If you use global variables that won't be used anywhere else, unset them at the end of your script.
  • Don't use set -euo pipefail. It will only cause more issues down the road.
  • Functions are your friend. If your repeating code, put it in a function.

These are some of the tips I learned while learning bash.

[–] AstroLightz@lemmy.world 4 points 5 days ago

Fractals, or any type of recursion.

The results can be beautiful. My favorite part is knowing some type of formula makes up the image.

[–] AstroLightz@lemmy.world 3 points 5 days ago

I just spell every acronym, so "lmao" becomes "l-m-a-o".

[–] AstroLightz@lemmy.world 1 points 1 week ago

I'm sure removing the root user will prevent all escalation exploits. Can't get root if there is no root!

/j

[–] AstroLightz@lemmy.world 0 points 1 week ago

Nintendo Switch

Mario Odyssey was fine, but I didn't really see the use for a portable slab compared to a pocket-size device like my phone or the 3DS. Also, this was the first Nintendo device that felt completely soulless. At least the Wii U had some charm to it.

[–] AstroLightz@lemmy.world 0 points 1 week ago (1 children)

I haven't booted bare-metal Windows in years. Since then, I've only ever used it in a VM with no network connectivity, so no updates.

 

cross-posted from: https://lemmy.world/post/46764460

Question for People Familiar with Sphinx Documentation

So, I'm making documentation for my project using Sphinx with hatch/hatchling. I'm currently using the sphinx-rtd-theme as my theme. I already make a quickstart page for my project, but the src directory page is included in the sidebar. I would like to rename it to "Source Files", but when changing the header in my modules.rst file, it gets reset each time I build.

The main extensions I'm using for Sphinx are 'sphinx.ext.todo', 'sphinx.ext.viewcode', and 'sphinx.ext.autodoc'.

For context, my project structure looks something like this:

my_project/
| ---- requirements.txt
| ---- README.md
| ---- src/
| -------- my_project_module/
| -------------- __init__.py
| -------------- foo.py
| -------------- bar.py
| -------- docs/
| -------------- requirements.txt
| -------------- requirements.in
| -------------- conf.py
| -------------- modules.rst
| -------------- index.rst
| -------------- quickstart.rst
| -------------- my_project_module.rst
| -------------- _static/
| ------------------ some_img.png

Is there a way to change the display name of my src directory without renaming the actual directory in my project?

Also, is there a way to reorder the list so my quickstart guide shows up above the source page?

 

So, I'm making documentation for my project using Sphinx with hatch/hatchling. I'm currently using the sphinx-rtd-theme as my theme. I already make a quickstart page for my project, but the src directory page is included in the sidebar. I would like to rename it to "Source Files", but when changing the header in my modules.rst file, it gets reset each time I build.

The main extensions I'm using for Sphinx are 'sphinx.ext.todo', 'sphinx.ext.viewcode', and 'sphinx.ext.autodoc'.

For context, my project structure looks something like this:

my_project/
| ---- requirements.txt
| ---- README.md
| ---- src/
| -------- my_project_module/
| -------------- __init__.py
| -------------- foo.py
| -------------- bar.py
| -------- docs/
| -------------- requirements.txt
| -------------- requirements.in
| -------------- conf.py
| -------------- modules.rst
| -------------- index.rst
| -------------- quickstart.rst
| -------------- my_project_module.rst
| -------------- _static/
| ------------------ some_img.png

Is there a way to change the display name of my src directory without renaming the actual directory in my project?

Also, is there a way to reorder the list so my quickstart guide shows up above the source page?

[–] AstroLightz@lemmy.world 0 points 1 week ago (2 children)

Programming and Linux. Oh boy, what to pick...

Terminal text editors: VIM vs Emacs is the main debate there. (There are others but these are ones people argue the most about)

Linux Distros: Arch, Debian, Mint, CachyOS, ...

Init Systems: Systemd vs OpenRC. Honestly, probably the most toxic debate on this list.

Programming Languages: Python, Shell, but the heated one is C vs Rust

A non-exhaustive list of ones I couldn't think of a category for:

  • Tiling vs Floating Window Managers
  • Chromium vs Gecko-based browsers
  • Bash vs Zsh vs Fish

I love computers and Linux, but man, the amount of toxic in-fighting and gatekeeping is a real turnoff. Just use what you want. At the end of the day, we are all nerds doing what we love.

[–] AstroLightz@lemmy.world 4 points 9 months ago (1 children)

Hello, World!

[–] AstroLightz@lemmy.world 5 points 9 months ago

Depends. If N = 1, then 1P = P. Otherwise, no.

 

For example:

  1. Is there an alternative to GitHub Desktop that works for Codeberg or do I just have to use the CLI for it?

  2. If I have to use the CLI, is using git for Codeberg any different than using it for GitHub?

 

Recently, I can't access any GitHub repositories without having to sign in. This is becoming frustrating.

I'm looking for an alternative to switch to that has good git push/pull speeds (I've visited one which speeds are slow for me).

Any good options? Would one of the following be good?

  • Codeberg
  • Gitlab
 

Been playing the Re-Console modpack for Minecraft to get that nostalgic feel. Since Iris was installed, I downloaded the "Super Duper Vanilla" shaderpack to see what Minecraft could have been like back in TU1 if the cancelled Super Duper Graphics pack was around then.

The old crafting menu is very nostalgic too. I still think it's better than the recipe book in vanilla Java.

 

It's sad to see such a great project come to a close. I've been using ArcoLinux for years and have come to love it.

I wish the ArcoLinux Team and the Beta testers all the best.

 

I've got political words, certain names, and "Daily Screenshot" because I'm tired of seeing those posts. Tempted to add AI to it.

 

From fast4x in the RiMusic Telegram channel:

Hi all, i can only say that i am very sorry and that unfortunately the project cannot continue to be a music streaming app based on YouTube.

It is unfortunate this happened to such a good FOSS music streaming app. Hopefully, someone can continue it.

To all the people who contributed to RiMusic all this time, thank you for making a great music streaming app!

As well, thank you fast4x for working hard each week to get RiMusic to where it is.

 

So, I've recently binged a YouTube channel called Linux Creative Project, which documents someone's transition from macOS to Linux for creative work. They go over their hardware, software, and their experiences/problems during the transition.

Any of you know any other YouTube channels that do something similar (Documenting their transition to Linux)?

 
 

So, I've decided that I want to reinstall Arch on my laptop, but this time separate /home from root, and encrypt it using LUKS.

I made a backup of my current, unencrypted home directory (I didn't separate them initially) using:

sudo rsync -aXS --exclude='/*/.gvfs' /home/. /mnt/home/.

Once I wipe Arch and reinstall it, encrypting /home, would I be able to transfer my unencrypted files to the encrypted /home partition, and have them become encrypted?

 

I made this Python menu-driven CLI script for yt-dlp. It guides you through a series of menus to download content from a YouTube URL.

If anyone is interested, feedback would be greatly appreciated as only I have tested this so far, and I want to make sure it works for other people's systems.

If you encounter any issues or bugs, let me know so I can fix them!

Edit: I should mention: This is not a pipx package. That was never the intention developing this initially. I might make it a package in the future, but for now, it is just a project directory.

view more: next ›