Skip to content

Instantly share code, notes, and snippets.

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

Evandro da Silva Amparo evandroamparo

🏠
Working from home
View GitHub Profile
@evandroamparo
evandroamparo / linear-regression-coefficient-estimates.ipynb
Created February 19, 2023 06:02
Linear regression - Coefficient estimates
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@evandroamparo
evandroamparo / install-dot-net.sh
Created September 9, 2021 20:03
Install .NET Debian 10
#https://docs.microsoft.com/pt-br/dotnet/core/install/linux-debian
# add packages
wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
# install SDK
@evandroamparo
evandroamparo / Pessoa.cs
Last active July 26, 2021 13:38
Princípio da responsabilidade única
class Pessoa
{
public int Id { get; set; }
public string Nome { get; set; }
public string Email { get; set; }
public void Salvar() { /*...*/ }
public void ValidarEmail() { /*...*/ }
public void EnviarEmail() { /*...*/ }
}
@evandroamparo
evandroamparo / gist:1dc6477851dd3fa60d650b50b8e0f6ee
Created December 13, 2019 11:37
Delphi - alinhar TEdit à direita
OldStyle := GetWindowLong(Edit.Handle, GWL_STYLE);
NewStyle := (OldStyle and not(ES_LEFT or ES_CENTER or ES_RIGHT)) or ES_RIGHT;
SetWindowLong(Edit.Handle, GWL_STYLE, NewStyle);
@evandroamparo
evandroamparo / vagrant_windows.md
Last active October 27, 2017 16:38
Vagrant Windows
# Installing
sudo apt-get install -y mongodb-org
# Running
mkdir data
echo 'mongod --bind_ip=$IP --dbpath=data --nojournal --rest "$@"' > mongod
chmod a+x mongod
./mongod
@evandroamparo
evandroamparo / Portuguese (Brazilian).aff
Created May 29, 2017 12:06
Dicionários pt-br para Sublime Text
This file has been truncated, but you can view the full file.
SET UTF-8
TRY áàãâéêíóõôúüçesianrtolcdugmphbyfvkwjqxz
# Copyright (C) 2006 - 2010 por Raimundo Santos Moura
# <raimundomoura@openoffice.org>
# Colaboradores deste projeto: http://www.openoffice.org.br/?q=creditos
# Brasil - Setembro 2010
# Este é um dicionário para correção ortográfica da língua Portuguesa
# para o Hunspell.
# Este programa é livre e pode ser redistribuído e/ou modificado nos
$(document).ready(function () {
GetLatestReleaseInfo();
});
function GetLatestReleaseInfo() {
$.getJSON("https://api.github.com/repos/ShareX/ShareX/releases/latest").done(function (release) {
var asset = release.assets[0];
var downloadCount = 0;
for (var i = 0; i < release.assets.length; i++) {
downloadCount += release.assets[i].download_count;
cinst GoogleChrome
cinst skype
cinst k-litecodecpackfull
cinst vlc
cinst peazip
cinst pdfcreator
cinst libreoffice
cinst malwarebytes
cinst avgantivirusfree
# START iexplore.exe http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/evandroamparo/d2a88ed2196d3bbe7aa3/raw/boxstarter_test.ps1
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /d 0 /t REG_DWORD /f /reg:64
winrm quickconfig -q
winrm quickconfig -transport:http
winrm set winrm/config '@{MaxTimeoutms="7200000"}'
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="0"}'
winrm set winrm/config/winrs '@{MaxProcessesPerShell="0"}'
winrm set winrm/config/winrs '@{MaxShellsPerUser="0"}'