Skip to content

Instantly share code, notes, and snippets.

View jmatthewturner's full-sized avatar

Jim Turner jmatthewturner

View GitHub Profile
@jmatthewturner
jmatthewturner / transcode.sh
Last active April 5, 2023 00:03
Bash Script for using FFMPEG to Transcode Video for DaVinci Resolve or Lightworks
#!/bin/bash
# This script uses ffmpeg to transcode video files into one of a few formats suitable for
# editing in either DaVinci Resolve or Lightworks on a Linux machine. It's purpose is to
# simplify my life and relieve me from having to look up and enter the same very long
# command over and over.
#
# If run with argument "all", the script will prompt for a directory containing video files, and
# transcode all video files in the directory into the selected format. If run with a file as an
# argument, it will transcode only that file, and will provide the additional option of
#!/bin/bash
# PLEASE NOTE: I started learning Bash scripting 4 weeks ago, so if this somehow
# breaks your system and opens a wormhole to the Gamma Quadrant,
# I'm sorry.
#
# This is a setup script for Debian-based computers. It is highly customized
# for my personal use; I made it public because I think it could be a good
# starting point for someone else. It will need to be customized for anyone
# else's use.
@jmatthewturner
jmatthewturner / graphics.sh
Last active January 15, 2021 04:06
Bash Script for Switching Graphics Modes on System 76 Oryx Pro
#!/bin/bash
# This is a script for switching between Intel and NVIDIA graphics modes
# on System 76 Oryx Pros. It was written because I installed KDE Plasma,
# thereby losing the graphics-switching functionality built into Gnome.
# But it should work just fine under Gnome, as well, if you're into that.
#
# It uses a modified version of Dave Miller's excellent ask.sh script,
# which can be found here:
# https://gist.github.com/davejamesmiller/1965569
@jmatthewturner
jmatthewturner / colors.sh
Last active August 25, 2019 11:39
Color Definitions for Bash Scripting
#!/bin/bash
# This is a script that defines a list of basic colors for use with
# text formatting in other scripts. It does not cover all possible colors,
# but it's a solid starting point.
#
# Usage: include this line at the top of any script that uses these colors:
# source [path to script]/colors.sh
# Then format like this:
# echo -e "This color is ${GREEN}green${RESET}."