This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A simple script that downloads multiple YouTube videos at once. | |
# Define the videos to download by adding the link in the list below. | |
# make sure that you have yt-dlp installed on your machine. | |
# Link: https://github.com/yt-dlp/yt-dlp | |
# Define a list of YouTube links | |
links=( | |
"<youtube link here>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A simple script that makes use of pandoc for converting files between formats. | |
# Toss this file into a directory to process multiple files at once. | |
# args --ext <extension to look for> --to <extension to convert to> | |
# default ext is markdown default to is docx | |
# Ensure that you have pandoc installed located here: https://pandoc.org/installing.html | |
ext="md" | |
to="docx" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A simple script that takes an mp4, grabs the audio, and converts to an mp3. | |
# Toss this script into a directory with mp4 to be converted into audio files. | |
# Ensure that you have ffmpeg installed located here: https://ffmpeg.org/download.html | |
# Loop through all MP4 files in the current directory | |
for file in *.mp4; do | |
# Check if the file exists (to avoid error if no MP4 files) | |
if [[ -f "$file" ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a modified version of this: https://github.com/ggreer/jekyll-gallery-generator | |
# | |
# Maybe I should actually fork this at some point but I didn't actually think that | |
# this was something that would stand the chance of getting merged back into | |
# the actual plug-in itself. | |
# | |
# Basically my mods allow for you to have a structure which looks changes from this: | |
# http://example.com/gallery/awesome-trip-2015/awesome-photo-from-my-trip-001.jpg | |
# and is converted to this: | |
# http://example.com/gallery/awesome-trip-2015/awesome-photo-from-my-trip-001/ (notice the third level). |