Mahainguruan aipatutako zerbitzu eta webgune batzuen estekak jarraian:
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
#!/usr/bin/env bash | |
echo ">>> Installing Mailhog" | |
# Download binary from github | |
sudo wget --quiet -O /usr/local/bin/mailhog https://github.com/mailhog/MailHog/releases/download/v1.0.0/MailHog_linux_amd64 | |
# Make it executable | |
sudo chmod +x /usr/local/bin/mailhog |
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
# copy this file to a folder and name it docker-compose.yml | |
# run the services with the following command: | |
# | |
# $ docker compose up | |
# | |
# You will have a mysql server running on 3306 and an adminer interface con 8081 | |
# | |
# It will create a default databse called mydb and a username called mydb_user with password mydb_pass | |
# with permissions to manage the database |
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
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" install pdftoppm first (use your package manager) """ | |
import os | |
def main(start="."): | |
for dirpath, dirnames, filenames in os.walk(start): | |
for filename in filenames: | |
if filename.endswith('pdf') and not filename.startswith('.') and f'{filename}.jpg' not in filenames: | |
os.system(f'pdftoppm -jpeg -f 1 -l 1 "{dirpath}/{filename}" > "{dirpath}/{filename}.jpg"') |
OlderNewer