Skip to content

Instantly share code, notes, and snippets.

View EdyVision's full-sized avatar

Eidan Rosado EdyVision

View GitHub Profile
@EdyVision
EdyVision / release.yml
Last active June 28, 2023 21:40
A GitHub workflow that automatically creates a tag and release based on poetry version mismatch (publishes to GitHub and Pypi)
# Automatically creates a new tag, GitHub release, and PyPi release if poetry version doesn't match last release version
name: Release
on:
workflow_dispatch:
branches:
- main
push:
branches:
import speech_recognition
import pyttsx
speech_engine = pyttsx.init('sapi5') # see http://pyttsx.readthedocs.org/en/latest/engine.html#pyttsx.init
speech_engine.setProperty('rate', 150)
def speak(text):
speech_engine.say(text)
speech_engine.runAndWait()
@toolness
toolness / gencert.py
Last active June 22, 2023 11:52
Python script to create server SSL certs and sign them with a custom CA.
#! /usr/bin/python
"""
This simple script makes it easy to create server certificates
that are signed by your own Certificate Authority.
Mostly, this script just automates the workflow explained
in http://www.tc.umn.edu/~brams006/selfsign.html.
Before using this script, you'll need to create a private
@ril3y
ril3y / create_x.509_cert.py
Created August 23, 2011 12:58
Python script that will generate a x.509 certificate
#!/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"