This file contains 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 script merges multiple PDF files into a single PDF file. | |
The script takes a folder path as input, which should contain the PDF files to be merged. | |
It uses the PyPDF2 library to perform the merging operation. | |
The algorithm works as follows: | |
1. Import the necessary modules: os for file operations and PdfMerger from PyPDF2 for merging PDFs. | |
2. Specify the folder path containing the PDF files. | |
3. Create a PdfMerger object. |
This file contains 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
#!/usr/bin/python3 | |
# coding: utf-8 | |
from datetime import datetime | |
# pip3 install pytz | |
import pytz | |
def convert(posix_timestamp, your_timezone='America/Sao_Paulo'): | |
utc_dt = datetime.utcfromtimestamp(posix_timestamp).replace(tzinfo=pytz.utc) | |
tz = pytz.timezone(your_timezone) |
This file contains 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/sh | |
# Documentation: | |
# https://tools.ietf.org/html/rfc2229 | |
if [ -z "$1" ] | |
then | |
echo "No word supplied! \nCommand: 'dict.sh <word>' eg. 'dict.sh linux'" | |
exit 1 | |
fi |