Skip to content

Instantly share code, notes, and snippets.

View shiroamada's full-sized avatar
🎯
Focusing

Shiro Amada shiroamada

🎯
Focusing
  • Kuala Lumpur, Malaysia
View GitHub Profile
@shiroamada
shiroamada / OpenCartValetDriver.php
Last active July 8, 2018 11:12 — forked from veganista/OpenCartValetDriver.php
Laravel Valet Driver - OpenCart 2.x
<?php
/* Class name is determine the foldername.
* if you have myshop as the folder name, the class name should be MyshopValetDriver.
* The file location you should be save to is ~/.valet/Drivers/MyshopValetDrive.php
* class MyshopValetDriver extends ValetDriver
*/
class OpenCartValetDriver extends ValetDriver
{
/**
@shiroamada
shiroamada / gist:ed7c726141ea65ad027e7f95772ded99
Last active December 28, 2021 15:15
Docker OpenVPN Script
# Create and Initialize OpenVPN (Create OpenVPN Config)
docker run --rm -v $PWD:/etc/openvpn kylemanna/openvpn ovpn_genconfig -u udp://192.168.0.191:1194
# Create certificate
docker run --rm -v $PWD:/etc/openvpn -it kylemanna/openvpn ovpn_initpki
# Create client account
docker run --rm -v $PWD:/etc/openvpn -it kylemanna/openvpn easyrsa build-client-full client
# Copy client certificate (ovpn file) from container
@shiroamada
shiroamada / README.md
Created February 18, 2023 02:46 — 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