This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Feel free to change filename to $1 and implement amd or nvida hwa | |
# sudo apt install intel-media-va-driver-non-free -- non-free needed to encode | |
GPU_INTEL=$(ffmpeg -hide_banner -loglevel error -encoders | grep h264_qsv | wc -l) | |
GPU_DRIVR=$(ffmpeg -hide_banner -loglevel error -h encoder=h264_qsv | grep -i "Supported hardware devices: qsv qsv qsv" | wc -l) | |
mkdir -p .meta |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Send a HDRadio program (Hybrid Digital) to icecast for listening across network on audio apps and standalone internet radios without HDRadio tuners onboard | |
# https://github.com/theori-io/nrsc5 | |
# sudo apt install icecast2 | |
nrsc5 -q -d 0 107.5 0 -o - | ffmpeg -re -i pipe:0 -codec:a libmp3lame -b:a 192k -f mp3 -content_type audio/mpeg icecast://source:[email protected]:3345/hdradio |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -re -i http://192.168.2.221:5004/auto/v4.1 -vn -codec:a libmp3lame -b:a 128k -f mp3 -content_type audio/mpeg icecast://source:[email protected]:3345/hd-4-1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pip install pysinewave==0.0.7 | |
from pysinewave import SineWave | |
def pips_bbc(): | |
sinewave = SineWave(pitch = 23, decibels = -20) | |
pips = [0.1, 0.1, 0.1, 0.1, 0.1, 0.5] | |
for i in range(len(pips)): | |
sinewave.play(); time.sleep(float(pips[i])) | |
sinewave.stop(); time.sleep(float(1-pips[i])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import os, socket | |
# Perform LAN scan | |
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
s.connect(("1.1.1.1", 80)) | |
h = s.getsockname()[0].split(".") | |
h = str(h[0] + "." + h[1] + "." + h[2]) | |
s.close() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Can store 150 stations | |
favCapacity:150 | |
Download favourites (stored stations as encrypted download, not plain text csv or pls) | |
http://xxx.xxx.x.xx/php/saveFav.php | |
Add local station as FM via favorites form input field | |
fm://9030/FM 90.30 MHz | |
Store a station: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Flathub No No No | |
wget https://apt.llvm.org/llvm.sh | |
chmod u+x llvm.sh | |
sudo ./llvm.sh 14 | |
sudo apt install cmake g++-10-multilib libaio-dev libasound2-dev libcairo2-dev libegl-dev \ | |
libegl1-mesa-dev libgdk-pixbuf2.0-dev libgirepository-1.0-1 libgl-dev libgl1-mesa-dev \ | |
libgl1-mesa-dri libgles-dev libgles-dev libgles2-mesa-dev libglib2.0-dev libglu1-mesa-dev \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "$1" >> ./yt-dl.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$( document ).ready(function() { | |
/* DON'T DO THIS IN EDIT MODE */ | |
if (!$('body').hasClass('has-edit-mode-menu')) { | |
console.log("You're in Page View Mode"); | |
} else { | |
NewerOlder