Littux

joined 9 months ago
[–] Littux@lemmy.world 8 points 2 months ago

I hate it when someone dumps their log file without using a code block. Even seen some Arch Linux users do it, which is, unsurprising really.

[–] Littux@lemmy.world 4 points 2 months ago

Voyager for Lemmy showing "Never gonna give you up" thumbnail alongside the link

Voyager saved me

[–] Littux@lemmy.world 1 points 2 months ago (1 children)

Does WhatsApp actually use markdown? The implementation is awful then.

[–] Littux@lemmy.world 5 points 2 months ago (1 children)

Merging the upvotes and downvotes is the best option

[–] Littux@lemmy.world 4 points 2 months ago* (last edited 2 months ago)
#!/bin/env bash
echo "What music to play?"
echo "[1] Groovy; blues"
echo "[2] Japanese"
echo "[3] ??"
echo "[4] 8 bit Bass boosted"
read music

if [[ $music -eq 1 ]]; then
    echo "Enjoy!!"
    cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("0,3,5,6,7,10,12",a,","); for (i = 0; i < 1; i+= 0.0001) printf("%08X\n", 100*sin(1382*exp((a[$1 % 8]/12)*log(2))*i)) }' | xxd -r -p | pacat --channels 2 --format S32 --rate 24000
fi


if [[ $music -eq 2 ]]; then
    echo 'Enjoy!!'
    cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("4,5,7,11",a,","); for (i = 0; i < 1; i+= 0.0001) printf("%08X\n", 100*sin(1046*exp((a[$1 % 8]/12)*log(2))*i)) }' | xxd -r -p | pacat --channels 2 --format S32 --rate 24000 &

    cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("0,2,4,5,7,9,11,12",a,","); for (i = 0; i < 1; i+= 0.0001) printf("%08X\n", 100*sin(1382*exp((a[$1 % 8]/12)*log(2))*i)) }' | xxd -r -p | pacat --channels 1 --format s32 --rate 2000
fi


[ $music -eq 4 ] && {
    cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("4,5,7,11",a,","); for (i = 0; i < 1; i+= 0.0001) printf("%08X\n", 100*sin(1046*exp((a[$1 % 8]/12)*log(2))*i)) }' | xxd -r -p | pacat --channels 1 --format S16 --rate 80000 &

    cat /dev/urandom | hexdump -v -e '/1 "%u\n"' | awk '{ split("0,2,4,5,7,9,11,12",a,","); for (i = 0; i < 1; i+= 0.0001) printf("%08X\n", 100*sin(1382*exp((a[$1 % 8]/12)*log(2))*i)) }' | xxd -r -p | pacat --channels 1 --format u8 --rate 8000 --volume=50000
}


if [[ $music -eq 3 ]]; then
  echo "Taken from r/coding; enjoy!!"
  awk 'function wl() {
        rate=64000;
        return (rate/160)*(0.87055^(int(rand()*10)))};
    BEGIN {
        srand();
        wla=wl();
        while(1) {
            wlb=wla;
            wla=wl();
            if (wla==wlb)
                {wla*=2;};
            d=(rand()*10+5)*rate/4;
            a=b=0; c=128;
            ca=40/wla; cb=20/wlb;
            de=rate/10; di=0;
            for (i=0;i<d;i++) {
                a++; b++; di++; c+=ca+cb;
                if (a>wla)
                    {a=0; ca*=-1};
                if (b>wlb)
                    {b=0; cb*=-1};
                if (di>de)
                    {di=0; ca*=0.9; cb*=0.9};
                printf("%c",c)};
            c=int(c);
            while(c!=128) {
                c<128?c++:c--;
                printf("%c",c)};};}' | sox -t raw -r 64k -c 1 -e unsigned -b 8 - -d
fi
exit 0
[–] Littux@lemmy.world 5 points 2 months ago (1 children)

I went from GNOME on Ubuntu, to KDE on Manjaro, to XFCE on Manjaro, and finally i3 on Arch.

GNOME was sluggish and not customisable.
KDE had graphical glitches everywhere that made navigating interfaces annoying sometimes

On XFCE, I actually didn't find that many issues. I just stopped using Manjaro and switched to i3 when doing so.

[–] Littux@lemmy.world 3 points 3 months ago

If they were using user agents for identification, Android browsers on "Desktop mode" would be wrongly identified as "Linux". Even Discord has this issue on their download page. "Premium" Android devices with large screens use Desktop mode by default

[–] Littux@lemmy.world 4 points 4 months ago* (last edited 3 months ago)

!spezholedesign@lemmy.world

[–] Littux@lemmy.world 16 points 5 months ago (3 children)

That's probably the reason. My account is 1y 4m old and has 32K Karma. They don't ban high karma users that fast since it would sharply reduce the content on the site.

[–] Littux@lemmy.world 4 points 5 months ago (2 children)
[–] Littux@lemmy.world 3 points 5 months ago* (last edited 5 months ago) (6 children)

That zero-width hack doesn't seem to work:

len("Le()mmy")
8

len("(Lemmy)")
7
[–] Littux@lemmy.world 32 points 5 months ago (6 children)

I moderate r/spezholedesign and have set up AutoModerator to promote Lemmy on all posts. I have made a post directly linking to lemmy.world and nothing has happened. I've never gotten shadowbanned or suspended

view more: next ›