Better organised, too lazy to clean up full thing
parent
c0ff099e94
commit
8afbfb8532
@ -1 +1,3 @@
|
||||
#!/usr/bin/zsh
|
||||
# db - quickly cd into specific directories using short aliases.
|
||||
awk '{print "alias "$1"=\"cd "$2"\""}' ~/Scripts/cfg/db | sort -u > ~/Scripts/dat/db-c
|
||||
|
||||
@ -1,5 +1,17 @@
|
||||
for i in *.mkv;
|
||||
do name=`echo "$i" | cut -d'.' -f1`
|
||||
echo "$name"
|
||||
ffmpeg -i "$i" "${name}.mp4"
|
||||
#!/bin/dash
|
||||
#ffconv - Batch convert from one format to another
|
||||
echo Convert from...
|
||||
read ext
|
||||
echo Convert to...
|
||||
read toext
|
||||
|
||||
for i in *.$ext; do ffmpeg -i "$i" "${i%.*}.$toext"; done
|
||||
|
||||
while true; do
|
||||
read -p "Delete original files? " yn
|
||||
case $yn in
|
||||
[Yy]* ) rm *.$ext; exit;;
|
||||
[Nn]* ) exit;;
|
||||
* ) printf "Please answer yes or no. ";;
|
||||
esac
|
||||
done
|
||||
|
||||
@ -1,16 +0,0 @@
|
||||
#!/bin/dash
|
||||
echo Convert from...
|
||||
read ext
|
||||
echo Convert to...
|
||||
read toext
|
||||
|
||||
for i in *.$ext; do ffmpeg -i "$i" "${i%.*}.$toext"; done
|
||||
|
||||
while true; do
|
||||
read -p "Delete original files? " yn
|
||||
case $yn in
|
||||
[Yy]* ) rm *.$ext; exit;;
|
||||
[Nn]* ) exit;;
|
||||
* ) printf "Please answer yes or no. ";;
|
||||
esac
|
||||
done
|
||||
@ -1,2 +1,4 @@
|
||||
#!/bin/bash
|
||||
#Concatenate mkvs
|
||||
for f in ./*.mkv; do echo "file '$f'" >> list.txt; done
|
||||
ffmpeg -f concat -safe 0 -i list.txt -c copy output.mkv
|
||||
|
||||
@ -1 +1,3 @@
|
||||
#!/usr/bin/dash
|
||||
#Rescan for pulseaudio devices
|
||||
pacmd unload-module module-udev-detect && pacmd load-module module-udev-detect
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
#!/bin/dash
|
||||
#repack - Completely repack an NDS ROM with ndstool
|
||||
ndstool -c pk_baserom.nds -9 arm9.bin -9i arm9i.bin -7 arm7.bin -7i arm7i.bin -y9 y9.bin -y7 y7.bin -d data -y overlay -t banner.bin -h header.bin # -o banner.bmp
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
#!/bin/dash
|
||||
#unpack - Completely unpack an NDS ROM with ndstool
|
||||
ndstool -x baserom.nds -9 arm9.bin -9i arm9i.bin -7 arm7.bin -7i arm7i.bin -y9 y9.bin -y7 y7.bin -d data -y overlay -t banner.bin -h header.bin -o banner.bmp
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
#!/bin/dash
|
||||
#yt-dl - youtube-dl "magic" download
|
||||
echo Playlist URL:
|
||||
read url
|
||||
youtube-dl "$url" --yes-playlist --audio-format flac -x --audio-quality 0 --add-metadata -o "%(title)s.%(ext)s"
|
||||
|
||||
Loading…
Reference in New Issue