Skip to content

Instantly share code, notes, and snippets.

View goodtiding5's full-sized avatar
💭
I may be slow to respond.

Kenneth Zhao goodtiding5

💭
I may be slow to respond.
  • Penguin Digital, Ltd.
  • California, USA
View GitHub Profile
@goodtiding5
goodtiding5 / README.md
Created February 11, 2020 20:19 — forked from mrbar42/README.md
Secured HLS setup with Nginx as media server

Secured HLS setup with Nginx as media server

This example is part of this article.

This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:

  • Domain filtering
  • Referrer filtering
  • Embed buster

Development Software

  • VirtualBox - Virtualization software for running local operating systems within your computer. This allows us have a full version of linux within our computers that better match how a live webserver works.
  • Vagrant - A tool for provisioning (creating) virtual machines.
  • VVV - A pre-built, community-supported Vagrant configuration for WordPress development.
  • Git - Version control system for managing code during development. Easily allows for tracking changes, and merging new code into an existing project.
  • SourceTree - A GUI available on Windows and Mac for managing Git projects. This makes Git much easier to use, as we won't have to learn the command line interface.
  • Github.com - A website that provides free Git repositories for both open source and private projects.
  • SASS - (SCSS) A CSS preprocessing implementation that allows us to write much less CSS for a project. This basically makes CSS into a simple programming language.

Modifying an Existing Docker Image

To install a custom package or modify an existing docker image we need to

  1. run a docker a container from the image we wish to modify
  2. modify the docker container
  3. commit the changes to the container as a docker image
  4. test changes made to image

1.) Running a docker container from an image

@goodtiding5
goodtiding5 / python_custom_openssl.diff
Created April 27, 2017 10:03 — forked from eddy-geek/ python_custom_openssl.diff
Compile python with statically linked openssl
--- a/setup.py 2014-03-17 03:31:31.000000000 +0100
+++ b/setup.py 2014-03-17 19:06:03.000000000 +0100
@@ -750,10 +750,8 @@
exts.append( Extension('_socket', ['socketmodule.c'],
depends = ['socketmodule.h']) )
# Detect SSL support for the socket module (via _ssl)
- search_for_ssl_incs_in = [
- '/usr/local/ssl/include',
- '/usr/contrib/ssl/include/'
- ]
@goodtiding5
goodtiding5 / ghostonheroku.md
Last active January 19, 2017 22:02 — forked from fzrhrs/ghostonmac.md
Ghost on Mac and Heroku

Local mac:

npm install --production

sudo echo node_modules > .gitignore
git init
git add --all
git commit -m 'Initial commit'
@goodtiding5
goodtiding5 / rsabd.py
Created September 10, 2016 10:20 — forked from ryancdotorg/rsabd.py
backdoored rsa key generation
#!/usr/bin/env python
import sys
import gmpy
import curve25519
from struct import pack
from hashlib import sha256
from binascii import hexlify, unhexlify
@goodtiding5
goodtiding5 / README.md
Created January 15, 2016 23:02 — forked from jemerick/README.md
nginx ssl config with multiple SNI vhosts and A+ SSL Labs score as of 2014-11-05

Configuring nginx for SSL SNI vhosts

Gotchas

Remarks

  • My version of konklones SSL config does not have SPDY support(my nginx+openssl does not support it)
  • You need a default ssl server (example.org-default.conf).
  • Some SSL-options have to be unique across your instance, so it's easier to have them in a common file(ssl.conf).
@goodtiding5
goodtiding5 / README.txt
Created December 8, 2015 23:15 — forked from srid/README.txt
Patches used in ActivePython 2.7 for building on AIX 5.1.
Contact [email protected] for more info.
@goodtiding5
goodtiding5 / 00-button
Last active August 29, 2015 14:11 — forked from jefferyto/00-button
# based on
# https://dev.openwrt.org/browser/trunk/target/linux/atheros/base-files/etc/hotplug.d/button/00-button
# https://forum.openwrt.org/viewtopic.php?pid=172110#p172110
. /lib/functions.sh
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
do_button () {
local button