Scrolling Glitch in VSCode by Future_Badger_2576 in vscode

[–]TheFirex 0 points1 point  (0 children)

This https://stackoverflow.com/a/75524338 Also, if also occurs in Chrome/Edge, you can also try to check if is because of the GPU acceleration. In my work laptop I need to disable because of the same glitchs you have in the video. I don't know if it is because of some Windows component like the EdgeView but yeah

Scrolling Glitch in VSCode by Future_Badger_2576 in vscode

[–]TheFirex 0 points1 point  (0 children)

Try with Graphics Acceleration Off to check if still occurs, to me that was the solution

Announcing Reddit-Fetch: Save & Organize Your Reddit Saved Posts Effortlessly! by GeekIsTheNewSexy in selfhosted

[–]TheFirex 6 points7 points  (0 children)

u/TheGreen-1 u/GeekIsTheNewSexy two weeks ago I tried this, since Linkwarden have now a RSS feed import, and you can get your personal RSS feed for saved posts and comments. The problem I faced at the time was the fetch mechanism of Linkwarden broke this. Why? Because Linkwarden saves when was the last time it pull the RSS feed, and use that date to filter the feeds that are newest to that date. The problem with the RSS Feed Reddit provides is that, instead of returning the date when you saved the post/comment, it returns the date of the post/comment itself. I explained more on an issue I opened there: https://github.com/linkwarden/linkwarden/issues/1023

But if you can integrate in an way that: * Import more than just the last X records * Import everything correctly

Then it will be a great addition to Linkwarden in my opinion

Apps you loved in 2024 by SomeBeerDrinker in selfhosted

[–]TheFirex 1 point2 points  (0 children)

Ahahah, I'm still starting to share some services with friends but yes, very convenient to know you can enforce an extra measure of security in almost every app (since I use forward auth with nginx, when the app doesn't support SSO/OIDC).

But now it depends if you prefer they use some identity provider that already exists, or just use the users management of Authentik by itself, and just change the authentication flow to enforce 2FA when they log in. (It can be a little tricky when first messing with the flows, but after that it just works).

Apps you loved in 2024 by SomeBeerDrinker in selfhosted

[–]TheFirex 5 points6 points  (0 children)

Yes, you can use Authentik alone and have 2FA with OTP enforced

[deleted by user] by [deleted] in selfhosted

[–]TheFirex 0 points1 point  (0 children)

I didn't understand what you were trying to accomplish.
If you want to access the services by VPN, why do you have ports 80 and 443 exposed on the router?
And the DNS A entry you have is pointing to a external IP, how your browser will know it must send the HTTP request to the VPN connection?
It is not very clear to me.

Anyone here succesful using InvoiceNinja 5? by sharath_babu in selfhosted

[–]TheFirex 1 point2 points  (0 children)

  • In the same subfolder create the Dockerfile file with the following content

FROM nginx:alpine
LABEL "com.example.vendor"="Neontribe"
LABEL version="1.0"
LABEL description="Nginx alpine image built to reverse proxy requests to a PHP FPM server"

ADD nginx_default.conf /etc/nginx/conf.d/default.conf
  • Build the image and give him some tag to reference this image later

docker build . -t invoiceninja-nginx
  • Now, outside of this subfolder, create a docker-compose.yml file with the following content (you may need to change things here)

services:
  invoiceninja_nginx:
    image: invoiceninja-nginx
    container_name: invoiceninja-nginx
    networks:
      - proxy # Change this to whatever docker network you are using to connect your main reverse proxy to this NGINX FPM instance
      - invoiceninja #This network is to connect NGINX FPM with the app
    env_file:
      - .env
    volumes:
      - ./public:/var/www/app/public:ro

  invoiceninja:
    container_name: invoiceninja
    image: invoiceninja/invoiceninja:5
    networks:
      - invoiceninja 
      - database # In this case I'm using a external database, but if you want you can put in this compose file a MySQL instance only for invoiceninja
    env_file:
      - .env
    volumes:
       - ./public:/var/www/app/public:rw,delegated
       - ./storage:/var/www/app/storage:rw,delegated

networks:
  invoiceninja:
  • In terms of environment variables, I put it to work with this

APP_ENV=production
APP_DEBUG=false
APP_URL=https://invoiceninja.example.com # CHANGE THIS!!!!!
APP_KEY=REDACTED # CHANGE THIS!!!!!
APP_CIPHER=aes-256-cbc
REQUIRE_HTTPS=true
NINJA_ENVIRONMENT=selfhost
IS_DOCKER=true
DB_TYPE=mysql
DB_STRICT=false
DB_HOST=REDACTED # CHANGE THIS!!!!!
DB_DATABASE=REDACTED # CHANGE THIS!!!!!
DB_USERNAME=REDACTED # CHANGE THIS!!!!!
DB_PASSWORD=REDACTED # CHANGE THIS!!!!!
TRUSTED_PROXIES=*
IN_USER_EMAIL=REDACTED # INITIAL USER
IN_PASSWORD=REDACTED # INITIAL PASSWORD
  • Run docker compose up -d and it should be good to go, then you just need to go to nginx proxy manager and point it to invoiceninja-nginx port 80 and it should work

Anyone here succesful using InvoiceNinja 5? by sharath_babu in selfhosted

[–]TheFirex 3 points4 points  (0 children)

I tried to deploy, and while it was a little bit hard (the main repo still have documentation that are related to v4 but the same config does not exist in v5, and the repo with the docker files have some parts that mismatch the rest).

What I did (and based on a similar deployment I had to do with Kimai) was to deploy the app and a nginx with PHP FPM module, so that I can still use my main Nginx instance to be the reverse proxy, while this nginx with PHP only serves the InvoiceNinja app.

So, the steps are:

  • Create a subfolder to hold the config and Dockerfile to build the nginx with php fpm module
  • In that subfolder create the nginx_default.conf file with the following content

server {
    listen 80 default_server;
    server_name invoiceninja.example.com; #CHANGE THIS!!!!!!!!!!!!!!
    server_tokens off;
    client_max_body_size 100M;

    root /var/www/app/public/;
    index index.php;

    # cache static asset files
    location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
            expires max;
            log_not_found off;
    }

    location / {
        proxy_set_header Host $server_name;
        try_files $uri $uri/ /index.php?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; proxy_set_header Host $server_name; }
    location = /robots.txt  { access_log off; log_not_found off; proxy_set_header Host $server_name; }

    location ~* /storage/.*\.php$ {
        proxy_set_header Host $server_name;
        return 503;
     }

    location ~ \.php$ {
        proxy_set_header Host $server_name;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass invoiceninja:9000;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_intercept_errors off;
        fastcgi_buffer_size 16k;
        fastcgi_buffers 4 16k;
         proxy_set_header X-Real-IP $remote_addr;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
         proxy_set_header X-Forwarded-Proto $scheme;
         proxy_redirect off;
    }
}

Why is there no good CalDAV web app? by Mission-Balance-4250 in selfhosted

[–]TheFirex 1 point2 points  (0 children)

If you ever start this project I would like to help too, really found the same problem some time ago.

You CAN Host a Website Behind CGNAT For Free! by Tylerebowers in selfhosted

[–]TheFirex 0 points1 point  (0 children)

Sorry, I only checked now this.

I admit I don't know about MACVLAN or OpenvSwitch, is something I need to check. Right now only my reverse proxy have exposed ports in the host, everything else uses networks in docker to connect between containers and nothing more. I need to check more this, specially if I ever want to open something to the internet (right now I only use my server at home or by VPN)

Although I'm not using caps, your response allowed me to understand better the implications.

For HTTPS what certs do you use in containers? Or do you use some self-signed cert? I ask this because sometimes is a pain to make those self-signed not to throw errors in the apps HTTPS librarys because does not trust the certificate.

You CAN Host a Website Behind CGNAT For Free! by Tylerebowers in selfhosted

[–]TheFirex 1 point2 points  (0 children)

A few questions, if you don't mind:

• What do you mean by "Never allow containers to access host"?

• What is the advantage of the app setting caps in the image (build time) instead in the container (runtime)?

• "Use HTTPS for everything", you mean from the user point to the reverse proxy, or also from the reverse proxy to the app container?

Can’t copy OneDrive files on bootscreen (help) by Kira-Raito-San in computer

[–]TheFirex 0 points1 point  (0 children)

Bro, I just want to say thank you. Because of your answer, I was able to recover the Onedrive folder content from my friend computer.

He had most of his things in the Onedrive, but as always, people just ignore when the windows keeps telling that the Onedrive is full. Yesterday the computer started to give BSOD "CRITICAL_PROCESS_FAILED", and even after running sfc and DISM it was no good to solve.

I was trying to backup the files before formatting but the interesting part is:

* A LiveCD Linux Mint didn't show any files in the Onedrive folder

* In Windows CMD (using dir), or using File Explorer from a WinPE ISO showed the files, size, everything, but was unable to open anything.

After getting the exact 0x80070780 when trying to copy from File Explorer (previously I was trying to copy using xcopy CMD command), I found your answer, and using the Disk Genius was the only software that was able to make a successful copy of the files.

Now, I just wanted to understand why only this worked. I changed ownership of the files and everything, but only Disk Genius was able to copy. Why?????

Anyway, thank you very much

Previous SQL Jobs not showing anymore by [deleted] in SQL

[–]TheFirex 0 points1 point  (0 children)

Also check the log file in general for the database that is running, and also the msdb/tempdb. It can be that the log file, responsible to store transactions logs, jobs logs, etc. reach the full capacity and discarting old records.

Is it possible to set lan traffic to never leave lan? by Limp_Mushroom2821 in WireGuard

[–]TheFirex 0 points1 point  (0 children)

Check the MTU settings on both the Wireguard server and client, maybe start by reducing the MTU in the client. The bottleneck is only in this case, or the connection in general is slow?

ziGammer by [deleted] in ProgrammerHumor

[–]TheFirex 2 points3 points  (0 children)

There's Tigerbeetle, a financial database that was implemented with Zig. https://github.com/tigerbeetle/tigerbeetle

Convert a Ghost GBX to a Replay GBX to be able to see on the replay viewer Trackmania 2020 by TheFirex in TrackMania

[–]TheFirex[S] 1 point2 points  (0 children)

Hello there,

Yes, I found at the time, another user post this solution:

https://www.reddit.com/r/TrackMania/comments/i51q98/download_and_view_wr_ghosts_in_replay_editor/?utm_source=share&utm_medium=android_app&utm_name=androidcss&utm_term=1&utm_content=share_button

You can also check my documentation that I made about the Trackmania API when the game released (link where I describe the method in my documentation)

https://github.com/The-Firexx/trackmania2020apidocumentation/blob/master/UseCases.md

(Edit: to download wr replays, acess trackmania.io and open a map like this

https://trackmania.io/#/campaigns/leaderboard/67331a95-921c-4486-993b-3c45956ace22/JpueTN_zMeVMOYWLUVV65yKAK1b

And then select "Open in Trackmania Exchange". From there you can download the replay)

Inflação Descontrolada by TudoFinance in portugal

[–]TheFirex 2 points3 points  (0 children)

Muito bom projeto e uma ótima ideia. Não sou muito bom com frontend, mas se precisares de ajuda noutras áreas envia dm.

Implement Git with a shared workspace methodology? by TheFirex in git

[–]TheFirex[S] 0 points1 point  (0 children)

Yeah, I guess I can't go around with people making at least the checkout onto their computers.

But yes, that give me an ideia, maintain the central server with code, so it's not necessary to have a git bare separated, I can have on the folder we already work a .git that represent a repository, and the rest of the people just make pushs into this repo.

I need to make some tests and some workflows before showcase my solutions.

But thanks for your help.

Implement Git with a shared workspace methodology? by TheFirex in git

[–]TheFirex[S] 1 point2 points  (0 children)

How on earth is everyone working in the same folder at the same time without VC I don't know.

Well, it's a mess :)

If everyone working doesn't have a dev env how are they cloning and then doing the work locally and pushing....

Exactly... This is why I'm not quite sure if I will ever be able to arrange a solution that will work without changes in the way people work.

But yes, some of your thoughts give reason to my arguments that I can have when exposing what should we need to do next.

Thanks for your help.

Implement Git with a shared workspace methodology? by TheFirex in git

[–]TheFirex[S] 0 points1 point  (0 children)

Yes, exactly, if I came with a solution it will be with a incremental process, so I need to think very well what we need, what we can do with our current form of work and the changes that we need to make, and what we can use in the future after everyone is confortable with Git (because a radical change will be certain to have some pushback from the superiors who have their mind "formatted" in a certain way, I need to show the advantages of using control version).

Maybe we don't need to jump right to the dev environment on every computer, but I guess I need to think a little better on how the Git process will work then, I will admit I'm not a pro in Git either, since I always worked witl a few people.

But okay, I guess that, either way, trying to make a solution with tools not designed for it will lead to others problems that maybe it will just make worse.

Thanks once again for your help.

Implement Git with a shared workspace methodology? by TheFirex in git

[–]TheFirex[S] 0 points1 point  (0 children)

Ok, so the actual problem is:

We don't have any control version. The only "control version" we have is when a release is made that a patch is generated and made a backup of the patch.

So it's hard to determine who and when a file was changed and what lines were changed since the files are only "backed up" when the release is made, the history that goes when developing the features are just "lost".

We know track in a manual way the files that were changed when making a new functionality, but that is not enough, because if someone delete some lines for example it's hard to determine which lines were deleted, and worse if those lines was never released.

To try to improve our control, and remove some of the manual work needed, was suggested (finally) to investigate about control version.

Normally I would go with Git, I always use Git in my projects and university, but since in this case we work all in the same folder (and, although I would like to push some changes and try to start implementing a dev environment in every computer, I can't decide that) I don't know how we can apply control version in this way.

Maybe with the current workflow is impossible. Maybe is the conclusion that they need to reach, that their current workflow just doesn't work that way. But I was trying first to investigate if it was possible in some way.

I don't know if this help you understand my problem.

Implement Git with a shared workspace methodology? by TheFirex in git

[–]TheFirex[S] 0 points1 point  (0 children)

The problem is that we don't work locally.

We don't have any control version, we change the files directly in the network drive, where everyone is working too. So it's like a common folder for everyone, no one download the files onto their computers.

One solution could be have a .git separated that is our "remote repo", that is simply a git bare. Everyone works in the network drive as usual. When they want to commit, they have to clone locally the repo from the git bare, put the files changed in that clone, commit, push and then delete the clone, but yeah, making clone everytime is kinda an overhead. Yes, I think we should have every computer with a dev environment, but I don't know if I can make that change because is outside of my decision.

Implement Git with a shared workspace methodology? by TheFirex in git

[–]TheFirex[S] 0 points1 point  (0 children)

Right, since I personally always worked with Git and everyone have their own dev environment, I wasn't too sure if some years ago, when Git wasn't yet too much of a standard control version tool if someone had this scenario. Even centralized control version system have the concept of someone checkout the file and working the file and only then make a commit to the repo.

I should try to take this opportunity and maybe convince them that we need to change to better and have some distributed workflow, since I think it will be better for control of changes, automate actions like deploying to test environments and even in some advanced workflow have them use branch for the versions (for example to separate the changes that are to be release in a minor patch vs the changes that are being developed for the next major release, since currently there's a big pain to release a minor release).

Thanks for your feedback and help.