Skip to content

Instantly share code, notes, and snippets.

@samuelba
samuelba / wireguard.md
Last active December 29, 2022 00:53
Wireguard with local server network access

Wireguard

Server

Install Wireguard

sudo apt install wireguard
@bSampson0
bSampson0 / index.html
Created April 20, 2020 19:15
Vimeo custom play/pause & mute/unmute buttons
<!-- to hide regular Vimeo controls, make sure to add a parameter '&background=1' in iframe's src property -->
<section class="title-wrapper">
<span>Responsive Vimeo Embedding & Custom Buttons</span>
</section>
<section class="banner-container">
<img class="bkgd-image-style" src="http://joekang.co/assets/image-hosting/053116_US_AmericanaVI_banner_w.png">
<div id="vi-video-1-container" class="video-wrapper">
<div class='embed-container'>
@mrpeardotnet
mrpeardotnet / PVE-host-backup.md
Created December 17, 2019 18:03
Proxmox PVE Host Config Backup Script

Proxmox PVE Host Config Backup Script

This script can be used to backup essential configuration files from the Proxmox Virtual Enivronment (PVE) host.

The script will create backups using tar with specified backup prefix and date and time stamp in the file name. Script will also delete backups that are older then number of days specified.

Create backup script file

To create backup script that will be executed every day we can create backup script in /etc/cron.daily/ folder. We need to make it writeable by root (creator) only, but readable and executable by everyone:

touch /etc/cron.daily/pvehost-backup
@tavinus
tavinus / rem_proxmox_popup.sh
Last active February 27, 2024 22:47
Remove PROXMOX 5.x / 6.x / 7.3-4 subscription message popup
#!/bin/sh
#######################################################
#
# Edits the proxmox Subscription file to make it
# think that it has a Subscription.
#
# Will disable the annoying login message about
# missing subscription.
#
@mrbar42
mrbar42 / README.md
Last active March 28, 2024 18:06
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
@jordicenzano
jordicenzano / generate-fairplay.sh
Last active October 7, 2022 06:15
Bash script that generates an HLS chunklist with Fairplay DRM from MP4. Also providing a test chunklist bypassing DRM
#Generate fairplay file with random generated Key, IV.
#And generate also a trobleshooting chunklist bypassing fairplay server and providing the plain key for testing
#Source data
SOURCE="/Users/jcenzano/Movies/test10m_baseline_30_320x240_a25fpsB.mp4"
#Dest data
DEST="/Users/jcenzano/Movies/hls-encrypted/result-fairplay"
KEYS_DIR="keys"
KEY_IV_FILENAME="key-iv.bin"
@spodlecki
spodlecki / document_with_one_inline_and_one_wrapper_ad.xml
Last active February 15, 2021 11:38
VAST 2.0 with a single wrapper
<!-- VAST document with one InLine ad and one Wrapper ad-->
<VAST version="2.0">
<Ad id="601364">
<InLine>
<AdSystem>Acudeo Compatible</AdSystem>
<AdTitle>VAST 2.0 Instream Test 1</AdTitle>
<Description>VAST 2.0 Instream Test 1</Description>
<Error>http://myErrorURL/error</Error>
<Impression>