Skip to content

Instantly share code, notes, and snippets.

View hyperknot's full-sized avatar

Zsolt Ero hyperknot

View GitHub Profile
#EXTM3U
#EXTINF:0,Radio France - FIP
https://stream.radiofrance.fr/fip/fip_hifi.m3u8
#EXTINF:0,Radio France - FIP Reggae
https://stream.radiofrance.fr/fipreggae/fipreggae_hifi.m3u8
#EXTINF:0,Radio France - FIP World
https://stream.radiofrance.fr/fipworld/fipworld_hifi.m3u8
#EXTINF:0,Radio France - FIP Nouveautés
https://stream.radiofrance.fr/fipnouveautes/fipnouveautes_hifi.m3u8
#EXTINF:0,Radio France - FIP Electro
@tomhicks
tomhicks / plink-plonk.js
Last active March 18, 2024 02:23
Listen to your web pages
@agouriou
agouriou / nginx.conf
Last active April 5, 2024 15:57 — forked from Stanback/nginx.conf
Example Nginx (> 1.9) configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs. Handle error status (4xx, 5xx) and expose headers.
#
# 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
@cecilemuller
cecilemuller / letsencrypt_2020.md
Last active April 15, 2024 02:19
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:

@LoicMahieu
LoicMahieu / reminder.md
Created June 15, 2015 09:22
OVH Object Storage
@gubatron
gubatron / multiple-deploy-keys-multiple-private-repos-github-ssh-config.md
Last active March 12, 2024 07:34
How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent

How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent

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.

@Zehkul
Zehkul / NOTE.md
Last active August 29, 2015 14:02
Dirty script to play 1080p + 480p from youtube (DASH) in mpv

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

@neilalbrock
neilalbrock / splitmysqldump.pl
Created April 1, 2012 19:39
Split MySQL dump into a file per database
#!/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 (<>) {
@simme
simme / Install_tmux
Created October 19, 2011 07:55
Install and configure tmux on Mac OS X
# 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/