Skip to content

Instantly share code, notes, and snippets.

View rogeriopradoj's full-sized avatar
😀

Rogerio Prado de Jesus rogeriopradoj

😀
View GitHub Profile
@rogeriopradoj
rogeriopradoj / .env
Created March 20, 2019 19:18
.env cntlm proxy
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 August 9, 2018 12:50
How to enable default shared folder in docker-machine for docker toolbox portable from https://portapps.github.io/app/docker-toolbox-portable/

portapps/docker-toolbox-portable#1


Hi, do you think it would be a good option having instructions on how to enable, besides data\shared, the original shared folder of docker-toolbox on windows (c/Users -> c:\Users, auto-mount, full)?

I think it should be a good addition to the info page for new comers as me.


@rogeriopradoj
rogeriopradoj / web.config
Created August 8, 2018 17:09 — forked from sayedihashimi/web.config
How to enable directory browsing in web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="true" />
</system.webServer>
</configuration>
@rogeriopradoj
rogeriopradoj / doctrinemap.php
Created August 5, 2018 21:09 — forked from dwgebler/doctrinemap.php
Generate Symfony 4 entities + repositories from existing database
<?php
include './vendor/autoload.php';
$classLoader = new \Doctrine\Common\ClassLoader('Entities', __DIR__);
$classLoader->register();
$classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__);
$classLoader->register();
class RepoGen extends Doctrine\ORM\Tools\EntityRepositoryGenerator {
protected static $_template =
@rogeriopradoj
rogeriopradoj / generator.php
Created August 5, 2018 21:08 — forked from tawfekov/generator.php
Doctrine2 Generate Entities form Existing Database
<?php
include '../vendor/autoload.php';
$classLoader = new \Doctrine\Common\ClassLoader('Entities', __DIR__);
$classLoader->register();
$classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__);
$classLoader->register();
// config
$config = new \Doctrine\ORM\Configuration();
@rogeriopradoj
rogeriopradoj / Portable_WhatsApp.md
Created July 22, 2018 21:12 — forked from milolav/Portable_WhatsApp.md
Making WhatsApp desktop application portable

Portable desktop WhatsApp

This tutorial will explain how to make WhatsApp desktop application portable on Windows platform. Maybe this can work for other platforms as well.

For this to work NodeJs and asar package are required.

Download WhatsApp package

Firstly download latest version of WhatsApp. The following link contains all Windows (x64) releases:

@rogeriopradoj
rogeriopradoj / gist:e9ec061a353b7c4131d4e873d003e9a2
Created July 15, 2018 18:20 — forked from opensourcetutorialsnet/gist:51dc12aada3e1f8fc8dd1064d9b78522
Startup command parameters to run Docker terminal in cmder
"C:\Program Files\Git\bin\bash.exe" --login -i "C:\Program Files\Docker Toolbox\start.sh" -new_console:d:"C:\Program Files\Docker Toolbox"
@rogeriopradoj
rogeriopradoj / gitBash_windows.md
Created July 14, 2018 18:16 — forked from evanwill/gitBash_windows.md
how to add more utilities to git bash for windows, wget, make

How to add more to Git Bash on Windows

Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).

If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so

@rogeriopradoj
rogeriopradoj / intro.md
Created June 28, 2018 14:50 — forked from derhuerst/intro.md
Installing Git on Linux, Mac OS X and Windows
@rogeriopradoj
rogeriopradoj / mbp2011-disable-amd-gpu.md
Created June 2, 2018 22:12 — forked from blackgate/mbp2011-disable-amd-gpu.md
Macbook Pro 2011 - Disable AMD GPU