Skip to content

Instantly share code, notes, and snippets.

@Manaphy91
Manaphy91 / manage_scans.bash
Created January 17, 2016 22:39
A simple script useful to rotate a series of scanned pdf files and, after that, concat them.
#!/bin/bash
# Description
# A simple script useful to rotate a series of scanned pdfs files and, after
# that, concat them.
# manage_scans.bash takes as input three arguments (one of which is optional):
# - source: a path to the folder of source pdf files to manage;
# - destination: a path to the folder where you will see a new pdf file and
# where new temp files will be put
# - output (optional): the name of the file which will be created at the end
@Manaphy91
Manaphy91 / git-branch-backup
Created November 22, 2015 10:14
A tool useful to backup modified files and directory in a branch
#!/bin/bash
# Description
#
# This script is useful to copy added or modified files of another branch with
# respect to your current (checked out) branch of a git repo, everything without
# enter in the chosen branch.
# If you enter the export_dir optional parameter, every file will be copied in
# that directory, otherwise they will be copied in a directory named
# **branch_name**_branch_backup.