Skip to content

Instantly share code, notes, and snippets.

View kenkeiter's full-sized avatar
🦊

Ken Keiter kenkeiter

🦊
View GitHub Profile
.js-moments-tab {
display: none !important;
}
.wtf-module {
display: none !important;
}
.LiveVideoHomePageModuleContainer {
display: none !important;
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y --no-install-recommends \
g++ \
make \
file \
curl \
ca-certificates \
python2.7 \
git \
@kenkeiter
kenkeiter / markdown_to_pdf.py
Created October 17, 2019 17:23
Quick markdown file to PDF routine.
import os
import markdown
from markdown_include.include import MarkdownInclude
import weasyprint
from mako.template import Template
HTML_BOILERPLATE_TEMPLATE = """
<html>
<head>
<style>{css}</style>
@kenkeiter
kenkeiter / kicad6_arrange.py
Last active July 6, 2022 16:52
KiCAD 6 Script for arranging footprints circularly
import pcbnew
import math
# Based upon https://bit.ly/3agYp7f by Greg Davill (@GregDavill on Twitter)
#
# To use this with KiCAD 6.x.x:
# 1. Save this script in KiCAD's "scripting/plugins" directory as "arrange.py"
# 2. Open your PCB and refresh plugins by navigating to
# Tools > External Plugins > Refresh Plugins
# 3. Open the scripting console (Tools > Scripting Console) and execute