Skip to content

Instantly share code, notes, and snippets.

@cheriimoya
cheriimoya / nextcloud-deck-export-import.py
Last active December 22, 2021 15:06 — forked from svbergerem/nextcloud-deck-export-import.py
Nextcloud Deck Export/Import
#!/usr/bin/env nix-shell
#!nix-shell -p "python3.withPackages(ps: [ ps.requests ])"
import requests
urlFrom = 'https://cloud.domainfrom.tld'
authFrom = ('username', 'password')
urlTo = 'https://nextcloud.domainto.tld'
authTo = ('username', 'password')
headers={'OCS-APIRequest': 'true', 'Content-Type': 'application/json'}

Arduino Connection on NixOS

First we need lsusb command from the usbutils package.

> nix-env -i usbutils
> lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 011: ID 0403:6001 FTDI FT232 USB-Serial (UART) IC