To send your microphone output over a network via netcat you can do the following:
On the receiving side start to listen for the sound, decode it and play:
> netcat -l -p 3333 127.0.0.1 |opusdec --force-wav - -|aplay
On the sending side create a named pipe:
> mknod /tmp/pipi p
Then start the recording and encoding as opus and put it into the pipe:
> arecord -f cd |opusenc --raw --raw-rate 44100 - /tmp/pipi
In a new terminal send from the pipe to netcat:
> cat /tmp/pipi |netcat 127.0.0.1 3333
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq | awk '{printf("CPU_%s: %.2f MHz\n",NR, $0/1000)}'
cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq | awk '{s+=$1}END{printf("MITTE: %.2f MHz\n",s/4000)}'
cat /sys/devices/system/cpu/cpu*/cpufreq/stats/time_in_state | awk '{a[$1] += $2; s += $2}END{for(i in a){print i,a[i]/s}}'
#!/bin/bash
if [ -z "$1" ]; then
echo "Please give URL."
exit 1;
fi
src=$1;
url=$(curl -s $src | grep -m 1 -o -e 'https:///video/[0-9]\+/[0-9]\+/TV-[0-9]\+-[0-9]\+-[0-9]\+');
echo $url | awk '{if($1 ~ /^https/){exit 0}else{exit 1}}'
if [ $? -eq 0 ]; then
#echo "$url";
wget $url;
else
echo "Nicht geklappt: $url ___ $src";
fi
START
ESCWYP
MUSIC
VIDEOS