Skip to content

Instantly share code, notes, and snippets.

@l3aro
l3aro / Octane-Apache.conf
Last active March 27, 2023 14:43 — forked from rummykhan/Octane-Apache.conf
Apache Configuration for Octane
#### Enable Apache Proxy related modules
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_ajp
sudo a2enmod rewrite
sudo a2enmod deflate
sudo a2enmod headers
sudo a2enmod proxy_balancer
sudo a2enmod proxy_connect
@l3aro
l3aro / xss_clean.php
Created October 13, 2021 07:21 — forked from mbijon/xss_clean.php
XSS filtering in PHP (cleans various UTF encodings & nested exploits)
<?php
/*
* XSS filter, recursively handles HTML tags & UTF encoding
* Optionally handles base64 encoding
*
* ***DEPRECATION RECOMMENDED*** Not updated or maintained since 2011
* A MAINTAINED & BETTER ALTERNATIVE => kses
* https://github.com/RichardVasquez/kses/
*
* This was built from numerous sources
@l3aro
l3aro / gist:3e64adc8252aae581fe46e696f605c23
Created February 24, 2021 15:56 — forked from rodrigopedra/gist:a4a91948bd41617a9b1a
Laravel 5 Middleware for Database Transactions
<?php namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Response;
class DBTransaction
{
/**
* Handle an incoming request.
*
@l3aro
l3aro / zsh-cheatsheet.md
Last active March 21, 2020 19:21
Zsh Cheatesheet

To try it out if you have just cloned it (to your home directory):

source ~/.oh-my-zsh/templates/zshrc.zsh-template

Commands