Skip to content

Instantly share code, notes, and snippets.

View darosior's full-sized avatar

Antoine Poinsot darosior

View GitHub Profile
@darosior
darosior / install_libdb4.8.sh
Created January 11, 2020 20:15
Install libdb4.8 on Debian (from Ubuntu ppa) for i386 or amd64
#!/usr/bin/env bash
if [ "$#" -ne "1" ]; then
echo "usage :"
echo " $0 <amd64|i386>"
elif ! [ "$1" = "amd64" ] && ! [ "$1" = "i386" ]; then
echo "Bad architecture argument. First and only argument must be amd64 or i386."
else
mkdir "tmplibdb" && cd "tmplibdb"
if [ "$1" = "amd64" ]; then
@darosior
darosior / lightning-connect.7.md
Created August 10, 2019 00:35
Sample markdown manpage

LIGHTNING-CONNECT(7) Manual Page

lightning-connect - Command for connecting to another lightning node.

SYNOPSIS

connect id [host port]

DESCRIPTION

@darosior
darosior / gui.py
Created June 13, 2019 11:27
lightning-qt without plugin
#!/usr/bin/env python3
import os
from lightning import LightningRpc, Plugin, RpcError
from PyQt5.QtWidgets import QApplication, QWidget, QMainWindow
from mainWindow import MainWindow
def gui():
"""Launches the Qt GUI"""
@darosior
darosior / confidentiality rules
Created March 15, 2019 14:35
Règles de confidentialité / confidentiality rules
Confidentiality rules for c-simple / règles de confidentialités pour c-simple.
I/csimple/c-simple don't store any of your informations. They are your own.
Je/csimple/c-simple ne conserve aucune de vos informations. Elles vous appartiennent.
@darosior
darosior / createvenv.sh
Created October 22, 2018 13:09
Create a Python virtual environment even without permission
#!/bin/bash
python3 -m venv --without pip "$1"
source "$1/bin/activate"
curl https://bootstrap.pypa.io/get-pip.py | python3
deactivate
source "$1/bin/activate"
rm -rf pip