Skip to content

Instantly share code, notes, and snippets.

View jackbaron's full-sized avatar
😳
Do what you love, and love what you do !

Hoang Nhat jackbaron

😳
Do what you love, and love what you do !
  • Ho Chi Minh, Viet Nam
View GitHub Profile
@jackbaron
jackbaron / xss_clean.php
Created May 21, 2021 07:05 — 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
@jackbaron
jackbaron / EloquentCheatSheet.md
Created March 29, 2021 04:01 — forked from avataru/EloquentCheatSheet.md
Eloquent relationships cheat sheet
@jackbaron
jackbaron / gist:ef8b4d8ed2b475c3d35666a8de340123
Created October 4, 2019 08:27 — forked from demouth/gist:3217440
mb_strwidth on JavaScript
;(function(ns){
/**
* mb_strwidth
* @param String
* @return int
* @see http://php.net/manual/ja/function.mb-strwidth.php
*/
var mb_strwidth = function(str){
var i=0,l=str.length,c='',length=0;
for(;i<l;i++){

Keybase proof

I hereby claim:

  • I am hoangnhat94 on github.
  • I am hoangnhat94 (https://keybase.io/hoangnhat94) on keybase.
  • I have a public key ASB_nWQuU9X1ET8ZtwIEJMMnCl4rfhlXV1RMcKs2zrHDowo

To claim this, I am signing this object:

@jackbaron
jackbaron / keybase.md
Last active September 11, 2019 06:57

Keybase proof

I hereby claim:

  • I am jackbaron on github.
  • I am hoangnhat (https://keybase.io/hoangnhat) on keybase.
  • I have a public key ASAv-XdDvdn6X-RtGQf0_tU_b8C2hexfpfpNUKPYP3nSkAo

To claim this, I am signing this object: