Skip to content

Instantly share code, notes, and snippets.

View rogeriopradoj's full-sized avatar
😀

Rogerio Prado de Jesus rogeriopradoj

😀
View GitHub Profile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "peru/windows-10-enterprise-x64-eval"
config.vm.synced_folder "data", "/vagrant_data"
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
vb.gui = true
# Customize the amount of memory on the VM:
@rogeriopradoj
rogeriopradoj / Brewfile
Last active July 21, 2020 19:12
https://openfolder.sh/macos-migrations-with-brewfile - Como atualizar Mac e trazer todas as configurações - rogeriopradoj homebrew macOS
tap "buo/cask-upgrade"
tap "burntsushi/ripgrep", "https://github.com/BurntSushi/ripgrep.git"
tap "domt4/autoupdate"
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-drivers"
tap "homebrew/cask-eid"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/core"
#!/bin/sh
# script to change the sleep mode of an OS X machine
usage () {
echo "supported sleep modes:"
echo " sleep"
echo " safesleep"
echo " hibernate"
echo " secure"
echo " insecure"
@rogeriopradoj
rogeriopradoj / PNL.ipynb
Created May 15, 2019 15:08
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
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 05:01
Jupyter-PHP-exemplo.ipynb - Artigo: Notebooks Jupyter em PHP, além do Python? Sim, é possível: veja como fazer!
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 20:08
composer licenses
$ 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 April 20, 2019 23:15
adminer autologin sqlite

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.
<?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 April 10, 2019 13:47 — forked from realies/adminer autologin
A way to allow direct login to adminer
<?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;
@rogeriopradoj
rogeriopradoj / Cntlm Authentication Proxy for Docker.txt
Created March 20, 2019 20:32 — forked from 7171u/Cntlm Authentication Proxy for Docker.txt
Docker Behind Proxy Network with Cntlm on Centos/RHEL
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>