Skip to content

Instantly share code, notes, and snippets.

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

Thiago Sanches thiagosanches

🏠
Working from home
View GitHub Profile
var fs = require('fs');
var sites = [];
var threshold = {
"performance": 0.90,
"accessibility": 0.95,
"seo": 0.90,
"pwa": 0
};
docker run --name zabbix-server-mysql -t \
-e DB_SERVER_HOST="mysql-server" \
-e MYSQL_DATABASE="zabbix" \
-e MYSQL_USER="zabbix" \
-e MYSQL_PASSWORD="zabbix_pwd" \
-e MYSQL_ROOT_PASSWORD="root_pwd" \
-e ZBX_JAVAGATEWAY="zabbix-java-gateway" \
--link mysql-server:mysql \
--link zabbix-java-gateway:zabbix-java-gateway \
-p 10051:10051 \
@thiagosanches
thiagosanches / my-windows-recipes
Last active January 26, 2018 00:24
my-windows-recipes
# Remove Windows Cortana
$path = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search"
IF(!(Test-Path -Path $path)) {
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows" -Name "Windows Search"
}
Set-ItemProperty -Path $path -Name "AllowCortana" -Value 1
Stop-Process -name explore
# Enable Ubuntu on Windows 10
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
@thiagosanches
thiagosanches / gist:bdd280099b913d169cc3
Created March 5, 2015 13:38
Regex pattern with powershell
$files = Get-Content "file_name_with_a_list_of_file_names"
foreach ($file in $files) {
select-string -Path $file -Pattern ">([0-9]+)" -AllMatches|%{$_.Matches[0].groups[1].value}
}