Skip to content

Instantly share code, notes, and snippets.

@ZiTAL
ZiTAL / spawn-fcgi.sh
Last active Dec 19, 2015 — forked from ozeias/spawn-fcgi.sh
spawn-fcgi daemon for python fastcgi projects on debian gnu/linux. original https://gist.github.com/ozeias/47394
View spawn-fcgi.sh
#! /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.
@ZiTAL
ZiTAL / regex.php
Created Oct 26, 2017 — forked from anonymous/regex.php
regex: detect internal domains in urls
View regex.php
<?php
$allow = array
(
'*.eitb.*',
'tortolika'
);
$urls = array
(
'www.eitb.eus/asjdhjashdjahjkdhajkhdjk/',
You can’t perform that action at this time.