This file contains 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
import numpy | |
from matplotlib import pyplot | |
import math | |
import random | |
from collections import deque | |
class DelayLine: | |
def __init__(self, length): | |
self.buffer = deque() |
This file contains 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
#!/usr/bin/env bash | |
# | |
# This script was created to flash firmwares for the MK2, MK3 and the MMU2, | |
# all from the command line of your OctoPrint installation. | |
# | |
# The script assumes that you have avrdude and jq installed on your raspbian and that you | |
# have filled the API key below. | |
# | |
# Usage: flash.sh mk2|mk3|mmu2 firmware.hex |
This file contains 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
import hashlib | |
import os | |
import subprocess | |
import xml.etree.ElementTree | |
import click | |
user_xml_fmt = ''' | |
<User Name="ddd_{username}"> | |
<Option Name="Pass">{md5_pwd}</Option> |
This file contains 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
[ | |
{ | |
"backcolor": "#de2626", | |
"name": "Arma 3 Infantry", | |
"author": "Tirpitz", | |
"background": { | |
"name": "Carbon fibre 4", | |
"style": "background-image: url('/bg/carbonfibre/carbon_texture1873.png');" | |
}, | |
"switchMount": "cherry", |
This file contains 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
from email.mime.text import MIMEText | |
from email.mime.image import MIMEImage | |
from email.mime.multipart import MIMEMultipart | |
from email.Utils import formatdate | |
from logging.handlers import SMTPHandler | |
import logging | |
import os.path | |
import smtplib | |
This file contains 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
#!/usr/bin/python | |
from OpenSSL import crypto, SSL | |
from socket import gethostname | |
from pprint import pprint | |
from time import gmtime, mktime | |
from os.path import exists, join | |
CERT_FILE = "myapp.crt" | |
KEY_FILE = "myapp.key" |