My son is trans which makes me transparent

  • 0 Posts
  • 17 Comments
Joined 1 year ago
cake
Cake day: June 13th, 2023

help-circle






  • I use a custom script to open all post and external links on the front page in a new tab. Based on a script I found online but customised to beehaw specifically.

    // ==UserScript==
    // @name         beehaw - Open links in new tab
    // @description  Open links in new tab. Ctrl-click or Middle-click loads it in background
    // @match      http*://*beehaw.org/home*
    // @match      http*://*beehaw.org
    // @version      0.0.1
    // @grant        GM_openInTab
    // @run-at       document-start
    // ==/UserScript==
    
    var suppressing, clickedElement;
    
    window.addEventListener('mousedown', function (e) {
      clickedElement = e.target;
    }, true);
    
    window.addEventListener('mouseup', function (e) {
      if (e.button > 1 || e.altKey || e.target != clickedElement) {
        return;
      }
      var link = e.target.closest('a');
    
      if (!link || !link.href) {
          return;
      }
    
      if (link.getAttributeNode('aria-label') && link.getAttributeNode('aria-label').value == 'Expand here') {
          return;
      }
    
      if (link.href.startsWith('https://beehaw.org') && !link.href.startsWith('https://beehaw.org/post/')) {
        return;
      }
    
      GM_openInTab(link.href, {
        active: !e.button && !e.ctrlKey,
        setParent: true,
        insert: true,
      });
      suppressing = true;
      setTimeout(function () {
        window.dispatchEvent(new MouseEvent('mouseup', {bubbles: true}));
      });
      prevent(e);
    }, true);
    
    window.addEventListener('click', prevent, true);
    window.addEventListener('auxclick', prevent, true);
    
    function prevent(e) {
      if (!suppressing) {
        return;
      }
      e.preventDefault();
      e.stopPropagation();
      e.stopImmediatePropagation();
      setTimeout(function () {
        suppressing = false;
      }, 100);
    }
    
    










  • giddy@beehaw.orgtoSelfhosted@lemmy.worldSelfhosting behind VPN?
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 year ago

    What hardware do you run on? Or do you use a data center/cloud?

    I have 2 home servers - an Intel NUC running Ubuntu and a Raspberry Pi running Raspberry Pi OS. The NUC is my main server and the rpi is a dedicated wireguard/pivpn.

    Do you use containers or plain packages?

    On the main server I use docker containers almost exclusively. I find them easier to stand up and tear down, particularly using scripts, without worrying about the broader OS.

    I have the following services on the NUC -

    • Nginx Proxy Manager (for https proxy)
    • Nextcloud
    • Airsonic
    • Calibre-web
    • Invidious
    • h5ai
    • transmission

    I did play around with my own Lemmy instance but that was not successful and I found beehaw :-)

    Orchestration tools like K8s or Docker Swarm?

    No

    How do you handle logs?

    Badly. I lost a server due to root filling up a couple years back. Now I monitor disk space (see below) and prune logs as required.

    How about updates?

    OS updates I push daily. I don’t regularly update my docker containers. I did use Watchtower for a while but found it broke stuff a little too often.

    Do you have any monitoring tools you love?

    Just some custom batch scripts (disk space, backups etc) which send me regular emails. I also have conky running on a small screen 24x7