- Download ISO or Media Creation tool: https://www.microsoft.com/pt-br/software-download/windows10ISO
- After install and initial login, let the system install the drivers automatically for a few minutes, it will ask for a reboot after
- Run Windows Update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CPF and CNPJ validators Rails 3+ style | |
# By Arthur Corenzan <[email protected]> | |
# Based on the work of André Camargo <[email protected]> | |
# | |
# Copy this file to your initializers or lib directory, then apply like this: | |
# | |
# class Person | |
# ... | |
# | |
# validates :cpf, :cpf => true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BRAZILIAN_STATES = { | |
'AC' => 'Acre', | |
'AL' => 'Alagoas', | |
'AP' => 'Amapá', | |
'AM' => 'Amazonas', | |
'BA' => 'Bahia', | |
'CE' => 'Ceará', | |
'DF' => 'Distrito Federal', | |
'ES' => 'Espírito Santo', | |
'GO' => 'Goiás', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while [[ $# > 1 ]] | |
do | |
key="$1" | |
case $key in | |
-f|--from) | |
FROM="$2" | |
shift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Salve este arquivo no $HOME/bin e adicione o caminho no $PATH | |
REPO_BASE="$HOME/repos" | |
CURRENT_REPO=$(pwd) | |
git checkout $1 | |
for REPO in $(egrep "adtsys-cloud|diegoaltheman" $CURRENT_REPO/Gemfile | awk -F'"' '{print $2}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Salve este arquivo no $HOME/bin e adicione o caminho no $PATH | |
REPO_BASE="$HOME/repos/totvs" | |
for REPO in $(ls $REPO_BASE/) | |
do | |
echo "-----------------------------------------" | |
echo "$REPO: updating" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PEM_KEY="~/.ssh/aws-totvs.pem" | |
function list() { | |
echo "ADTsys server list: | |
jerico01 | |
jerico02 | |
jis01 | |
jis02 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Copy this CSS to ~/.config/gtk-3.0/gtk.css, and restart or logout+login */ | |
window.ssd headerbar.titlebar { | |
min-height: 0; | |
} | |
window.ssd headerbar.titlebar button.titlebutton { | |
padding-top: 0px; | |
padding-bottom: 0px; | |
min-height: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo adb shell pm disable-user com.android.traceur | |
sudo adb shell pm disable-user com.oneplus.opbugreportlite | |
sudo adb shell pm disable-user com.oneplus.brickmode | |
sudo adb shell pm disable-user net.oneplus.odm | |
sudo adb shell pm disable-user net.oneplus.odm.provider | |
sudo adb shell pm disable-user com.google.android.apps.wellbeing | |
# The command below needs to be executed after every reboot | |
sudo adb shell settings put global device_idle_constants inactive_to=2592000000,motion_inactive_to=2592000000,light_after_inactive_to=3000000,light_max_idle_to=21600000,light_idle_to=3600000,light_idle_maintenance_max_budget=600000,light_idle_maintenance_max_budget=600000,min_light_maintenance_time=30000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Repos | |
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm | |
sudo dnf copr enable kwizart/fedy -y | |
sudo dnf copr enable zawertun/hack-fonts -y | |
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo | |
sudo dnf update -y | |
# REBOOT |
OlderNewer