Skip to content

Instantly share code, notes, and snippets.

View ps1dr3x's full-sized avatar
👨‍💻
0x1A4

Michele Federici ps1dr3x

👨‍💻
0x1A4
View GitHub Profile
@openoms
openoms / btcpay-on-raspiblitz.md
Last active March 13, 2023 02:26
LNURLpay over Tor

LNURLpay over Tor

Setup used

  • Raspiblitz on the dev branch (~v1.9.0rc3 - earlier versions should work)
  • CLN / LND with incoming capacity on public channel(s)
  • BTCPayServer v1.8.2 (an earlier version with LNaddress support should work)

Steps to create the service

  • Create user and log in
  • Create Store

Modal Verbs

Dürfen — “may”

Dürfen is the modal verb we use to say “may.” You might also think of it as translating to “to be permitted to” in English.

Here are a few examples of the verb dürfen, with and without a secondary infinitive verb. (When relevant, I’ll also include a literal translation with the word-by-word sentence order, to better illustrate the differences between English and German word order.)

Er darf Fußball nicht spielen.

He may not play soccer. / He is not permitted to play soccer. (Literally: “He may soccer not play.”)

@eddieantonio
eddieantonio / example.py
Created March 30, 2017 20:43
Zero-dependency Python 3 and Node IPC using UNIX sockets
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
import socket
import json
server_address = '/tmp/example.sock'
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
sock.connect(server_address)
@pylover
pylover / a2dp.py
Last active March 11, 2024 03:06
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04, 16.10 and also debian jessie, with bluez5.
#! /usr/bin/env python3
"""Fixing bluetooth stereo headphone/headset problem in debian distros.
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone.
This will be only fixes the bluez5 problem mentioned above .
Licence: Freeware