Skip to content

Instantly share code, notes, and snippets.

@nenoken
nenoken / CRD_on_Ubuntu_18_04.md
Created October 1, 2021 19:13 — forked from joyk50/CRD_on_Ubuntu_18_04.md
Ubuntu 18.04 LTS 에서 Chrome Remote Desktop 설정
@nenoken
nenoken / mysql-docker.sh
Created August 29, 2021 22:32 — forked from spalladino/mysql-docker.sh
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@nenoken
nenoken / streamyard-tampermonkey.js
Created August 26, 2021 19:05 — forked from rothgar/streamyard-tampermonkey.js
Streamyard Keyboard Shortcuts
// ==UserScript==
// @name Streamyard Keyboard Shortcuts
// @namespace http://streamyard.com
// @version 0.1
// @description Simple keyboard shortcuts for streamyard
// @author justinleegarrison@gmail.com
// @match https://streamyard.com/*
// @grant none
// @run-at document-end
// ==/UserScript==
@nenoken
nenoken / traefik_portainer.md
Created July 26, 2021 04:47 — forked from ruanbekker/traefik_portainer.md
Traefik with SSL + Portainer on Docker Swarm Repro

Traefik and Portainer on Docker Swarm with Letsencrypt

Reproducing a Traefik with SSL and Portainer setup on a 2 Node Docker Swarm

Install Docker:

Install Docker on both nodes with a Bootstrap Script:

$ curl https://gitlab.com/rbekker87/scripts/raw/master/setup-docker-ubuntu.sh | bash
@nenoken
nenoken / gist:d5b2efb39319329983481f2367d0bf97
Created April 8, 2021 06:17 — forked from Darkflib/gist:8c40e9e0bb60883bd70fb34972b5954a
minio gateway to s3 compatible wasabi with cache + s3fs and ecryptfs
mkdir /mnt/wasabi-cache
lvcreate -L 100G -n wasabi-cache vg0
mkfs.ext4 /dev/vg0/wasabi-cache
docker run -d -p 9000:9000 --name minio-wasabi -e "MINIO_CACHE_DRIVES=/mnt/wasabi-cache" -e "MINIO_CACHE_EXPIRY=40" \
-e "MINIO_ACCESS_KEY=AKKEYKEYKEYKEYKEY" -e "MINIO_SECRET_KEY=mysecret123123123123123" \
minio/minio gateway s3 https://s3.wasabisys.com:443
@nenoken
nenoken / Colaborar Proyecto GitHub.markdown
Created February 28, 2021 19:49 — forked from BCasal/Colaborar Proyecto GitHub.markdown
Pasos a seguir para colaborar en un proyecto de GitHub

Cómo colaborar en un proyecto en GitHub

  • Fork del repositorio
  • Clonar el repositorio
  • Actualizar la rama master
  • Crear una rama
  • Hacer los cambios
  • Hacer un Pull Request

Fork del repositorio

@nenoken
nenoken / vimeo-vod.md
Created November 19, 2020 06:45 — forked from mmathys/vimeo-vod.md
Download Vimeo VOD (video on demand)

How to download vimeo VOD for offline usage

Step 1

Login to Vimeo and get the cookies.txt file using this Chrome plugin

Step 2

Use youtube-dl to download the video. Example:

@nenoken
nenoken / README.md
Created November 19, 2020 02:16 — 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
@nenoken
nenoken / [php] get domain name
Created May 15, 2020 15:22 — forked from johnabela/[php] get domain name
get domain name (without tld) from uri
$url = (substr($url, 0, 4) != 'http') ? 'http://'.$url : $url;
$url = preg_replace('~\.(com|info|net|io|us|org|me|co\.uk|ca|mobi)\b~i','',parse_url($url)['host']);
$url = substr($url,strrpos($url,'.')+1);
// examples:
// 'server.google.co.uk/abela'; // returns: google
// 'https://www.facebook.com/abela/'; // returns: facebook
@nenoken
nenoken / series-engine-embed-extend.php
Created May 8, 2020 05:24 — forked from codearachnid/series-engine-embed-extend.php
A simple modification to implement filters for embed display within archive and ajax shortcodes for Series Engine.
<?php
/**
* implement a filter hook by replacing the original echo in
* serieslistings.php lines 621, 727
* ajaxlink.php lines 632, 746
*/
echo stripslashes($enmse_singlemessage->embed_code);
// with the new filter