GithubHelp home page GithubHelp logo

bsteen / simple-scripts Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 73 KB

A collection of simple but useful Bash scripts so I don't have to remember the commands.

License: MIT License

Shell 100.00%
bash bash-script utility-scripts pdf avi djvu conversion combine hash markdown

simple-scripts's Introduction

simple-scripts

A collection of simple but useful Bash scripts so I don't have to remember the commands. Most scripts deal with .pdf or video file manipulation/conversion. Some scripts have become less "simple" over time as I add more functionality, but my goal is to make the code easy to understand over making it compact or efficient.

See LICENSE for details.

List of Scripts

  • 2iso.sh
    • Converts a single file or folder into a .iso file
    • Requires mkisofs
  • avcomb.sh
    • Combine the audio stream of video 1 with the video stream of video 2
    • Requires ffmpeg
  • djvu2pdf.sh
    • Convert .djvu to .pdf
    • Requires ddjvu
  • hashmd.sh
    • Calculates the checksum/hashes of all the files in a folder and generates a Markdown-style table of the results.
    • Requires libarchive-zip-perl
    • See an example of the tables generated here
  • pdf2png.sh
    • Convert .pdf to a set of .pngs
  • pdf2png2pdf.sh
    • Convert .pdf to .png and then back to .pdf
    • Useful for stripping hyperlinks and searchable text in PDFs
    • Requires imagemagick
  • pdfcombine.sh
    • Combine multiple .pdf files into a single .pdf
    • Requires pdftk
  • rand-str.sh
    • Gets 128 btyes of random data from /dev/urandom and returns visible ASCII characters only
    • Passing -a makes only letters (upper and lower) be retuned.
  • sha256-check.sh
    • --check if the calculated SHA256 sum of file equals the provided SHA256 sum string
    • Saves you from making a formatted file with the sum and filename then running sha256sum --check ...
    • Usage: ./sha256-check.sh <file> <SHA-256-str>
  • shredu.sh
    • Overwrites the specified file(s) with random data, then with all zeros, and then removes the file(s)
    • Has option to recursively shred all files in directory: -r
    • Uses the shred command
  • to-webm.sh
    • Converts a video container file (e.g. .mp4) to .webm format
    • Requires ffmpeg
  • upgrade.sh
    • Fetch and update packages; then remove old packages
    • Uses apt-get package manager
  • vid2avi.sh
    • Convert a compatible video container file to .avi while trying to maintain good quality
    • Requires ffmpeg

simple-scripts's People

Contributors

bsteen avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

rillke

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.