• 1 Post
  • 154 Comments
Joined 2 years ago
cake
Cake day: June 28th, 2023

help-circle

  • If you are new to Linux I think it makes sense to use systemd. It’s the default for a reason. All major distros use it for a reason. It’s only a really small minority of very vocal people who are against it.

    If Debian and Fedora and Ubuntu and All the enterprise linuxes use the same thing, I think that says something.

    Despite claims to the contrary systemd is substantially faster and easier to use than its predecessor.

    It’s simpler and easier to use. Take a look at these examples. Service files are so so much easier to use and are much more robust than hundred line bash scripts.

    Systemd:

    [Unit]
    Description=OpenVPN tunnel for %i
    After=network-online.target
    Wants=network-online.target
    
    [Service]
    ExecStart=/usr/sbin/openvpn --config /etc/openvpn/%i.conf
    Restart=on-failure
    
    [Install]
    WantedBy=multi-user.target
    

    Sysvinit

    #!/bin/sh
    ### BEGIN INIT INFO
    # Provides:          openvpn
    # Required-Start:    $network $remote_fs
    # Required-Stop:     $network $remote_fs
    # Default-Start:     2 3 4 5
    # Default-Stop:      0 1 6
    # Short-Description: OpenVPN service
    # Description:       Start or stop OpenVPN tunnels.
    ### END INIT INFO
    
    DAEMON=/usr/sbin/openvpn
    CONFIG_DIR=/etc/openvpn
    PID_DIR=/run/openvpn
    DESC="OpenVPN service"
    NAME=openvpn
    
    . /lib/lsb/init-functions
    
    start() {
        log_daemon_msg "Starting $DESC"
    
        mkdir -p "$PID_DIR"
    
        for conf in "$CONFIG_DIR"/*.conf; do
            [ -e "$conf" ] || continue
            inst=$(basename "$conf" .conf)
            pidfile="$PID_DIR/$inst.pid"
    
            if start-stop-daemon --start --quiet --background \
                --pidfile "$pidfile" --make-pidfile \
                --exec "$DAEMON" -- --daemon ovpn-$inst --writepid "$pidfile" --config "$conf"; then
                log_progress_msg "$inst"
            else
                log_warning_msg "Failed to start $inst"
            fi
        done
        log_end_msg 0
    }
    
    stop() {
        log_daemon_msg "Stopping $DESC"
        for pid in "$PID_DIR"/*.pid; do
            [ -e "$pid" ] || continue
            inst=$(basename "$pid" .pid)
            if start-stop-daemon --stop --quiet --pidfile "$pid"; then
                rm -f "$pid"
                log_progress_msg "$inst"
            else
                log_warning_msg "Failed to stop $inst"
            fi
        done
        log_end_msg 0
    }
    
    status() {
        for conf in "$CONFIG_DIR"/*.conf; do
            [ -e "$conf" ] || continue
            inst=$(basename "$conf" .conf)
            pidfile="$PID_DIR/$inst.pid"
            if [ -e "$pidfile" ] && kill -0 "$(cat "$pidfile" 2>/dev/null)" 2>/dev/null; then
                echo "$inst is running (pid $(cat "$pidfile"))"
            else
                echo "$inst is not running"
            fi
        done
    }
    
    case "$1" in
        start) start ;;
        stop) stop ;;
        restart) stop; start ;;
        status) status ;;
        *) echo "Usage: $0 {start|stop|restart|status}"; exit 1 ;;
    esac
    
    exit 0
    




  • The reason I wouldn’t give advice if you didn’t want it because unwanted unsolicited advice tends to be useless and annoying for most people. If you didn’t want the advice I wouldn’t waste my time.

    My advice is to focus on being able to organize your thoughts and write them out in a cohesive structured way.

    This helps you:

    1. Express yourself in a clear, understandable, and perhaps persuasive way.
    2. Organize your own personal wants, needs, and desires introspectively.

    Both of these are important life skills that are extremely beneficial. Using a LLM to organize and clarify positions is like using a crutch when you should be in physical therapy. On top of this using a LLM completely erases any personality in your writing and replaces it with corpo style speak.

    Practicing organizing and expressing your ideas (like physical therapy) can be hard and sometimes painful. But you get better.

    Using a LLM is like refusing to go to physical therapy and using crutches for the rest of your life by choice. Easier in the short term but bad for your own quality of life long term.

    Places like lemmy are great for writing practice. Rambling nonsense is pretty universally downloaded. Lemmy forces you to organize and classify what you are thinking and why.

    If you want to get started I would recommend the basic “5 Paragraph Essay” structure. In the case of a basic lemmy comment take those principles and make it a 5 sentence structure.

    I hope this helps.



  • Do you always have ideas in the middle of the night and want to post them only to have an RSI flare up and no laptop nearby and decide to use ChatGPT to write your posts?

    It’s not just this response. All of your posts read the same way.

    Like using AI as a writing assistant is fine and all. But the posts you copy paste over are mostly LLM structured arguments.





  • I think you should do more then just add a disclaimer. You should add a proper license. It protects you and allows others to build upon your work in a predictable way.

    That and licenses are legally battle hardened and proven. A self written disclaimer is not.

    I would recommend licensing your scripts under the GPL. This lets other people use it with the understanding that if they improve it they have to let others use the improvements too.

    That and it protects you like you want. Particularly section 15 and 16.

    1. Disclaimer of Warranty.

    THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

    1. Limitation of Liability.

    IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

    Alternatively you could use the MIT or BSD licenses, but they don’t have the “share alike” clause, so I tend not to recommend them.

    https://www.gnu.org/licenses/gpl-3.0.en.html






  • I don’t think it’s equivalent to sovereign citizens. OP is the author of their comment and therefore has the copyrights. As the author one can license their work as all rights reserved or other permissive licenses.

    OP chooses to license their work as Creative Commons.

    They’re not forcing you to accept the license, it’s your local government that enforces copyright.

    The reason why this might work on Lemmy but not on corporate Social media is that corporate social media often have terms of service that require you to give them ownership/rights/etc. Lemmy has no such ToC.


  • It’s government reporting data. If you find a better source I say go for it. But I used that data for salary negotiations in the past successfully.

    I’m not talking about take home. I’m talking about total annual compensation including things like RSU payouts etc.

    Even if we throw out the ones you doubt there are many 300k to 400k entries with the AI researcher title. If we add annualized RSU payouts we easily hit over €500k.

    At this point t though you are free to doubt me.