Skip to content

Instantly share code, notes, and snippets.

@ajshell1
ajshell1 / datslim
Last active July 5, 2021 15:11
datslim
#!/bin/bash
#depends on xmlstarlet
#Proper usage: ./datslim name-of-datfile
# This assumes you already have a list of dumps called "have"
#Step 1: assign file names to variables. This is not needed, but it's a habit of mine.
#if you don't like
inhave=have
havefile=have2
tempdat=tempdat.xml
#"$1" is bash's shorthand for "command line argument #1".
@ajshell1
ajshell1 / dictui.sh
Last active May 18, 2019 16:16
Fully-featured Dialog menu for DiscImageCreator on Linux. Version 1.05
#!/bin/bash
#DICTUI
#Version 1.05
#Dependencies: DiscImageCreator_linux, diccheck, dialog, speaker-test
#These variables define your drives. drive0 corresponds to /dev/sr0. To figure out which drive is which, run "cdrdao scanbus"
#If you have your drives assigned as something other than /dev/srX, you have to manually edit that menu later.
drive0="ASUS BW-12B1ST a 1.00"
drive1="HL-DT-ST GCE-8483E GW02"
drive2="TSSTcorp SH-D163B SB01"
drive3="PLEXTOR PX-W4012A 1.07"
@ajshell1
ajshell1 / dicdvd.sh
Last active February 11, 2019 00:18
Bash helper file for dumping CDs with the Linux version of DIC
#!/bin/bash
#This script is released under a public domain license
echo "Welcome to DiscImageCreator for Linux."
echo "This script was made by ajshell1. DIC was made by sarami."
echo "This script was inspired by DICUI by darksabre76 and ReignStumble"
echo "WARNING: You will need to modify this script slightly before use!"
echo "There is a line that contains (chmod -R .) replace (aj:users) with your name and group before use!"
echo "Please specifiy the file name (Don't enter the file extension or use quotes!"
read name
echo "What speed do you want to use?"
@ajshell1
ajshell1 / diccd.sh
Last active February 11, 2019 00:17
Bash helper file for dumping CDs with the Linux version of DIC
#!/bin/bash
#This script is released under a public domain license
echo "Welcome to DiscImageCreator for Linux."
echo "This script was made by ajshell1. DIC was made by sarami."
echo "This script was inspired by DICUI by darksabre76 and ReignStumble"
echo "WARNING: You will need to modify this script slightly before use!"
echo "There is a line that contains (chmod -R .) replace (aj:users) with your name and group before use!"
echo "Please specifiy the file name (Don't enter the file extension or use quotes!"
read name
echo "What speed do you want to use?"