mirror of
https://github.com/Phantop/dotfiles
synced 2024-11-27 00:53:17 +00:00
local-bin optiflac, flacr, minecraft
This commit is contained in:
parent
36b9b8000e
commit
3ca41056f3
|
@ -1,24 +0,0 @@
|
|||
# Defined in /tmp/fish.3hjAN7/flacr.fish @ line 2
|
||||
function flacr
|
||||
mkdir out
|
||||
ls *.flac | parallel ffmpeg-static -i {} -c:v copy -c:a flac -compression_level 12 -af aresample=resampler=soxr:precision=32:dither_method=triangular -sample_fmt s16 $argv out/{}
|
||||
cd out
|
||||
for i in *
|
||||
if test (du $i | cut -f1) -lt (du ../$i | cut -f1)
|
||||
echo $i
|
||||
mv $i ../$i
|
||||
end
|
||||
end
|
||||
cd ..
|
||||
cp *.flac out
|
||||
cd out
|
||||
ls | parallel flacc {}
|
||||
for i in *
|
||||
if test (du $i | cut -f1) -lt (du ../$i | cut -f1)
|
||||
echo $i
|
||||
mv $i ../$i
|
||||
end
|
||||
end
|
||||
cd ..
|
||||
rm -r out
|
||||
end
|
|
@ -1,14 +0,0 @@
|
|||
function minecraft
|
||||
cd $D/Games/Minecraft/Game
|
||||
rm (ff -e log)
|
||||
bin/MultiMC -d . $argv
|
||||
rm functions/*
|
||||
for i in (ls -d instances/*/ | grep -v _MMC_TEMP | xargs -n1 basename)
|
||||
echo > functions/$i.fish "function $i
|
||||
minecraft -l $i; end"
|
||||
end
|
||||
for i in (cat ~/.config/qutebrowser/quickmarks | cut -d ' ' -f1)
|
||||
echo > functions/$i.fish function $i"
|
||||
qb / \":quickmark-load $i\"; end"
|
||||
end
|
||||
end
|
|
@ -1,24 +0,0 @@
|
|||
# Defined in /tmp/fish.B19DWM/optiflac.fish @ line 2
|
||||
function optiflac
|
||||
mkdir out
|
||||
ls *.flac | parallel ffmpeg -i {} -c:v copy -c:a flac -compression_level 12 $argv out/{}
|
||||
cd out
|
||||
for i in *
|
||||
if test (du $i | cut -f1) -lt (du ../$i | cut -f1)
|
||||
echo $i
|
||||
mv $i ../$i
|
||||
end
|
||||
end
|
||||
cd ..
|
||||
cp *.flac out
|
||||
cd out
|
||||
ls | parallel flacc {}
|
||||
for i in *
|
||||
if test (du $i | cut -f1) -lt (du ../$i | cut -f1)
|
||||
echo $i
|
||||
mv $i ../$i
|
||||
end
|
||||
end
|
||||
cd ..
|
||||
rm -r out
|
||||
end
|
23
.local/bin/flacr
Executable file
23
.local/bin/flacr
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
compare() {
|
||||
for i in *
|
||||
do
|
||||
if [ `du "$i" | cut -f1` -lt `du ../"$i" | cut -f1` ]
|
||||
then
|
||||
echo $i
|
||||
mv "$i" ../"$i"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
mkdir out
|
||||
ls *.flac | parallel ffmpeg-static -i {} -c:v copy -c:a flac -compression_level 12 -af aresample=resampler=soxr:precision=32:dither_method=triangular -sample_fmt s16 $@ out/{}
|
||||
cd out
|
||||
compare
|
||||
cd ..
|
||||
cp *.flac out
|
||||
cd out
|
||||
ls | parallel flac -f -8 -V {}
|
||||
compare
|
||||
cd ..
|
||||
rm -r out
|
15
.local/bin/minecraft
Executable file
15
.local/bin/minecraft
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
cd $D/Games/Minecraft/Game
|
||||
rm `ff -e log`
|
||||
bin/MultiMC -d . $@
|
||||
rm functions/*
|
||||
for i in `ls -d instances/*/ | grep -v _MMC_TEMP | xargs -n1 basename`
|
||||
do
|
||||
echo > functions/$i.fish "function $i
|
||||
minecraft -l $i; end"
|
||||
done
|
||||
for i in `cat ~/.config/qutebrowser/quickmarks | cut -d ' ' -f1`
|
||||
do
|
||||
echo > functions/$i.fish function $i"
|
||||
qb / \":quickmark-load $i\"; end"
|
||||
done
|
23
.local/bin/optiflac
Executable file
23
.local/bin/optiflac
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
compare() {
|
||||
for i in *
|
||||
do
|
||||
if [ `du "$i" | cut -f1` -lt `du ../"$i" | cut -f1` ]
|
||||
then
|
||||
echo $i
|
||||
mv "$i" ../"$i"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
mkdir out
|
||||
ls *.flac | parallel ffmpeg -i {} -c:v copy -c:a flac -compression_level 12 $@ out/{}
|
||||
cd out
|
||||
compare
|
||||
cd ..
|
||||
cp *.flac out
|
||||
cd out
|
||||
ls | parallel flac -f -8 -V {}
|
||||
compare
|
||||
cd ..
|
||||
rm -r out
|
Loading…
Reference in a new issue