-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
136 additions
and
5 deletions.
There are no files selected for viewing
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/bash | ||
# FLAC to MP3 converter script originally by | ||
# erdnuesse https://github.com/erdnuesse | ||
# adapted for use by me | ||
## - The IFS takes care of spaces in file and dirnames | ||
## - your folders may vary | ||
## - what you mount to the folders does not matter | ||
## - in RELDIR, the f5 most likely MUST be edited, | ||
## since its responsible, how many leading directories | ||
## will be removed from the directory structure in order | ||
## to append that exact path to the outfile | ||
## - the commented echos are still in place in order to give | ||
## you the variables for testing, before running. | ||
## just comment the ffmpeg / avconv command with a # | ||
## - on my raspberry I could only use avconv, not ffmpeg. | ||
## choose, whatever suits you best | ||
|
||
IFS=$'\n' | ||
|
||
## the paths given here contain my Directory structure, that I want to keep | ||
## source=/mnt/music/FLAC/ARTIST/ALBUM/FLACFILE.flac | ||
## local=/mnt/1tb/mp3/ARTIST/ALBUM/MP3FILE.mp3 | ||
|
||
source=$HOME/Music/ | ||
dest=$HOME/Music/Mobile | ||
|
||
for i in $(find $source -type f -iname '*.flac' ); | ||
do | ||
## SET VARIABLES for PATHS and FILENAMES | ||
fullfile=$i | ||
filename="${i##*/}" | ||
filename="${filename%.*}.mp3" | ||
fulldir=$(dirname "${i}") | ||
reldir="$(echo $fulldir | cut -d'/' -f5-)" | ||
reldir=${reldir//flac} | ||
outdir="$dest/$reldir" | ||
outfile="$outdir/$filename" | ||
|
||
# is that working? | ||
# outfile='$local/""$(echo $(dirname "${i}") | cut -d'/' -f5-)"//flac"/"${i##*/}"' | ||
# echo 'output file: ' "$outfile" | ||
|
||
## SHOW ME THE CONTENTS of the VARIABLES | ||
# echo 'File found:' "$i" | ||
# echo 'Relative dir: ' "$reldir" | ||
# echo 'directory will be created: ' "$outdir" | ||
# echo 'Filename: ' "$filename" | ||
# echo 'FileExt: ' "$extension" | ||
# echo 'output file: ' "$outfile" | ||
|
||
## CREATE Output Folders | ||
mkdir -p "$outdir" | ||
|
||
## RUN | ||
ffmpeg -n -loglevel info -i "$fullfile" -codec:a libmp3lame -qscale:a 0 "$outfile" | ||
# avconv -n -nostats -loglevel info -i "$fullfile" -codec:a libmp3lame -qscale:a 0 "$outfile" | ||
## just for testing | ||
# sleep 1 | ||
done | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
#!/bin/sh | ||
setxkbmap ie -option "caps:swapescape" | ||
sudo localectl --no-convert set-x11-keymap ie | ||
# swap caps & escape: | ||
# setxkbmap ie -option "caps:swapescape" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
docker run \ | ||
-e "BRANCH_NAME=lineage-18.1" \ | ||
-e "DEVICE_LIST=surya" \ | ||
-e "SIGN_BUILDS=true" \ | ||
-e "SIGNATURE_SPOOFING=restricted" \ | ||
-e "CUSTOM_PACKAGES=GmsCore GsfProxy FakeStore MozillaNlpBackend NominatimNlpBackend com.google.android.maps.jar FDroid FDroidPrivilegedExtension " \ | ||
-v "/mnt/storage/lineageos4microg/lineage:/srv/src" \ | ||
-v "/mnt/storage/lineageos4microg/zips:/srv/zips" \ | ||
-v "/mnt/storage/lineageos4microg/logs:/srv/logs" \ | ||
-v "/mnt/storage/lineageos4microg/ccache:/srv/ccache" \ | ||
-v "/home/wizzdom/keys:/srv/keys" \ | ||
-v "/mnt/storage/lineageos4microg/manifests:/srv/local_manifests" \ | ||
lineageos4microg/docker-lineage-cicd | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
docker run \ | ||
-e "BRANCH_NAME=lineage-18.1" \ | ||
-e "DEVICE_LIST=surya" \ | ||
-e "SIGN_BUILDS=true" \ | ||
-e "SIGNATURE_SPOOFING=restricted" \ | ||
-e "CUSTOM_PACKAGES=GmsCore GsfProxy FakeStore MozillaNlpBackend NominatimNlpBackend com.google.android.maps.jar FDroid FDroidPrivilegedExtension " \ | ||
-v "/mnt/storage/lineageos4microg/lineage:/srv/src" \ | ||
-v "/mnt/storage/lineageos4microg/zips:/srv/zips" \ | ||
-v "/mnt/storage/lineageos4microg/logs:/srv/logs" \ | ||
-v "/mnt/storage/lineageos4microg/ccache:/srv/ccache" \ | ||
-v "/home/wizzdom/keys:/srv/keys" \ | ||
-v "/mnt/storage/lineageos4microg/manifests:/srv/local_manifests" \ | ||
lineageos4microg/docker-lineage-cicd | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
docker run \ | ||
-e "BRANCH_NAME=lineage-18.1" \ | ||
-e "DEVICE_LIST=surya" \ | ||
-e "SIGN_BUILDS=true" \ | ||
-e "SIGNATURE_SPOOFING=restricted" \ | ||
-e "CUSTOM_PACKAGES=GmsCore GsfProxy FakeStore MozillaNlpBackend NominatimNlpBackend com.google.android.maps.jar FDroid FDroidPrivilegedExtension " \ | ||
-v "/mnt/storage/lineageos4microg/lineage:/srv/src" \ | ||
-v "/mnt/storage/lineageos4microg/zips:/srv/zips" \ | ||
-v "/mnt/storage/lineageos4microg/logs:/srv/logs" \ | ||
-v "/mnt/storage/lineageos4microg/ccache:/srv/ccache" \ | ||
-v "/home/wizzdom/keys:/srv/keys" \ | ||
-v "/mnt/storage/lineageos4microg/manifests:/srv/local_manifests" \ | ||
lineageos4microg/docker-lineage-cicd | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Enable Overclock and cooling options using coolbits: | ||
sudo nvidia-xconfig --cool-bits=28 | ||
|
||
# Raise GPU's TDP (power) limit to max: | ||
sudo nvidia-smi -pl 75 | ||
|
||
# Apply GPU clocks from /etc/nvoc.d/gpu0.conf : | ||
nvoc --apply |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
export WINEESYNC=1 | ||
export WINEPREFIX=/mnt/storage/Games/osu | ||
/opt/wine-osu/bin/wine /opt/wine-discord-ipc-bridge/winediscordipcbridge.exe |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh | ||
#!/bin/bash | ||
killall pulseaudio | ||
killall mpd | ||
$HOME/.config/screenlayout/laptop-upstairs-docked.sh | ||
# $HOME/.config/screenlayout/laptop-upstairs-docked.sh | ||
pulseaudio & | ||
mpd & |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
LABEL="Virtual Cam" | ||
NOHUP=1 | ||
sudo modprobe v4l2loopback video_nr=5 card_label="$LABEL" exclusive_caps=1 | ||
if [ $NOHUP = 1 ]; | ||
then | ||
nohup ffmpeg -i /dev/video0 -f v4l2 -vcodec rawvideo -pix_fmt yuv420p /dev/video5 & | ||
elif [ $NOHUP = 0 ] | ||
then | ||
ffmpeg -i /dev/video0 -f v4l2 -vcodec rawvideo -pix_fmt yuv420p /dev/video5 | ||
else | ||
echo "Error: incorrect NOHUP value" | ||
fi |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
query=$(printf '%s' "$*" | tr ' ' '+') | ||
mpv https://youtube.com/$(curl -s "https://vid.puffyan.us/search?q=$query" | grep -Eo "watch\?v=.{11}" | head -n 1) |