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
name: Workflow for checking code quality | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: |
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:
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
#!/usr/bin/env python | |
import requests | |
from requests.auth import HTTPBasicAuth | |
IPADD='192.168.0.32:8088/ari/' | |
ENDPOINT = 'events' | |
ARIUSER='' | |
ARIPASS='' | |
r = requests.get('http://%s%s' % (IPADD,ENDPOINT),auth=HTTPBasicAuth(ARIUSER,ARIPASS)) |
import os | |
from fabric.api import env, require, run, sudo, cd | |
env.project_name = '' | |
env.server_name = '' | |
env.webapps_root = '/opt/webapps/' | |
env.project_root = os.path.join(env.webapps_root, env.project_name) | |
env.activate_script = os.path.join(env.project_root, 'env/bin/activate') | |
env.wsgi_file = os.path.join(env.project_root, 'django.wsgi') |
<div class="container"> | |
<div class="row"> | |
<div class="col-sm-6 col-md-4 col-md-offset-4"> | |
<h1 class="text-center login-title">Sign in to continue to Bootsnipp</h1> | |
<div class="account-wall"> | |
<img class="profile-img" src="https://lh5.googleusercontent.com/-b0-k99FZlyE/AAAAAAAAAAI/AAAAAAAAAAA/eu7opA4byxI/photo.jpg?sz=120" | |
alt=""> | |
<form class="form-signin"> | |
<input type="text" class="form-control" placeholder="Email" required autofocus> | |
<input type="password" class="form-control" placeholder="Password" required> |
In order to get support for the clipboard and necessary interpreters, we need to compile and install from source.
# install build dependencies for vim:
sudo apt-get -y build-dep vim
# install some additional, necessary tools:
sudo apt-get -y install checkinstall mercurial python-dev python3.3-dev
#Introduction If you're a php developer on ubuntu, there comes the time where you have to install/reinstall your system. I did it already a few times and i decided to write down the steps for a typical web developer stack with php. This is for a developer machine and not for live environment!
I hope it's a help also for you!
#Installation stack
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |