This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |