Skip to content

Instantly share code, notes, and snippets.

View lukio's full-sized avatar

Luciano Rossi lukio

View GitHub Profile
# This script facilitates obtaining the latest DB data from the production
# Drupal 5 site.
# The script gets an ordered dump of the D5 database, and commits it to the
# git@git.designhammer.net:mysite_d5.git repository master branch.
# We make use of the rebuild.config file, so please make sure that your
# settings are correct there!
# We also assume that your drush aliases are setup correctly for
# @mysite.dev and @mysite_d5.prod. Please check mysite.aliases.drushrc.example,
# make sure your @mysite.dev alias is set up correctly, rename the file
# to mysite.aliases.drushrc.php and move it into your ~/.drush directory.
@lukio
lukio / jsonrpc.py
Created May 11, 2022 09:37 — forked from kolyaflash/jsonrpc.py
Tryton 4 JSON-RPC example
import requests
import json
import base64
HOST = '127.0.0.1'
PORT = '8001'
CREDENTIALS = ('admin', 'admin') # login, password
class HttpClient: