I tried - Pawb.Social

Lemmy

you should have followed the basic linux guide and remove french language with rm -fr / then you wouldn’t have any problem

I miss the old days when you could do
ls -R / | aplay

There’s no sudo, so it’s perfectly safe!!

There was a thing you could do with cat /dev/random into aplay, and get some fun “Music” but you needed some other parameters to get anything other than brown noise.
#!/bin/env bash echo "What music to play?" echo "[1] Groovy; blues" echo "[2] Japanese" echo "[3] 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 2 --format U8 --rate 4000 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 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 S16 --rate 4000 } 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
×
you should have followed the basic linux guide and remove french language with rm -fr / then you wouldn’t have any problem
It’s Portuguese
In that case, rm -pt /

I miss the old days when you could do
ls -R / | aplay

There’s no sudo, so it’s perfectly safe!!

There was a thing you could do with cat /dev/random into aplay, and get some fun “Music” but you needed some other parameters to get anything other than brown noise.
Mine is basically the same, but since it pipes your filesystem layout into aplay instead of random bits, it’s not just brown noise.
It plays you the song of your system.
(also, it can damage your speakers, headphones and/or ears)
#!/bin/env bash echo "What music to play?" echo "[1] Groovy; blues" echo "[2] Japanese" echo "[3] 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 2 --format U8 --rate 4000 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 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 S16 --rate 4000 } 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
I’m curious how you got a permission denied error in your home directory??
Root@dev $ chroot user 000
Create file -> ChMod it so it’s unchangeable by me -> Touch file

Sooooooo…

  • touch grass
  • chmod 000 grass
  • touch grass # gets error
  • Post meme $$$
  • Yes with one caveat

    I don’t remember when I made or chmodded this grass file in my home

    I just saw it in the directory listing, went “why did I do that”, then chuckled and said “I’ll post this stupid thing on the internet”

    ls -l grass

    April 20th, last year.

    The question now becomes why did I do that.

    Maybe you tried “sudo touch grass” before.

    That’d probably lead to the privilege issues, but is easier to forget about.

    sudo touch grass
    There’s a commentary about class divides in needing administrator rights to touch grass.

    não foi possível tocar “grass”

    Toca Raul!

    A barreira de linguagem torna um pedido por um tipo específico de musica em uma sugestão imprópria envolvendo o Raul.
    Suddenly… CARALHO! - Brasil

    Finding Brazilians in unexpected places.

    Poço poço poço

    Eu suponho que seja meu dever nacional postar essa conversa nessa comunidade. Quer algo específico na Print?

    Uma capivara, fazendo o favor.
    sudo touch 'raul' - Pawb.Social

    Lemmy

    Hahahaha toca Raul foi boa!
    TIL the error message translation also affects the command name