Skip to content

Instantly share code, notes, and snippets.

View ptcmariano's full-sized avatar
🏠
Working from home

Paulo Tiago ptcmariano

🏠
Working from home
View GitHub Profile
@ptcmariano
ptcmariano / nesbox-pokemon-red-blue-yellow-hunt.au3
Created December 27, 2020 11:58
find color with autoit script
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.14.5
Author: Paulo Tiago
Script Function:
find color and walk or atack
into nesbox.com fullscreen running GBA pokemon red or blue or yellow
#ce ----------------------------------------------------------------------------
HotKeySet("{ESC}", "_Terminate")
someclick()
Func someclick()
WinActivate("Ti")
While 1
MouseClick("left", 810, 579)
Sleep(2000)
@ptcmariano
ptcmariano / ipdev.bat
Created July 12, 2019 19:26
set ip for developer env hosts on windows 10 by bat
SET /p IPDEV="Enter ip for dev.domain.io: "
SET ADDRBASE= dev.domain.io
SET ADDRESSDEV=%IPDEV%%ADDRBASE%
echo %ADDRESSDEV% > "C:\Windows\System32\drivers\etc\hosts"
pause
type "C:\Windows\System32\drivers\etc\hosts"
pause
@ptcmariano
ptcmariano / array-chars-html.js
Last active October 16, 2018 13:06
array javascript Acentos e Caracteres Especiais HTML
var chars = [
{"char":"Á","symb":"Á"},
{"char":"È","symb":"È"},
{"char":"ô","symb":"ô"},
{"char":"Ç","symb":"Ç"},
{"char":"á","symb":"á"},
{"char":"è","symb":"è"},
{"char":"Ò","symb":"Ò"},
{"char":"ç","symb":"ç"},
{"char":"Â","symb":"Â"},
@ptcmariano
ptcmariano / php.ini
Created June 12, 2018 19:08
php.ini 7.2.5 win laravel
;Directory in which the loadable extensions (modules) reside.
;http://php.net/extension-dir
;extension_dir = "./"
;On windows:
;extension_dir="C:\\xampp\\php725\\ext\\php_mysqli.dll"
extension_dir="C://xampp//php725//ext//"
extension=php_mysqli.dll
extension=php_openssl.dll
extension=php_mbstring.dll
@ptcmariano
ptcmariano / associacao-criaca-feliz.html
Last active October 23, 2021 00:08
associacao-criaca-feliz
<p>Esses são os principais parceiros,<br><a href="https://criancafelizdesorocaba.org.br/participe/">torne-se parceiro com a sua empresa também</a></p>
<p><style>
@media (min-width: 768px) {<br />
.col-md-4 {<br />
min-height: 350px;<br />
}<br />
a > img {<br />
position: absolute;<br />
top: 0;<br />
bottom: 0;<br />
https://ufile.io/rjfoz
news files
<div class="attachments">
<h6>Anexos</h6>
<ul>
<li><a href="https://workana.s3.amazonaws.com/projects/381663/98/65a001b39711e79e657983069e9d13/LOGO-EPS.eps?AWSAccessKeyId=AKIAIMMAP2ONURYRGXEQ&Expires=1508307475&Signature=UIVvPGYT%2BsNYijt51fAOsRZLsAY%3D" label="" showSizeText="1" target="_blank" rel="noopener noopener">LOGO-EPS.eps</a> (8.2 MB)</li>
<li><a href="https://workana.s3.amazonaws.com/projects/381663/9d/1397b0b39711e79e657983069e9d13/LOGO-JPEG.jpg?response-content-disposition=inline%3Bfilename%3D%22LOGO-JPEG.jpg%22&response-content-type=image%2Fjpeg&AWSAccessKeyId=AKIAIMMAP2ONURYRGXEQ&Expires=1508307476&Signature=fRILkAlutBsyYBSX7macWfbhSKY%3D" label="" showSizeText="1" target="_blank" rel="noopener noopener">LOGO-JPEG.jpg</a> (471.2 KB)</li>
<li><a href="https://workana.s3.amazonaws.com/projects/381663/9f/e4b910b39711e79e657983069e9d13/LOGO-PDF.pdf?response-content-disposition=inline%3Bfil
@ptcmariano
ptcmariano / download wp ubuntu.txt
Last active February 16, 2017 16:33
to remember how install wp
wget https://wordpress.org/latest.tar.gz
tar -xnf latest.tar.gz
mv wordpress/* ./*
#db
mysql> create user user identified by 'pss';
mysql> grant all privileges on db.* to user;
@ptcmariano
ptcmariano / abrasuamente.txt
Created August 13, 2015 17:31
abrasuamente
“Quando você observa o mundo com outros olhos, você vê mais soluções e trava menos diante de adversidade, pois você enxerga muito mais alternativas.”
- Bel Pesce
@ptcmariano
ptcmariano / lercsv.php
Created July 7, 2015 21:55
lercsv.php
<?php
// Exemplo de scrip para exibir os nomes obtidos no arquivo CSV de exemplo
$delimitador = ',';
$cerca = '"';
// Abrir arquivo para leitura
$f = fopen('teste.csv', 'r');
if ($f) {