Skip to content

Instantly share code, notes, and snippets.

@erral
erral / gist:3083720
Last active September 14, 2023 12:52
python eta garapen ingurunearen prestaketa

Hauexek dira gure garapen ingurunea instalatzeko behar ditugunak (Ubuntu 23.04 bertsioan probatuta):

SSH

Exekutatu komando hauek:

sudo apt-get install openssh-client openssh-server
ssh-keygen
### Keybase proof
I hereby claim:
* I am erral on github.
* I am erral (https://keybase.io/erral) on keybase.
* I have a public key whose fingerprint is 32FE 5C37 FB57 2AC2 5BD8 8C8F 70CB 6CC9 3F6E F7A3
To claim this, I am signing this object:
@erral
erral / publish an atom package
Last active March 24, 2016 16:45
Publish an atom package
Commit your changes.
Inspect your package.json file to check your current version number, and decide (if your package.json shows version 2.1.0):
- Register your package on atom.io
> apm login
1- You want to make a patch version release
@erral
erral / plone_patch_20161129.yml
Last active November 28, 2016 15:59
Ansible playbook to install Plone patch tomorrow. It makes several assumptions, such as: 1. Your buildout is named plone.buildout and it is hosted on 'plone' user's $HOME/plone.buildout 2. The tar file PloneHotfix20161129.tgz exists on the same path as this playbook and can be untarred to a ${buildout:directory}/products folder as an 'old-style-…
---
# README:
# This playbook uploads a tarball to the $HOME/plone.buildout/products directory
# of each server and restarts the Supervisor process
#
# This playbook can be used to install Plone Hotfixes.
#
# The playbook searches for folders with names starting with 'plone.buildout'
# at the home folder. It uploads the tarfile stated in the vars that must
# be prepared beforehand, and then reloads the supervisor
<configure
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser">
<browser:page
for="*"
name="copy-content-to"
class=".copier.CopyContentToLanguage"
permission="cmf.ManagePortal"
/>
@erral
erral / buildout.cfg
Last active April 27, 2018 11:40
collective.documentviewer with celery and redis on Plone 4
[buildout]
projectname = plone4
extensions =
mr.developer
show-picked-versions = true
parts +=
instance
@erral
erral / buildout.cfg
Last active April 27, 2018 11:40
collective.documentviewer with celery and redis on Plone 5
[buildout]
projectname = plone5
extensions =
mr.developer
show-picked-versions = true
parts +=
instance
#!/usr/bin/python3.7
from git import Actor
from git import Repo
import datetime
import os
import time
import json
import requests
@erral
erral / update_jitsi_meet_translation_json.py
Last active June 21, 2021 07:09
Update jitsi-meet translation files with the new messages
# -*- 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.
"""
@erral
erral / tg.py
Last active July 6, 2021 21:56 — forked from juananpe/tg.py
Telegram notifier
# 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