Skip to content

Instantly share code, notes, and snippets.

View drbothen's full-sized avatar

Joshua Magady drbothen

  • All Your Base Are Belong To Us!
  • It's All About The Pentiums
View GitHub Profile
@drbothen
drbothen / Wistia-download-videos.md
Created February 17, 2025 14:39 — forked from szepeviktor/Wistia-download-videos.md
Download Wistia videos - Please do not misuse it!

Download Wistia videos

  1. right-click on the playing video, select Copy link
  2. find Wistia video ID in the copied link e.g. wvideo=tra6gsm6rl
    • alternative: look for e.g. hashedId=tra6gsm6rl in the page source
  3. load http://fast.wistia.net/embed/iframe/ + video ID in your browser
  4. look for "type":"original" in the page source and copy the URL from the next line e.g. "url":"http://embed.wistia.com/deliveries/129720d1762175bcd8e06dcab926ec76ad38ff00.bin"
  • alternative: look for "type":"hd_mp4_video"
@drbothen
drbothen / pysyslog.py
Created December 10, 2021 07:57 — forked from marcelom/pysyslog.py
Tiny Python Syslog Server
#!/usr/bin/env python
## Tiny Syslog Server in Python.
##
## This is a tiny syslog server that is able to receive UDP based syslog
## entries on a specified port and save them to a file.
## That's it... it does nothing else...
## There are a few configuration parameters.
LOG_FILE = 'youlogfile.log'
\documentclass{article}
\usepackage{graphicx}
\graphicspath { {./}}
\title{It's been !Fun}
\author{
Mark Anderson \\
Company\\
}
\date{\today}
#!/usr/bin/python3
import subprocess
import usb.core
from time import sleep
# - usbhid-dump --entity=all
# to find the opcode the keyboard sends
# run this command then press the button on the keeb, will display the opcode to the screen
KEYBOARD_OPCODE = 88
TEXFILE = "notice.tex"
def main():
@drbothen
drbothen / gist:9f9ba9ac1df2b4852e74
Created March 23, 2016 00:42 — forked from scmx/upgrade-install-ruby-2-1-2-ubuntu-12-04.md
Upgrade/Install ruby 2.1.2 #ubuntu #12.04 #14.04
# Reference http://stackoverflow.com/a/18490935/2037928
# Login as root
# Install needed packages
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
# Download appropriate ruby version https://www.ruby-lang.org/en/downloads/