Skip to content

Instantly share code, notes, and snippets.

@ointeractive-depot
ointeractive-depot / ElectionService.php
Created May 22, 2018 08:46 — forked from ishukshin/ElectionService.php
Making json files concerning Russian presidental elections-2018 using laravel artisan
<?php
namespace App\Services;
use Cache;
use Storage;
class ElectionService {
/**
@ointeractive-depot
ointeractive-depot / AntiDos.php
Created May 22, 2018 08:45 — forked from ishukshin/AntiDos.php
Simple laravel app filtering of bad clients using middleware
<?php
// app/Http/Middleware/AntiDos.php
namespace App\Http\Middleware;
use Illuminate\Http\Request;
use Closure;
use File;
class AntiDos
{
@ointeractive-depot
ointeractive-depot / gist:eb1c759dddfa2bf758d2439965dd3ad7
Created June 23, 2016 09:15 — forked from Dygear/gist:6291550
NTLMv2 Authentication with nginx.
<?php
define('PROXY', 'proxy');
define('PORT', 8080);
if (!function_exists('getallheaders'))
{
function getallheaders()
{
$headers = [];