segunda-feira, 6 de maio de 2019

How to fix screen tearing in Linux MX

First, verify your driver configuration, after create the proper conf file.


lspci -nnk | grep -i -EA3 "3d|display|vga"

ls -l /etc/X11

mkdir ~/xorg-backup
sudo mv -v /etc/X11/xorg.conf ~/xorg-backup/
sudo mv -v /etc/X11/xorg.conf.d ~/xorg-backup/

sudo nano /etc/X11/xorg.conf

Section "Device"
Identifier "Radeon"
Driver "radeon"
Option "TearFree" "on"
EndSection


sudo mkdir /etc/X11/xorg.conf.d
sudo nano /etc/X11/xorg.conf.d/20-amdgpu.conf

Section "Device"
Identifier "AMD"
Driver "amdgpu"
Option "TearFree" "true"
EndSection

terça-feira, 26 de março de 2019

How to set pip install behind proxy

Under windows:

Set environment variables:

http_proxy=http://DOMAIN\user:pass@proxy:port
https_proxy=https://DOMAIN\user:pass@proxy:port

Then:

 pip --trusted-host pypi.org install package

or

pip --trusted-host=pypi.python.org --trusted-host=pypi.org --trusted-host=files.pythonhosted.org install packagename

or

Create a file named pip.ini in: c:\programdata\pip. Its necessary create the folder.

Put inside:
[global]
trusted-host = pypi.python.org
   pypi.org
   files.pythonhosted.org

Set only this:
https_proxy=https://DOMAIN\user:pass@proxy:port

Now you can pip install.

segunda-feira, 25 de março de 2019

How to share folder Windows 7 anonymously

desativar o firewall do windows

diretiva do computador local
configuração do computador
configurações do windows
configurações de segurança
  diretivas locais
opções de segurança
Acesso à rede: compartilhamentos acessíveis anonimamente
colocar aqui o nome do compartilhamento que foi criado
Acesso à rede: deixar que as permissões de todos os usuários sejam aplicadas a usuários anônimos
Habilitada
Acesso à rede: acesso anônimo restritor a pipes nomeados e compartilhamentos
Desabilitada
Contas: status de conta de convidado
Habilitada

Change following:
Accounts: Guest account status – change to Enabled
Network access: Let Everyone permissions apply to anonymous users – change to Enabled
Network access: Restrict anonymous access to Named Pipes and Shares – change to Disabled
Network access: Shares that can be accessed anonymously – enter name of share you created in the text field

Decorator Powershell Design Patterns

 Powershell Design Patterns Decorator ```powershell # Classe base 'Beverage' class Beverage {     [string]$description = "Unkno...