https://erral.github.io/deploy-volto-talk
https://github.com/codesyntax/verdaccio-configuration-example
#! /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"') |
Mahainguruan aipatutako zerbitzu eta webgune batzuen estekak jarraian:
# 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 |
#!/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 |
# Twutter: https://twitter.com/juanan/status/1363860121676353537 | |
# pip install python-telegram-bot | |
# Haria desagertzen bada ere, hemen azalpena: | |
# 1) Si no lo has creado aún, crea tu bot usando @BotFather en Telegram y copia tu APITOKEN | |
# 2) Obtén un webhook de usar y tirar aquí: https://webhook.site Te asignará una URL aleatoria, guárdala | |
# 3) Asigna el webhook a tu bot (la URL de http://webhook.site) https://api.telegram.org/botAPITOKEN/setWebhook?url=https://webhook.site... | |
# 4) Copia este mini script python a tu home directory https://gist.github.com/juananpe/edee47d41ed16c0a00eb820e0135bed3 |
# -*- coding: utf-8 -*- | |
""" | |
This script takes the main.json file, compares it with the json file provided | |
as a parameter and adds the missing keys to the provided file. | |
This way the language files can be updated without losing the existing translations. | |
The result of the script is a new file, this way the original file is left untouch. | |
""" |
#!/usr/bin/python3.7 | |
from git import Actor | |
from git import Repo | |
import datetime | |
import os | |
import time | |
import json | |
import requests |
[buildout] | |
projectname = plone5 | |
extensions = | |
mr.developer | |
show-picked-versions = true | |
parts += | |
instance |
[buildout] | |
projectname = plone4 | |
extensions = | |
mr.developer | |
show-picked-versions = true | |
parts += | |
instance |