Just a humble squid that over produces slime. Buy my slime, its a medical wonder, cures halitosis, weird eye syndrome, bolding.

  • 4 Posts
  • 117 Comments
Joined 6 个月前
cake
Cake day: 2024年3月31日

help-circle




  • this sounds very involved initially but hands off after the fact.

    Script
    #!/bin/bash
    
    cd ~/ || exit
    
    LATEST_KERNEL=$(curl -s https://www.kernel.org | grep -Po 'linux-\d+\.\d+\.\d+\.tar\.xz' | head -1)
    echo "Latest Kernel: $LATEST_KERNEL"
    
    KERNEL_URL="https://cdn.kernel.org/pub/linux/kernel/v6.x/$LATEST_KERNEL"
    echo "Kernel URL: $KERNEL_URL"
    
    DIR_NAME=$(echo $LATEST_KERNEL | sed 's/\.tar\.xz//')
    mkdir -p ./$DIR_NAME
    
    wget -O ./$DIR_NAME/$LATEST_KERNEL "$KERNEL_URL" || exit
    
    tar -xf ./$DIR_NAME/$LATEST_KERNEL -C ./$DIR_NAME || exit
    
    EXTRACTED_DIR=$(tar -tf ./$DIR_NAME/$LATEST_KERNEL | head -1 | cut -f1 -d"/")
    
    cd ./$DIR_NAME/$EXTRACTED_DIR || exit
    
    zcat /proc/config.gz > .config
    echo "Kernel config copied."
    
    if [ -f "drivers/gpu/drm/amd/display/dc/link/link_dpms.c" ] && [ -f "drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c" ]; then
        echo "Files found, proceeding with modifications..."
        
        sed -i 's/#define LINK_TRAINING_RETRY_DELAY 50 \/\* ms \*\//#include <linux\/module.h>\nstatic int link_training_retry_delay = 50;\nmodule_param(link_training_retry_delay, int, 0644);\nMODULE_PARM_DESC(link_training_retry_delay, "Delay between link training retries (ms)");\n#define LINK_TRAINING_RETRY_DELAY link_training_retry_delay/' drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c
        
        sed -i 's/#define LINK_TRAINING_ATTEMPTS 4/#include <linux\/module.h>\nstatic int link_training_attempts = 4;\nmodule_param(link_training_attempts, int, 0644);\nMODULE_PARM_DESC(link_training_attempts, "Number of link training attempts");\n#define LINK_TRAINING_ATTEMPTS link_training_attempts/' drivers/gpu/drm/amd/display/dc/link/link_dpms.c
        
    else
        echo "One or both files not found in the kernel source directory."
    fi
    
    echo "Kernel modifications complete."
    
    make olddefconfig || exit
    #make || exit
    
    echo "Compiling the kernel..."
    make -j16 || exit
    
    echo "Building modules..."
    sudo make modules_install || exit   
    
    echo "Installing the kernel..."
    sudo make install || exit   
    
    echo "Backing up existing kernel files..."
    sudo cp /boot/vmlinuz-linux /boot/vmlinuz-linux.bak
    sudo cp /boot/initramfs-linux.img /boot/initramfs-linux.img.bak
    
    echo "Moving new kernel files to /boot..."
    sudo cp ./arch/x86/boot/bzImage /boot/vmlinuz-fix
    sudo mkinitcpio -k $(make kernelrelease) -c /etc/mkinitcpio.conf -g /boot/initramfs-fix.img
    
    if [ -f /boot/vmlinuz-fix ] && [ -f /boot/initramfs-fix.img ]; then
        echo "Kernel and initramfs moved to /boot successfully."
    else
        echo "Failed to move kernel or initramfs files to /boot."
        exit 1
    fi
    
    echo "Kernel compilation, installation, and file replacement completed successfully."
    
    









  • Like I said, we had the lowest voter turnout since 1918. We’ve been under a Conservative government for 17 years, and now we have a Labour government that’s sticking to the same austerity measures—removing rent caps on social housing, increasing utility prices. Essentially, nothing has changed, and in some ways, things are getting worse.

    I’m not a liberal so there isn’t much rope for me to pull.

    I want real change, so I organize with a socialist party. I’ve gone door-to-door with TUSC candidates in the run up to the general election, spoken at counter-demonstrations, shown up at pickets, and helped set up community outreach throughout my local area. Just last month, I attended an international meeting in Germany, so it’s not like I’m some ill-informed internet loony. I’m more than happy for people to vote how they like, and I wouldn’t discourage anyone from doing so, but I also won’t use vapid slogans like “not voting is a vote for Trump.”


  • squid_slime@lemm.eeMtoLefty Memes@lemmy.dbzer0.comFrench libs right now
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    12 天前

    seems as if the United States electoral system has become systematized where using ones democratic right to not vote or vote third party is now an attack. in the UK where i am based we had a push to spoil ballot papers, this was a democratic protest against an unchanging system which many see as failing them. this election spoke for itself with the lowest voter turn out since 1918. how have we gone the Orwellion rout of framing democracy in such an undemocratic way.
    either way good luck in your election i hope the Democrats neither the orange man gets in.



  • many parties are active in this, the party i am a member of are having a push towards “fight bosses not migrants” we do need unity of the working class and calling working class people fascists will only push them deeper into their corners.
    the other day i spoke to someone about politics, he complained of housing prices, stagnating wages then exclaimed “its socialism” bottom line: he isn’t a fascist but where he gets his information from is fascist.


  • squid_slime@lemm.eeMtoLefty Memes@lemmy.dbzer0.comFrench libs right now
    link
    fedilink
    English
    arrow-up
    7
    arrow-down
    8
    ·
    edit-2
    12 天前

    if someone doesn’t agree with either party why should they vote? when someone refuses to vote for your party they are simple refusing, this does not mean they are voting for the other side. i really dislike this conflation people make.

    here’s a fun thought experiment. democrats win this upcoming election, does this mean all the people who didn’t vote had actually voted democrats?


  • It is, it has a hero’s tail kinda vibe, terminator perhaps. Whereas the right tend to come off as SkyNet in their violence.

    to come back to a serious point though, read History of The Russian Revolution and you will soon see the violence is a reaction to the class antagonism, these striking workers were peaceful till the police started shooting.