View main.go
package main
// This is a cleaned up version of the code found in:
//
// https://medium.com/@chughtapan/running-wireshark-on-docker-ac90ebc4907b
//
// Added:
// - Container ID passed as command-line argument
// - Error handling
View mac-osx-disable-ssl-verification.sh
# Found a solution for the SSL issues, download and extract Portable Chromium from
# https://sourceforge.net/projects/osxportableapps/files/Chromium/
#
# e.g.
curl -L -o Chromium_OSX_57.0.2987.110.dmg 'https://downloads.sourceforge.net/project/osxportableapps/Chromium/Chromium_OSX_57.0.2987.110.dmg?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fosxportableapps%2Ffiles%2FChromium%2F&ts=1490809215&use_mirror=pilotfiber'
# then open your socks5 proxy on port 9999 and run:
# (as per https://www.chromium.org/developers/design-documents/network-stack/socks-proxy)
open -a ~/Downloads/Chromium.app \
View docker-copy-into-running-container.sh
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
cmd=nc ; cid=4fd9addc9980 ; base64 < $(command -v $cmd) > /tmp/b64 && sudo docker exec -i $cid bash -c "set -e && base64 --decode > /tmp/$cmd && chmod a+x /tmp/$cmd" < /tmp/b64 && sudo docker exec -it $cid bash
View Makefile
################################################################################
# Golang automatic Makefile #
################################################################################
##
#
# @author Jay Taylor <jay@gigawatt.io>
#
# @date 2015-05-20
#
View aws-ec2-ubuntu-16.04-xenial-latest-ami-id-finder.sh
#!/usr/bin/env bash
##
# Description
#
# AWS EC2 AMI-ID finder for Ubuntu 16.04 Xenial.
#
set -o errexit
set -o pipefail
View ffmpeg-commands.md

Turn a video into an MP3:

ffmpeg -i filename.mp4 filename.mp3

combine video from first file and audio from second file:

ffmpeg -t 12:54.00 -i mash.mp4 -i dat_beat.mp4 -acodec copy -vcodec copy final-skies.mp4

concat one or more video files:

View html5-demos.md

The HTML5 Amount of Awesomeness

Rainbox Vomit

A collection of freaking awesome HTML5 demos (work in progress).

WebGL

View keybase.md

Keybase proof

I hereby claim:

  • I am jaytaylor on github.
  • I am jaytaylor (https://keybase.io/jaytaylor) on keybase.
  • I have a public key whose fingerprint is C41E 2D55 C0D6 95B8 2A9D DB87 867D ADD6 C217 A51D

To claim this, I am signing this object:

View find-dupe-prefixes.py
#!/usr/bin/env python
import glob, os, sys
def first_occurrence_of(s, delimiters):
delim_indexes = [pos for pos in map(s.find, delimiters) if pos != -1]
if len(delim_indexes) == 0:
return -1
first_index = min(delim_indexes)
return first_index
View algorithms-design-manual-solutions_TADM2E-2.35.py
>>> def count(n):
... x = 0
... m = 0
... while m < n:
... j = m
... while j < 2 * m:
... x += 1
... j += 1
... m += 1
... return x