Skip to content

Instantly share code, notes, and snippets.

@ZiTAL
ZiTAL / regex.php
Created October 26, 2017 16:55 — forked from anonymous/regex.php
regex: detect internal domains in urls
<?php
$allow = array
(
'*.eitb.*',
'tortolika'
);
$urls = array
(
'www.eitb.eus/asjdhjashdjahjkdhajkhdjk/',
@ZiTAL
ZiTAL / spawn-fcgi.sh
Last active December 19, 2015 14:38 — forked from ozeias/spawn-fcgi.sh
spawn-fcgi daemon for python fastcgi projects on debian gnu/linux. original https://gist.github.com/ozeias/47394
#! /bin/sh
### BEGIN INIT INFO
# Provides: spawn-cgi
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: fastcgi for python
# Description: fastcgi for python using nginx
# placed in /etc/init.d.