Skip to content

Instantly share code, notes, and snippets.

John Hobbs jmhobbs

Block or report user

Report or block jmhobbs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jmhobbs
jmhobbs / Dockerfile
Created Dec 27, 2018
Google Cloud Build Secret Environment Demo
View Dockerfile
FROM busybox
ARG THE_SECRET
RUN echo "::${THE_SECRET}::"
View keybase.md

Keybase proof

I hereby claim:

  • I am jmhobbs on github.
  • I am jmhobbs (https://keybase.io/jmhobbs) on keybase.
  • I have a public key whose fingerprint is 5616 12FF A10D 9D7A 7FFB 75F4 F79C 72E6 EDC7 0E38

To claim this, I am signing this object:

@jmhobbs
jmhobbs / Dockerfile
Last active Sep 8, 2017
HDC Kubernetes Demo
View Dockerfile
FROM scratch
ADD main /
EXPOSE 8080
CMD ["/main"]
View Dockerfile
FROM ubuntu:xenial
RUN apt-get update && \
apt-get install -yq software-properties-common python-software-properties && \
add-apt-repository ppa:mc3man/ffmpeg-test && \
apt-get update && \
apt-get install -yq ffmpeg-static
ADD stabilize.sh /opt/
@jmhobbs
jmhobbs / setup.sh
Created Mar 28, 2017
Transmission Server Setup (untested)
View setup.sh
TRANSMISSION_RPC_PASSWORD="set something here"
add-apt-repository -y ppa:transmissionbt/ppa
apt-get -y update
apt-get install -qy nginx transmission-cli transmission-daemon
ufw status
ufw allow 22
ufw allow 443
ufw allow 1194
@jmhobbs
jmhobbs / README.md
Last active Jun 12, 2019
Create scrolling text gifs for Slack
View README.md

Makes little scrolly text jiffs in Flywheel colors.

Prerequisites

  • imagemagick brew install imagemagick
  • gifsicle brew install gifsicle
  • Heartwell 1.2.otf font installed
  • u r on a mac

Usage

View keybase.md

Keybase proof

I hereby claim:

  • I am jmhobbs on github.
  • I am jmhobbs (https://keybase.io/jmhobbs) on keybase.
  • I have a public key whose fingerprint is D8E5 99E7 D1FF 62B0 9FD6 016C 2580 C0BE 34EB 9490

To claim this, I am signing this object:

@jmhobbs
jmhobbs / post-commit
Last active Dec 19, 2016
git post commit hook to harvest active timer
View post-commit
#!/usr/local/bin/python
import requests
import subprocess
# Configure Your Info Here
DOMAIN = "https://YOU.harvestapp.com"
USERNAME = ""
PASSWORD = ""
# / End Config
@jmhobbs
jmhobbs / points.coffee
Last active Aug 29, 2015
A Points Tracker for Hubot
View points.coffee
# Description:
#
# A plugin to track points awarded for good jokes.
#
# Hubot takes transaction fees though.
#
#
# Dependencies:
# A Redis brain is recommended.
#
View client.py
# -*- coding: utf-8 -*-
import socket
import os
print("Connecting...")
if os.path.exists("/tmp/python_unix_sockets_example"):
client = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)
client.connect("/tmp/python_unix_sockets_example")
print("Ready.")
print("Ctrl-C to quit.")
You can’t perform that action at this time.