Skip to content

Instantly share code, notes, and snippets.

View ustoopia's full-sized avatar
💭
Exploring the great indoors

ustoopia ustoopia

💭
Exploring the great indoors
View GitHub Profile
@KittenCodes
KittenCodes / flipbox.css
Last active November 19, 2020 21:47
CSS for Building A Flipbox In WordPress With Oxygen
.flipbox {
position: relative;
}
.flipbox__front,
.flipbox__back {
transition: 0.7s all ease-in-out;
backface-visibility: hidden;
}
@patriclougheed
patriclougheed / streamer.conf
Last active May 7, 2023 14:24
YouPHPTube Streamer NginX Conf
server {
listen 80;
server_name <domain> <www.domain>;
root /var/www;
index index.php;
charset utf-8;
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
@patriclougheed
patriclougheed / encoder.conf
Created June 1, 2018 19:30
YouPHPTube Encoder NginX Conf
server {
listen 80;
server_name <URL> <www.URL>;
root /var/www/encoder;
index index.php;
charset utf-8;
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
@mrbar42
mrbar42 / README.md
Last active October 25, 2024 19:35
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
@Sarjuuk
Sarjuuk / convert.cmd
Last active August 12, 2024 02:34
[WIN] audio file conversion using ffmpeg - deletes after conversion
@echo off
echo ******************************************************************************************
echo This uses FFMPEG to convert and rename all of the files required for AoWoW sounds and
echo music. FFMPEG will loop indefinitely if we output a file of the same extension (MP3 to
echo MP3), so we just append an underscore there.
echo ******************************************************************************************
echo USE: Place this convert.cmd and ffmpeg.exe in the <localeCode>\Sound folder and run.
echo ******************************************************************************************
pause
@Sarjuuk
Sarjuuk / convert.sh
Last active August 12, 2024 02:23
[*NIX] audio file conversion using ffmpeg - deletes after conversion
#!/bin/bash
find . -name "*.wav" | xargs -I % sh -c 'ffmpeg -hide_banner -y -i "%" -acodec libvorbis -f ogg "%_"; rm "%";' && find . -name "*.mp3" | xargs -I % sh -c 'ffmpeg -hide_banner -y -i "%" -acodec libmp3lame -f mp3 "%_"; rm "%";'
@cecilemuller
cecilemuller / letsencrypt_2020.md
Last active September 29, 2024 08:31
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@chrisjhoughton
chrisjhoughton / proxy.apache.conf
Last active September 17, 2024 23:59
Sample Nginx reverse proxy to Apache set up for Wordpress.
<VirtualHost *:{PORT}>
ServerName www.yourdomain.com
ServerAdmin [email protected]
DocumentRoot /var/www/yourdir/
<Directory /var/www/yourdir>
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny