Skip to content

Instantly share code, notes, and snippets.

View millerhooks's full-sized avatar
👾
picking fingernails and shredding water

Dicky Mirrors millerhooks

👾
picking fingernails and shredding water
View GitHub Profile
@millerhooks
millerhooks / sms.go
Created July 2, 2018 06:50 — forked from mndrix/sms.go
SMS over IRC
// A proxy for sending/receiving SMS via IRC
//
// This code is part of our family IRC server whose code is available at
// https://gist.github.com/mndrix/7947009178e4a18c247b4bd25821661f
//
// This file won't compile by itself because it's only one file from
// my larger family server (movie hosting, Asterisk dialplan, Git
// hosting, personal assistant, etc).
//
// Copyright 2018 Michael Hendricks

Keybase proof

I hereby claim:

  • I am millerhooks on github.
  • I am millerhooks (https://keybase.io/millerhooks) on keybase.
  • I have a public key ASAawXj0pDq7bIMHaCX4kxwfF-y1jEa72PTE-qW8oetUIwo

To claim this, I am signing this object:

@millerhooks
millerhooks / markdown_doc
Created May 3, 2018 12:36 — forked from jiffyclub/markdown_doc
This script turns Markdown into HTML using the Python markdown library and wraps the result in a complete HTML document with default Bootstrap styling so that it's immediately printable. Requires the python libraries jinja2, markdown, and mdx_smartypants.
#!/usr/bin/env python
import argparse
import sys
import jinja2
import markdown
TEMPLATE = """<!DOCTYPE html>
<html>
@millerhooks
millerhooks / markdown_doc
Created May 3, 2018 12:36 — forked from jiffyclub/markdown_doc
This script turns Markdown into HTML using the Python markdown library and wraps the result in a complete HTML document with default Bootstrap styling so that it's immediately printable. Requires the python libraries jinja2, markdown, and mdx_smartypants.
#!/usr/bin/env python
import argparse
import sys
import jinja2
import markdown
TEMPLATE = """<!DOCTYPE html>
<html>
@millerhooks
millerhooks / install-arrow.sh
Last active January 30, 2018 07:42
install-arrow.sh
#!/bin/bash
export SOURCE_PATH=/tmp
export ARROW_SOURCE_PATH=$SOURCE_PATH/arrow \
export PARQUET_SOURCE_PATH=$SOURCE_PATH/parquet-cpp
cd $SOURCE_PATH
pip install --upgrade pip && pip install \
six numpy pandas cython pytest wheel cmake pyarrow
mkdir $SOURCE_PATH/dist
@millerhooks
millerhooks / CMakeLists.txt
Created October 23, 2017 06:12 — forked from jeffbk/CMakeLists.txt
Files for embedded GCC ARM projects with CLion: Project file, tool chain file, and linker script
cmake_minimum_required(VERSION 3.5)
project(LedTest CXX C ASM)
add_definitions(-DSTM32F4)
add_definitions(-DSTM32F405xx)
add_definitions(-DUSE_HAL_DRIVER)
# List your application specific source files here, include header files!
file(GLOB_RECURSE USER_SOURCES
@millerhooks
millerhooks / svgtest.html
Created June 17, 2017 11:03 — forked from bencates/svgtest.html
Draw a SVG hexagonal grid
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>SVG Test</title>
</head>
<body>
<svg id="s" version="1.1"
width="300" height="300"
xmlns="http://www.w3.org/2000/svg">
@millerhooks
millerhooks / dash-avc264 command lines
Created June 16, 2017 05:14 — forked from ddennedy/dash-avc264 command lines
Use ffmpeg and mp4box to prepare DASH-AVC/264 v1.0 VoD
See my DASH-IF presentation from October, 2014:
https://s3.amazonaws.com/misc.meltymedia/dash-if-reveal/index.html#/
1. encode multiple bitrates with keyframe alignment:
ffmpeg -i ~/Movies/5D2_Portrait.MOV -s 1280x720 -c:v libx264 -b:v 1450k -bf 2 \
-g 90 -sc_threshold 0 -c:a aac -strict experimental -b:a 96k -ar 32000 out.mp4
My input was 30 fps = 3000 ms. If it were 29.97, then a GOP size of 90 frames will yield a base segment
size of 3003 milliseconds. You can make the segment size some multiple of this, e.g.: 6006, 9009, 12012.
@millerhooks
millerhooks / openscad_surface_export.py
Created May 24, 2017 07:20
OpenSCAD surface Gimp Export Plugin
#!/usr/bin/env python
# openscad_surface_export.py
# by Rob Antonishen
# http://ffaat.pointclark.net
#
# Version 1.2 (20141214)
#
# Description
# File save handler for openscad dat format
@millerhooks
millerhooks / cleverbot.py
Last active February 18, 2017 20:14
Little Clevebot wrapper for their new API
import requests
import urllib
class Cleverbot(object):
"""Handles a conversation with Cleverbot.
Example usage:
>>> from cleverbot import Cleverbot
>>> cb = Cleverbot('my-api-key')
>>> cb.ask("Hi. How are you?")