Skip to content

Instantly share code, notes, and snippets.

View yjeanrenaud's full-sized avatar

Yves Jeanrenaud yjeanrenaud

View GitHub Profile
@yjeanrenaud
yjeanrenaud / README.md
Created February 22, 2021 17:38 — forked from nitaku/README.md
Minimal JSON HTTP server in python

A minimal HTTP server in python. It sends a JSON Hello World for GET requests, and echoes back JSON for POST requests.

python server.py 8009
Starting httpd on port 8009...
curl http://localhost:8009
{"received": "ok", "hello": "world"}
@yjeanrenaud
yjeanrenaud / InstallSignalEN.py
Last active November 12, 2020 20:45 — forked from Vic3198/InstallSignalEN.py
Simple Python script for automating the installation of signal-cli, the DBus service, and registering a new user. It worked well for me and saved me a lot of time for each time I had to reinstall signal-cli on a new machine, but I cannot 100% guarantee that it will work for you.
#!/usr/bin/env python
#coding: utf-8
#
# Run this file with superuser rights ('sudo') to install the Signal client
raw_input("Welcome to the signal-cli install wizard.\nPress ENTER when you are ready.")
import os