Better organised, too lazy to clean up full thing

master
Leo Coogan 4 years ago
parent c0ff099e94
commit 8afbfb8532

@ -7,8 +7,7 @@ A collection of useful scripts. These scripts are written by various authors. At
| abc | A Binary Comparison tool. |
| db | Quickly cd into specific directories using short aliases. |
| eliza | Runs the perl clone of the Eliza chatbot. |
| ffconv | Batch convert mkvs to mp4s. |
| ffconv-a | Batch convert from one format to another. |
| ffconv | Batch convert from one format to another. |
| ffconv-ar | Batch convert from one format to another without preserving metadata. |
| ffr | Record a given window with ffmpeg to the current directory. |
| gpltopnm | Convert gpl to ppm. |
@ -25,6 +24,7 @@ A collection of useful scripts. These scripts are written by various authors. At
| repack | Completely repack an NDS rom with `ndstool`. |
| scanif | Scan several documents one-by-one with SANE/CUPS. |
| unpack | Completely unpack an NDS rom with `ndstool`. |
| whereami | Reimplementation of the old `whereami` command in Tcl. |
| yt-dl | youtube-dl "magic" download. |
| yt-mpeg | Turn wav/cover image into a video optimised for yt. |

@ -1,4 +1,6 @@
#!/bin/bash
# abc - A Binary Comparison tool
# Written by mirrorsedgefan (mef)
function oct2asc() {
if [[ $1 ]]; then

@ -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,4 +1,5 @@
#!/bin/dash
#ffconv-ar - batch convert between formats without preserving metadata
echo Convert from...
read ext
echo Convert to...

@ -1,4 +1,5 @@
#!/usr/bin/env dash
#inc - increment - copy a single file to the number of files by hex in the current dir
i="0"
ext="swav"
n="00"

@ -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,4 +1,5 @@
#!/usr/bin/env python
#Create NDS banner.bin files
from PIL import Image
"""
Created by Alpha [http://projectpokemon.org | http://pokesplash.net]

@ -1,4 +1,5 @@
#!/usr/bin/env python3
#magical's LZSS compressor/decompressor
import sys
from sys import stdin, stdout, stderr, exit

@ -1,4 +1,5 @@
#!/bin/python3
#magical's LZSS compressor
# used http://code.google.com/p/u-lzss/source/browse/trunk/js/lib/ulzss.js as
# a guide
from sys import stderr

@ -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,4 +1,6 @@
#!/bin/dash
#scanif - scan several documents one-b-one with SANE/CUPS.
#Written by Leo Coogan / fm'latghor & re:fi.64 / Ryan Gonzalez
i=0
while true; do
read -p "Ready to scan. Scan your item(s)? y/N " yn

@ -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"

@ -1,4 +1,5 @@
#!/bin/dash
#yt-mpeg - Turn wav/cover image into a video optimised for yt
echo Cover art:
read cover
echo Audio:

Loading…
Cancel
Save