Skip to content

Instantly share code, notes, and snippets.

View Greegko's full-sized avatar
💭
🦊

Greegko

💭
🦊
  • Lausanne, Switzerland
View GitHub Profile
@Greegko
Greegko / frovo-link.user.js
Last active January 18, 2020 17:06
Frovo play button converter to link
@Greegko
Greegko / nginx_global_domains.config
Created May 23, 2017 22:03
nginx setup for dynamic domains and their subdomains
# Source: https://stackoverflow.com/questions/8199231/how-to-setup-mass-dynamic-virtual-hosts-in-nginx
server {
listen 80 default_server;
listen [::]:80 default_server;
# Match any server name with the format [subdomain.[.subdomain...]].domain.tld.dev
server_name ~^(?<subdomain>([\w-]+\.)*)?(?<domain>[\w-]+\.[\w-]+)\.dev$;
# Map by default to (projects_root_path)/(domain.tld)/www;