Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
#EXTM3U | |
#EXTINF:0,Radio France - FIP (AAC+Metadata) | |
http://radio-metadata.fr:8000/fip.m3u | |
#EXTINF:0,Radio France - FIP Reggae (AAC+Metadata) | |
http://radio-metadata.fr:8000/fipreggae.m3u | |
#EXTINF:0,Radio France - FIP World (AAC+Metadata) | |
http://radio-metadata.fr:8000/fipmonde.m3u | |
#EXTINF:0,Radio France - FIP Nouveautés (AAC+Metadata) | |
http://radio-metadata.fr:8000/fipnouveaute.m3u | |
#EXTINF:0,Radio France - FIP Electro (AAC+Metadata) |
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
# | |
# CORS header support | |
# | |
# One way to use this is by placing it into a file called "cors_support" | |
# under your Nginx configuration directory and placing the following | |
# statement inside your location block(s): | |
# | |
# include cors_support; | |
# | |
# A limitation to this method is that Nginx doesn't currently send headers |
Reminder for OVH Object storage API
/cloud/project
Let's say alice
is a github.com user, with 2 or more private repositories repoN
.
For this example we'll work with just two repositories named repo1
and repo2
https://github.com/alice/repo1
https://github.com/alice/repo2
You need to be to pull from these repositories without entering a passwords probably on a server, or on multiple servers.
You probably shouldn’t be using this any more, mpv as of version 0.7 can directly make use of youtube-dl with the --ytdl
option (enabled by default in 0.7.2)
You can configure what formats mpv will play with the --ytdl-format
option, something similar to this script can be achieved with
--ytdl-format=303+bestaudio[ext=webm]/299+bestaudio/248+bestaudio[ext=webm]/137+bestaudio/302+bestaudio[ext=webm]/298+bestaudio/22/244+bestaudio[ext=webm]/135+bestaudio/18/best
This will also prefer 60fps content over normal versions of the videos and vp9 over h264, see https://en.wikipedia.org/wiki/Youtube#Quality_and_formats
#!/usr/bin/perl -w | |
# | |
# splitmysqldump - split mysqldump file into per-database dump files. | |
use strict; | |
use warnings; | |
my $dbfile; | |
my $dbname = q{}; | |
my $header = q{}; | |
while (<>) { |
# First install tmux | |
brew install tmux | |
# For mouse support (for switching panes and windows) | |
# Only needed if you are using Terminal.app (iTerm has mouse support) | |
Install http://www.culater.net/software/SIMBL/SIMBL.php | |
Then install https://bitheap.org/mouseterm/ | |
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |