Skip to content

Instantly share code, notes, and snippets.

Avatar
😀

Rogerio Prado de Jesus rogeriopradoj

😀
View GitHub Profile
@rogeriopradoj
rogeriopradoj / PNL.ipynb
Created May 15, 2019
https://cursos.alura.com.br/course/introducao-a-nlp-com-analise-de-sentimento - curso alura: Linguagem Natural parte 1: Introdução a NLP com análise de sentimento Linguagem Natural parte 1: Introdução a NLP com análise de sentimento
View PNL.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rogeriopradoj
rogeriopradoj / Jupyter-PHP-exemplo.ipynb
Last active May 14, 2019
Jupyter-PHP-exemplo.ipynb - Artigo: Notebooks Jupyter em PHP, além do Python? Sim, é possível: veja como fazer!
View Jupyter-PHP-exemplo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rogeriopradoj
rogeriopradoj / 1.md
Created May 8, 2019
composer licenses
View 1.md
$ git remote -v

origin  https://github.com/symfony/demo.git (fetch)
origin  https://github.com/symfony/demo.git (push)
$ composer licenses
@rogeriopradoj
rogeriopradoj / README.md
Created Apr 20, 2019
adminer autologin sqlite
View README.md

adminer autologin sqlite

A way to make adminer not ask for any of credentials, using default values for: fake-username, fake-password and sqlite file database path.

Steps:

  • Download adminer.php, put in the same folder of index.php (root) and set the correct filename there;
  • Download plugin.php and put it in plugins folder;
  • Move auto-login.php and login-sqlite.php into plugins folder;
  • Set correct sqlite file database path.
View AlunoMapping.php
<?php
namespace Alura\Doctrine\Mapping;
use Alura\Doctrine\Entity\Aluno;
use Alura\Doctrine\Entity\Curso;
use Alura\Doctrine\Entity\Telefone;
use Alura\Doctrine\Repository\AlunoRepository;
use LaravelDoctrine\Fluent\EntityMapping;
use LaravelDoctrine\Fluent\Fluent;
@rogeriopradoj
rogeriopradoj / adminer autologin
Created Apr 10, 2019 — forked from realies/adminer autologin
A way to allow direct login to adminer
View adminer autologin
<?php
$_GET["username"] = "";
$_GET["db"] = "database";
function adminer_object() {
class AdminerAutoLogin extends Adminer {
function credentials() {
return array("127.0.0.1", "username", "password");
}
function login($login, $password) {
return true;
View Cntlm Authentication Proxy for Docker.txt
Install and Configure Cntlm:
1. Configure EPEL Repo and install cntlm
yum install cntlm
3. Generate hashes for password-less configuration and add one of the values to /etc/cntlm.conf
cntlm -u <user>@<domain> -H
3. vi /etc/cntlm.conf
Username <Username>
Domain <Domain>
PassNTLMv2 BCB555F5BA8709B8186C2A813C47A4BD # Only for user '<user>', domain '<domain>'
Proxy <ProxyServer>:<Port>
@rogeriopradoj
rogeriopradoj / .env
Created Mar 20, 2019
.env cntlm proxy
View .env
CNTLM_NO_PROXY="localhost, 127.0.0.*, 10.*, 192.168.*, 0.*, caixa, .caixa, *.caixa, corecaixa, .corecaixa, *.corecaixa, 192.168.99.100"
CNTLM_LISTEN=3128
CNTLM_PROXY="internet3.caixa:80"
PX_NO_PROXY="127.0.0.*,10.*.*.*,192.168.*.*,0.*.*.*,10.116.182.17"
PX_PORT=3128
PX_PROXY="internet3.caixa:80"
# internet.caixa proxies IPs: 10.252.32.235 (internet3.caixa - rogerio)
# internet.caixa proxies IPs: 10.123.68.18 (internet.caixa - rogerio)
# internet.caixa proxies IPs: 10.252.32.138 (internet3.caixa - leonardo)
# internet365.caixa é um proxy que alguns técnicos estão usando no office novo
@rogeriopradoj
rogeriopradoj / README.md
Created Aug 9, 2018
How to enable default shared folder in docker-machine for docker toolbox portable from https://portapps.github.io/app/docker-toolbox-portable/
View README.md
@rogeriopradoj
rogeriopradoj / web.config
Created Aug 8, 2018 — forked from sayedihashimi/web.config
How to enable directory browsing in web.config
View web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="true" />
</system.webServer>
</configuration>
You can’t perform that action at this time.