Skip to content

Instantly share code, notes, and snippets.

@Triodes
Triodes / 1. OctoPrint autoconnect.md
Last active April 11, 2022 13:21
OctoPrint autoconnect

Udev rule and Systemd service for auto-connecting 3d printer to OctoPrint on raspberry pi

based on a tutorial by Bernd Zeimetz

Find vendor and product id

first run the following command to find the vendor and product id of your printer:

lsusb -v | grep -iE '(^bus|idvendor|idproduct)'

Example output:

@Triodes
Triodes / PersistentCookieStore.java
Created April 10, 2015 12:03
Persistent cookie store for android using the google gson library for cookie serialization. This wrapper stores all cookies recieved.
/*
* Copyright (C) 2015 Aron List
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software