Skip to content

Instantly share code, notes, and snippets.

thick=0.2;
cubexy=15;
mid=78;
full=75*2;
// middle/main
translate([-cubexy/2,-cubexy/2,0])cube([cubexy,cubexy,thick]);
// top middle
translate([-(cubexy/2),-cubexy/2 + mid,0])cube([cubexy,cubexy,thick]);
INSTALL_LIBGIT="YES"
echo "Cloning app"
git clone https://github.com/fritzing/fritzing-app
echo "Cloning parts"
git clone https://github.com/fritzing/fritzing-parts
echo "Downloading Qt installer"
wget http://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run
chmod 700 qt-unified-linux-x64-online.run
echo "Running Qt installer, please install it in the background"
# use this to generate a password, then replace it in .homeassistant/.storage/auth_provider.homeassistant
import bcrypt, base64
new_password="password"
def hash_password(password: str, for_storage: bool = False) -> bytes:
"""Encode a password."""
hashed: bytes = bcrypt.hashpw(password.encode(), bcrypt.gensalt(rounds=12))
if for_storage:
hashed = base64.b64encode(hashed)
return hashed