Skip to content

Instantly share code, notes, and snippets.

View tqyq's full-sized avatar

altman tqyq

  • Earth
View GitHub Profile
@tqyq
tqyq / README.md
Created April 3, 2019 04:01 — 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
@tqyq
tqyq / install_and_using.md
Created December 25, 2017 07:36 — forked from sangheestyle/install_and_using.md
Install and using numba on mac

Install and using numba on mac

  • Mac version: 10.11.3
  • Python version: 3.5.1

Install

$ brew tap homebrew/versions
$ brew install llvm37
@tqyq
tqyq / classifier_from_little_data_script_1.py
Created December 10, 2017 11:42 — forked from fchollet/classifier_from_little_data_script_1.py
使用非常少的数据建立强大的图像分类模型
'''This script goes along the blog post
"Building powerful image classification models using very little data"
from blog.keras.io.
It uses data that can be downloaded at:
https://www.kaggle.com/c/dogs-vs-cats/data
In our setup, we:
- created a data/ folder
- created train/ and validation/ subfolders inside data/
- created cats/ and dogs/ subfolders inside train/ and validation/
- put the cat pictures index 0-999 in data/train/cats
@tqyq
tqyq / madlib-postgres-ubuntu.md
Last active April 19, 2023 09:04 — forked from jvawdrey/madlib-postgres-ubuntu.md
Instructions for installing MADlib and Postgres on Ubuntu 16.04

madlib-postgres-ubuntu

Instructions for installing MADlib and Postgres on Ubuntu 16.04

# Install Postgres 9.6, pl/r and dependencies for MADlib
sudo apt-get install -y cmake postgresql-9.6 postgresql-server-dev-9.6 postgresql-plpython-9.6 postgresql-9.6-plr libkrb5-dev postgresql-client postgresql-contrib

# grab madlib rpm
cd /home/gpadmin/tmp