• 0 Posts
  • 42 Comments
Joined 2 years ago
cake
Cake day: June 20th, 2023

help-circle
  • Two reasons. If you can’t find it you might find and buy something else. The same reason all the seasonal (Christmas, school supplies, Halloween ) stuff is in the back of the store. Also we did this with Target all the time. Called it resetting an aisle. Moving everything ensures that anything that was hidden behind something or misplaced is put back in its right place (zoning). It’s basically a super zone. A reset aisle looks very neat.







  • I just finished rewatching this yesterday. It’s on Prime by the way. And as the show continued I was like “Wait, am I siding with Liber8”? The terrorist group in the show. Seriously there are so many parallels to real life. This was made in 2012. A bit ahead of its time.

    The people with the money making our laws. Our presidential cabinet is about to be made up of billions of dollars. Other corporations (Piron) buying the government so they can have political power. Lobbying.

    The first episode when we saw the first grassroots support of Liber8 trying to take down a corporation using violence I thought of Luigi and his overwhelming support by the public. And the followers of Theseus that kept saying ideas are more powerful than violence.

    The Theseus followers have a peaceful protest on a college campus, and they are arrested because their ideas align with Liber8 and therefore are “supporting terrorists”. But really they are just supporting the cause, not the few violent people. Which is exactly like supporting the Palestinians. The police consider every Palestinian a terrorist even though it’s only a few who did the atrocities.

    In 2077 everyone is being tracked by their gadgets and your worth is dependent on your actual net worth. Everything is privatized. Firefighters actually chose to save a couple of board execs in a building over two kids because they “contribute more”. History is banned. Anything that reports on history like VHS, DVD, books is considered contraband. We already are trying to censor slavery in Florida schools. Misinformation runs wild and the public just believe what the corporations tell them. Anyone against them is evil or a terrorist. See: FOX news today.

    The time travel gets a little wonky at times but damn was it a fascinating show of the gray area. I kept flipping back and forth on who was right. And shit, the twist in season 3 I didn’t see coming and basically upended the entire series. The future cop having her tech gadgets in 2012 working with the very same person who caused the future as an 18 year old kid is a fun concept. Making him an enemy of his future self. Definitely worth a quick watch. 4 short seasons.











  • Reverse proxy is actually super easy with nginx. I have an nginx server at the front of my server doing the reverse proxy and an Apache server hosting some of those applications being proxied.

    Basically 3 main steps:

    • Setup up the DNS with your hoster for each subdomain.

    • Setup your router to port forward for each port.

    • Setup nginx to do the proxy from each subdomain to each port.

    DreamHost let’s me manage all the records I want. I point them to the same IP as my server:

    This is my config file:

    server {
        listen 80;
        listen [::]:80;
    
        server_name photos.my_website_domain.net;
    
        location / {
            proxy_pass http://127.0.0.1:2342;
            include proxy_params;
        }
     }
    
     server {
        listen 80;
        listen [::]:80;
    
        server_name media.my_website_domain.net;
    
        location / {
            proxy_pass http://127.0.0.1:8096;
            include proxy_params;
        }
    }
    

    And then I have dockers running on those ports.

    root@website:~$ sudo docker ps
    CONTAINER ID   IMAGE                          COMMAND                  CREATED       STATUS       PORTS                                                      NAMES
    e18157d11eda   photoprism/photoprism:latest   "/scripts/entrypoint…"   4 weeks ago   Up 4 weeks   0.0.0.0:2342->2342/tcp, :::2342->2342/tcp, 2442-2443/tcp   photoprism-photoprism-1
    b44e8a6fbc01   mariadb:11                     "docker-entrypoint.s…"   4 weeks ago   Up 4 weeks   3306/tcp                                                   photoprism-mariadb-1
    

    So if you go to photos.my_website_domain.net that will navigate the user to my_website_domain.net first. My nginx server will kick in and see you want the ‘photos’ path, and reroute you to basically http://my_website_domain.net:2342. My PhotoPrism server. So you could do http://my_website_domain.net:2342 or http://photos.my_website_domain.net. Either one works. The reverse proxy does the shortcut.

    Hope that helps!